logoAccess

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

Add 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

FieldTypeRequiredDescription
bank_codestringYesPSP code. One of: CBE, Awash, Dashen, Abyssinia, Telebirr, Mpesa, CBEBirr, Siinqee, Wegagen, AmharaBank, Zemen, EbirrKaafi, EbirrCoopay
account_namestringYesAccount holder name as it appears on the bank account
account_numberstringYesBank 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

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

Update 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

Delete 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

StatusDescription
pendingAccount added, awaiting verification
activeAccount verified and active
inactiveAccount disabled

Supported PSPs

CodeProvider
CBECommercial Bank of Ethiopia
AwashAwash Bank
DashenDashen Bank
AbyssiniaBank of Abyssinia
TelebirrTelebirr
MpesaM-Pesa
CBEBirrCBEBirr
SiinqeeSiinqee Bank
WegagenWegagen Bank
AmharaBankAmhara Bank
ZemenZemen Bank
EbirrKaafiKaafi ebirr
EbirrCoopayCOOPay ebirr

Endpoint Summary

ActionMethodEndpoint
AddPOST/api/v1/payment_methods
ListGET/api/v1/payment_methods
GetGET/api/v1/payment_methods/:id
UpdatePATCH/api/v1/payment_methods/:id
DeleteDELETE/api/v1/payment_methods/:id

How is this guide?