Withdraw
The process of withdraw balance consists of three stages, namely withdrawal inquiry, withdrawal, and withdrawal status notification. In first stage, user must make a withdrawal inquiry to get a bank account, and balance can be withdrawn. Then second stage, make a withdrawal request, the amount allowed must match that in the withdrawal inquiry. At the withdrawal stage the status is still pending. Finally, notify withdraw, where the last withdrawal status will be sent to the endpoint that you have previously provided.
Withdraw Inquiry
POST
https://tokoapi-stg.netzme.com/api/aggregator/merchant/qr/withdraw/inquiry
This endpoint allows merchant to inquiry bank account before withdraw.
Headers
Name | Type | Description |
---|---|---|
Content-Type* | string | application/json |
Authorization* | string | See Authentication Page |
Client-Id* | string | See Authentication Page |
Request-Time* | string | See Authentication Page |
Signature* | string | See Authentication Page |
Request Body
Name | Type | Description |
---|---|---|
userId* | string | contains merchantId |
type* | string | value "withdraw_inquiry" |
requestId* | string | format {{ClientId}}{{YYYYMMDDHHmmSS}}{{4 digit increments}} sample aggregator202103091003110001 |
Sample JSON Request :
Withdraw
POST
https://tokoapi-stg.netzme.com/api/aggregator/merchant/qr/withdraw
This endpoint allows merchant to withdraw their balance.
Headers
Name | Type | Description |
---|---|---|
Content-Type* | string | application/json |
Authorization* | string | See Authentication Page |
Client-Id* | string | See Authentication Page |
Request-Time* | string | See Authentication Page |
Signature* | string | See Authentication Page |
Request Body
Name | Type | Description |
---|---|---|
userId* | string | merchant id |
withdrawalAmount* | integer | closed amount, withdrawal amount value must be equals with response inquiry withdrawal |
accountHolderName* | string | |
bankAccountNumber* | string | |
bankName* | string | |
bankCode* | string | |
pin* | string | hash pin enrich with client Id and merchant Id |
type* | string | value "submit_withdraw" |
requestId* | string | format {{ ClientId }}{{YYYYMMDDHHmmSS}}{{4 digit increments}} sample aggregator202103091003110001 |
Sample Json Body Request :
Sample code hashpin :
Withdraw Status Notification
After getting a pending response at the withdrawal stage, the final status will be sent to the withdrawal status notification endpoint that you have previously prepared.
Parameter | Data Type | Description |
type | String | value "submit_withdraw" |
amount | String | "IDR 37995.00" |
status | Integer | final status withdrawal |
statusMessage | String | description of status |
requestId | String | |
customerReffNumber | String |
Sample :
Status withdraw :
Status | Description |
100 | success |
101 | pending |
404 | pin not found, merchant must create first |
201 | invalid account number / invalid amount |
204 | invalid pin |
301 | invalid merchant id |
205 | different account number |
203 | generic error |
Last updated