EWallet Account Details API
Details EWallet Account
The following endpoint gets Gopay Account Details:
/ewallet/account?mobile="88888888888"?wallet_type="GOPAY"
Request parameters
Following are the parameters to be sent in the url query param :
Field | is required? | Description |
---|---|---|
mobile | mandatory | string The mobile you use for e-wallet account |
wallet_type | mandatory | string The wallet you use ex GOPAY |
Example
curl -u [Base64({Your_Server_Key}:)] \
-X GET 'https://api.durianpay.id/v1/ewallet/account?mobile=8888888888&wallet_type=GOPAY' \
-H 'Is-live: true' \
-H 'Content-Type: application/json' \
Response Code : 200 Account Details Success
Here is an example of success response
{
"data": {
"wallet_type": "GOPAY",
"ref_id": "7f125e70-095e-481d-8db8-241df9d5b86d",
"status": "enabled",
"mobile": "8888888888",
"balance": "8000000.00",
"currency": "IDR",
"token": "53c385d4-e279-495f-835a-d5ed089fe2cb"
}
}
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 getting account details",
"error_code": "DPAY_INTERNAL_ERROR"
}