Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API Disbursement][Mock] update mock data reference #295

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 39 additions & 38 deletions source/includes/_fund_disbursement.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,44 +320,6 @@ Below is the list of Explanation for column state details that show on response
| Transaction Not Created | Transaction is not created in the OY! system due to not valid disbursement request. |


**Mock Data in Demo Environment**

You can replicate final error response codes based on the Response Code by filling in the `recipient_account` value using this format: `<desired response code>0000`.
You can input 4 to 15 characters consisting only of the digit 0 at the end of the response code. Any value that doesn't follow this format will be processed normally.

For example, if you want to get the `"Request is Rejected (Amount is not valid)”` error, you can trigger the response code `“210”` by formatting the recipient_account as `"2100000"`.

> Request body mock data in demo environment:

```json
{
"recipient_bank": "014",
"recipient_account": "2100000",
"amount": 10000,
"note": "Test Expose Route",
"partner_trx_id": "TRX-20231211-007",
"email": "yono@oyindonesia.com"
}
```

> Response body mock data in demo environment:

```json
{
"status": {
"code": "210",
"message": "Request is Rejected (Amount is not valid)"
},
"amount": 10000,
"recipient_bank": "014",
"recipient_account": "2100000",
"trx_id": "",
"partner_trx_id": "TRX-20231211-007",
"timestamp": "11-12-2023 05:06:16"
}
```


## Disbursement Callback

> Response for successful callback:
Expand Down Expand Up @@ -719,6 +681,45 @@ Below is the list of Explanation for column state details that show on response
| Transaction Unknown | Transaction status is uncertain, please wait the callback or hit check status API to make sure the status of transaction. Please check to your dashboard or contact our business representative. |
| Transaction Not Created | Transaction is not created in the OY! system due to not valid disbursement request. | |

## Mock Data in Demo Environment

You can replicate final error response codes based on the Response Code by filling in the `recipient_account` value using this format: __\<desired response code\>0000__. You can input 4 to 15 characters consisting only of the digit 0 at the end of the response code. Any value that doesn’t follow this format as default will be processed as a Successful transaction.

For example, if you want to get the __"Request is Rejected (Amount is not valid)”__ error, you can trigger the response code __“210”__ by formatting the recipient_account as "2100000".

### Test Scenario
To test out all scenarios of API Disbursement and ensure the flows in your integration are handled correctly, please visit this [link](https://docs.google.com/spreadsheets/u/0/d/1M4OT1SF19FZIY3D_3x279WhhhSs98-XsjkF-YmySii4/edit).

> Request body mock data in demo environment:

```json
{
"recipient_bank": "014",
"recipient_account": "2100000",
"amount": 10000,
"note": "Test Expose Route",
"partner_trx_id": "TRX-20231211-007",
"email": "yono@oyindonesia.com"
}
```

> Response body mock data in demo environment:

```json
{
"status": {
"code": "210",
"message": "Request is Rejected (Amount is not valid)"
},
"amount": 10000,
"recipient_bank": "014",
"recipient_account": "2100000",
"trx_id": "",
"partner_trx_id": "TRX-20231211-007",
"timestamp": "11-12-2023 05:06:16"
}

```

## Disbursement Failed Reasons

Expand Down
Loading