curl --request POST \
--url {banking_api_base_url}/banking/payment/account_info \
--header 'Content-Type: application/json' \
--header 'x-client-id: <App ID>' \
--header 'x-client-secret: <Secret Key>' \
--header 'order-source: reset-api' \
--data '{
"debit_account_number": "<debit_account_number>"
}'
{
"code": "200",
"status": "success",
"message": "API authentication successful!",
"return_data": {
"account_id": "bacc_a92c3b8b3946940",
"account_name": "Jangras Financial Platform Limited",
"account_balance": "135",
"account_lien_balance": "0",
"account_type": "business",
"account_debit": "active",
"debit_freeze_reason": "",
"issued_limits": "100000",
"used_limits": "0"
}
}
{
"code": "401",
"status": "failed",
"message": "API authentication failed!",
"return_data": {
"description": "Unauthorized - API authentication failed ['Bank not associated']"
}
}