diff --git a/source/includes/_fund_disbursement.md b/source/includes/_fund_disbursement.md index 2ecf03ed..ff63272f 100644 --- a/source/includes/_fund_disbursement.md +++ b/source/includes/_fund_disbursement.md @@ -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: `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: @@ -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: __\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