Get Merchant's Bank Account
Add Bank Account
GET https://<PayEngine-host>/merchant/:merchant_id/bank-accounts
Get bank accounts for a merchant.
Path Parameters
Name
Type
Description
merchant_id*
String
Merchant ID for which account is being added
Response Body
Field Name
Type
Description
message*
string
Status of the request
data.id*
string
Bank account id
data.name*
string
Bank account name
data.last_4*
string
Last four digits of the bank account
data.data.account_type*
string
Bank account type - N | Y | G
Checking => N
Saving => Y
General Ledger => G
data.active*
boolean
True if the bank account is the default
Sample Request and Response
curl --location --request GET '<API_HOST>/api/v2/merchabnt/2836f39b-8fcb-4c82-9940-09faf364b8c7/bank-accounts' \
--header 'Authorization: Basic <API_KEY>'{
"message": "succeeded",
"data": {
"id": "802db58e-9f7e-4825-af6d-a2779f08038d",
"name": "My Bank Account 2022-01-17T20:46:32.723Z",
"last_4": "2345",
"data": {
"account_type": "N"
},
"active": true
}
}Last updated