Unlink E-Wallet Account API


The following endpoint Unlinks Gopay Account:

/ewallet/account/unbind

Request parameters

Following are the parameters to be sent in request body:

Fieldis required?Description
mobilemandatorystring The mobile to unlink e-wallet account
wallet_typemandatorystring The e-wallet you want to unlink ex GOPAY

Example

curl -u [Base64({Your_Server_Key}:)] \ 
-X GET 'https://api.durianpay.id/v1//ewallet/account/unbind' \
-H 'Is-live: true' \
-H 'Content-Type: application/json' \
-d '{"mobile": "8888888888",
     "wallet_type": "GOPAY"}'  
      

Response Code : 200 Unbind Success

Here is an example of success response

{
    "data": {
        "wallet_type": "GOPAY",
        "mobile": "8888888888",
        "ref_id": "83f1c265-a345-4aed-8b42-08b0908a6ce7",
        "status": "disabled",
        "message": "account unbinded successfully"
    }
}

Error Response Code : 400

Here is an example error response for invalid request

{
    "error": "Mobile number is missing in request",
    "error_code": "DPAY_INVALID_REQUEST"
}

Error Response Code : 401

Here is an example error response for unauthorized access

{
    "error": "invalid Authorization header in request",
    "error_code": "DPAY_UNAUTHORIZED_ACCESS"
}

Error Response Code : 500

Here is an example error response

{
    "error": "Error in unbinding e-wallet account",
    "error_code": "DPAY_INTERNAL_ERROR"
}