Link E-Wallet Account API
Request Attributes
mobile
String
Mandatory
The mobile number to link e-wallet account
wallet_type
String
Mandatory
The e-wallet you want to link. Available wallet types: GOPAY
DANA
SHOPEEPAY
redirect_url
String
Mandatory
Redirect the user to the specified URL after they have completed the account linking flow
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",
"redirect_url": "https://redirect_url.com/"
}'
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