Dark Mode

Link E-Wallet Account API


The following endpoint Links Gopay Account:

/ewallet/account/bind

Run in Postman

Request Attributes

mobile

String
Mandatory

The mobile to link e-wallet account

wallet_type

String
Mandatory

The e-wallet you want to link ex GOPAY

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

Response Code

200 - Success

1
2
3
4
5
6
7
8
9
10
{
    "data": {
        "wallet_type": "GOPAY",
        "mobile": "8888888888",
        "ref_id": "7f125e70-095e-481d-8db8-241df9d5b86d",
        "status": "pending",
        "app_redirect_url": "https://simulator.sandbox.midtrans.com/gopay/partner/web/otp?id=14c95e30-0586-4270-961e-f3b0b3d3d2b0",
        "message": "use redirection url to bind the account"
    }
}

400 - Invalid Request

401 - Unauthorized Access

500 - Internal Server Error