Skip to content

Commit

Permalink
[API Disbursement][Mock] update mock data reference (#295)
Browse files Browse the repository at this point in the history
* update mock data reference

* fix missing data
  • Loading branch information
renjiraND authored Jul 3, 2024
1 parent f98630a commit 9d64cde
Showing 1 changed file with 39 additions and 38 deletions.
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

0 comments on commit 9d64cde

Please sign in to comment.