logoAccess

Add bank account

POST
/api/v1/payment_methods/

Add a bank account for a supported PSP. One account per PSP per merchant.

Authorization

apiKeyHeader
headerx-api-key<token>

API key for authentication. Generate from the dashboard or via POST /v1/api-keys.

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Request Body

  1. body
bank_code*string
Value in"CBE""Awash""Mpesa""Dashen""CBEBirr""Siinqee""Telebirr""Abyssinia""EbirrKaafi""EbirrCoopay""Wegagen""AmharaBank""Zemen"
account_name*string

Account holder name as it appears on the bank account

Length1 <= length
account_number*string

Bank account number or wallet phone number

Length1 <= length

Response Body

Response for status 200

application/json
  1. response
id*string
bank_code*string
account_name*string
account_number*string
status*string
created_at*string
updated_at*string
curl -X POST 'https://api.tryaccess.xyz/api/v1/payment_methods/' \  -H 'x-api-key: string' \  -H 'Content-Type: application/json' \  -d '{  "bank_code": "CBE",  "account_name": "Abebe Girma",  "account_number": "1000123456789"}'
{  "id": "string",  "bank_code": "string",  "account_name": "string",  "account_number": "string",  "status": "string",  "created_at": "string",  "updated_at": "string"}

How is this guide?