POST
/
merchants
/
bankAccounts
/
delete
cURL
curl -X POST "https://dev.api.onekhusa.com/sandbox/v1/merchants/bankAccounts/delete" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "Content-Type: application/json" \
  --header "Accept-Language: en" \
  -d '{
    "accountId": 25,
    "merchantAccountNumber": 35253486,
    "deletedBy": "johndoe@example.com"
  }'
"Merchant has been deleted successfully"

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

Body

application/json
accountId
integer
required

The unique identifier of the settlement account to delete. See Get Settlement Accounts for available account IDs.

Example:

25

merchantAccountNumber
integer
required

The unique identifier of the merchant account

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

35253486

deletedBy
string
required

The username or email of the user performing the deletion

Example:

"johndoe@example.com"

Response

200 - application/json

Merchant has been deleted successfully

message
string
Example:

"Merchant has been deleted successfullyy"