Skip to main content

Withdraw

POST /transfers/withdraw

Description

Initiate a withdrawal transfer.

Path Parameters

NameTypeDescription
NoneNo parameters

Request Headers

NameTypeDescription
countryCodestringThe country code (header)
tenantIdstringThe tenant ID (header)
userIdstringThe user ID (header)

Request Body

  • Content Type: application/json
{
"debitAccountId": "string",
"amount": 100,
"recipientName": "string",
"recipientBankCode": "string",
"recipientAccountNumber": "string",
"userId": "string",
"requestId": "string",
"narration": "string",
"settlementUuId": "string"
}

Response Code: 200 - OK

Description

Withdraw successful.

Response Fields

FieldTypeDescription
statusbooleanIndicates if the operation was successful
statusCodeintegerStatus code
messagestringResponse message
dataobjectData related to the withdrawal
errorsarrayList of error messages, if any

Example

{
"status": true,
"statusCode": 0,
"message": "Withdraw successful",
"data": {},
"errors": [
{
"message": "Some error occurred",
"descriptiveMessage": "Detailed error message"
}
]
}

Headers

Content-TypeValue
apiKey{{apiKey}}
countryCodestring
tenantIdstring
userIdstring

Body

{
"debitAccountId": "acc123",
"amount": 100,
"recipientName": "John Doe",
"recipientBankCode": "001",
"recipientAccountNumber": "123456789",
"userId": "usr456",
"requestId": "req789",
"narration": "Withdrawal request",
"settlementUuId": "settle123"
}

🔑 Authentication bearer

ParamValueType
token{{accessCode}}string

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request POST \ 
--url /transfers/withdraw \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!