Payment Methods
Configure bank accounts for receiving payments through supported PSPs.
Payment methods are the bank accounts and mobile money accounts your business uses to receive payments. Each merchant can have one account per PSP. These accounts are used by the verification engine to match incoming transactions.
Add a Bank Account
curl -X POST https://api.tryaccess.xyz/api/v1/payment_methods \
-H "Content-Type: application/json" \
-H "x-api-key: sk_..." \
-d '{
"bank_code": "CBE",
"account_name": "Abebe Girma",
"account_number": "1000123456789"
}'Response:
{
"id": "ba_01HXYZ...",
"bank_code": "CBE",
"account_name": "Abebe Girma",
"account_number": "1000123456789",
"status": "pending",
"created_at": "2025-01-15T10:00:00.000Z",
"updated_at": "2025-01-15T10:00:00.000Z"
}Parameters
| Field | Type | Required | Description |
|---|---|---|---|
bank_code | string | Yes | PSP code. One of: CBE, Awash, Dashen, Abyssinia, Telebirr, Mpesa, CBEBirr, Siinqee, Wegagen, AmharaBank, Zemen, EbirrKaafi, EbirrCoopay |
account_name | string | Yes | Account holder name as it appears on the bank account |
account_number | string | Yes | Bank account number or wallet phone number |
Bank account IDs are prefixed with ba_. Only one account per PSP is allowed per merchant — adding a duplicate returns a duplicate error.
List Bank Accounts
curl https://api.tryaccess.xyz/api/v1/payment_methods \
-H "x-api-key: sk_..."Response:
{
"data": [
{
"id": "ba_01HXYZ...",
"bank_code": "CBE",
"account_name": "Abebe Girma",
"account_number": "1000123456789",
"status": "pending",
"created_at": "2025-01-15T10:00:00.000Z",
"updated_at": "2025-01-15T10:00:00.000Z"
}
]
}Get a Bank Account
curl https://api.tryaccess.xyz/api/v1/payment_methods/ba_01HXYZ... \
-H "x-api-key: sk_..."Update a Bank Account
curl -X PATCH https://api.tryaccess.xyz/api/v1/payment_methods/ba_01HXYZ... \
-H "Content-Type: application/json" \
-H "x-api-key: sk_..." \
-d '{ "account_name": "Abebe G. Tadesse" }'Updatable fields: account_name, account_number. Normalized versions are re-derived automatically.
Delete a Bank Account
curl -X DELETE https://api.tryaccess.xyz/api/v1/payment_methods/ba_01HXYZ... \
-H "x-api-key: sk_..."Response:
{ "id": "ba_01HXYZ...", "deleted": true }After deletion, you can add a new account for the same PSP.
Account Status
| Status | Description |
|---|---|
pending | Account added, awaiting verification |
active | Account verified and active |
inactive | Account disabled |
Supported PSPs
| Code | Provider |
|---|---|
CBE | Commercial Bank of Ethiopia |
Awash | Awash Bank |
Dashen | Dashen Bank |
Abyssinia | Bank of Abyssinia |
Telebirr | Telebirr |
Mpesa | M-Pesa |
CBEBirr | CBEBirr |
Siinqee | Siinqee Bank |
Wegagen | Wegagen Bank |
AmharaBank | Amhara Bank |
Zemen | Zemen Bank |
EbirrKaafi | Kaafi ebirr |
EbirrCoopay | COOPay ebirr |
Endpoint Summary
| Action | Method | Endpoint |
|---|---|---|
| Add | POST | /api/v1/payment_methods |
| List | GET | /api/v1/payment_methods |
| Get | GET | /api/v1/payment_methods/:id |
| Update | PATCH | /api/v1/payment_methods/:id |
| Delete | DELETE | /api/v1/payment_methods/:id |
How is this guide?