GET
/
merchants
/
bankAccounts
/
get
cURL
curl -X GET "https://dev.api.onekhusa.com/sandbox/v1/merchants/bankAccounts/get?AccountId=1" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "accept: application/json" \
  --header "Accept-Language: en"
{
  "merchantAccountNumber": 35253486,
  "accountId": 12,
  "accountName": "Test Account",
  "accountNumber": "114453647",
  "connectorId": 550044,
  "connectorName": "National Bank of Malawi",
  "isActive": true,
  "dateCreated": "2024-01-15T10:30:00Z",
  "dateCaptured": "2024-01-15T10:30:00Z",
  "capturedBy": "admin@example.com",
  "dateModified": "2024-01-16T14:20:00Z",
  "modifiedBy": "user@example.com"
}

Authorizations

Authorization
string
header
required

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

Headers

Accept-Language
string
default:en

Preferred language for the response

Query Parameters

AccountId
integer
required

The unique identifier of the bank account

Example:

1

Response

Success Response (200)

merchantAccountNumber
integer

The unique identifier of the merchant account

Example:

35253486

accountId
integer

The unique identifier of the bank account

Example:

12

accountName
string

The name of the bank account

Example:

"Test Account"

accountNumber
string

The bank account number

Example:

"114453647"

connectorId
integer

The unique identifier of the connector/payment provider. See Get Connectors for available connector IDs.

Example:

550044

connectorName
string

The name of the payment connector

Example:

"National Bank of Malawi"

isActive
boolean

Indicates whether the bank account is currently active

Example:

true

dateCreated
string<date-time>

The date and time when the bank account was created (ISO 8601)

Example:

"2024-01-15T10:30:00Z"

dateCaptured
string<date-time>

The date and time when the bank account details were captured (ISO 8601)

Example:

"2024-01-15T10:30:00Z"

capturedBy
string<email>

The email of the user who captured the account

Example:

"admin@example.com"

dateModified
string<date-time> | null

The date and time when the bank account was last modified (ISO 8601)

Example:

"2024-01-16T14:20:00Z"

modifiedBy
string | null

The username or identifier of the user who last modified the account

Example:

"user@example.com"