Fetch bank list
The following endpoint retrieves the list of banks
/disbursements/banks
Example
curl -X GET \
https://api.durianpay.id/v1/disbursements/banks \
-H 'authorization: [Base64({Your_Server_Key}:)]' \
-H 'content-type: application/json' \
Response Code : 200
Here is an example of success response
{
"data": [
{
"id": 1,
"name": "BCA",
"code": "BCA",
"instruction": {},
"type": "disbursement",
"created_at": "2021-03-18T09:51:13.13246Z",
"updated_at": "2021-03-18T09:51:13.13246Z"
},
{
"id": 2,
"name": "MANDIRI",
"code": "MANDIRI",
"instruction": {},
"type": "disbursement",
"created_at": "2021-03-18T09:51:13.13246Z",
"updated_at": "2021-03-18T09:51:13.13246Z"
},
{
"id": 3,
"name": "BNI",
"code": "BNI",
"instruction": {},
"type": "disbursement",
"created_at": "2021-03-18T09:51:13.13246Z",
"updated_at": "2021-03-18T09:51:13.13246Z"
}
]
}
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 for internal server error
{
"error": "error getting banks",
"error_code": "DPAY_INTERNAL_ERROR"
}