GET
/
merchants
/
bankAccounts
/
getAll
Get Settlement Accounts
curl --request GET \
  --url https://api.onekhusa.com/sandbox/v1/merchants/bankAccounts/getAll \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Merchant-Account-Number: <x-merchant-account-number>' \
  --header 'X-Organisation-Id: <x-organisation-id>'
[
  {
    "merchantAccountNumber": 35253486,
    "accountId": 1,
    "accountName": "Test Account 1",
    "accountNumber": "114453647",
    "connectorId": 550044,
    "connectorName": "National Bank of Malawi",
    "isActive": true,
    "dateCreated": "2024-01-15T10:30:00Z",
    "dateCaptured": "2024-01-15T10:30:00Z",
    "capturedBy": "PBANDA",
    "dateModified": "2024-01-16T14:20:00Z",
    "modifiedBy": "NPHIRI"
  },
  {
    "merchantAccountNumber": 35253486,
    "accountId": 2,
    "accountName": "Test Account 2",
    "accountNumber": "3114453648",
    "connectorId": 666473,
    "connectorName": "FDH Bank Limited",
    "isActive": false,
    "dateCreated": "2024-01-20T09:15:00Z",
    "dateCaptured": "2024-01-20T09:15:00Z",
    "capturedBy": "PBANDA",
    "dateModified": null,
    "modifiedBy": null
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <Token>, where <Token> is your access token.

Headers

X-Organisation-Id
string
required

The organization identifier

X-Merchant-Account-Number
string
required

The merchant account number

Accept-Language
string
default:en

Preferred language for the response

Query Parameters

MerchantAccountNumber
integer
required

The unique identifier of the merchant account

Required range: 10000000 <= x <= 99999999
Example:

35253486

Response

Success Response (200)

The response is of type any[].