Withdraw
POST/v1.2/finance/withdraw
This is used to request to withdraw some amount from a customer cash account in the system by the end customer.
This function serves as a request to withdraw a specific amount from a customer's cash account within the system, initiated by the end customer.
Security account number or cash account number is required. Cash account number will be prioritized
Request
Header Parameters
- application/json
Body
The Security account number
The Cash account number
The amount
Find valid bank id for the institution Master Data> Get Institutional Bank Accounts
Find customer bank account numbers Master Data > Get Customer Bank Accounts
Possible values: non-empty
, [0
, 1
, 2
]
0 for Cheque, 1 for Bank, 2 for Cash
The currency
Example: USD
Possible values: Value must match regular expression ^[0-9]{4}/(0[1-9]|1[0-2])/(0[1-9]|[1-2][0-9]|3[0-1])$
Example: 2022/04/04
Possible values: Value must match regular expression ^[0-9]{4}/(0[1-9]|1[0-2])/(0[1-9]|[1-2][0-9]|3[0-1])$
Example: 2022/04/04
reference Id for the transaction
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- example
Schema
Possible values: non-empty
Possible values: non-empty
, [SUCCESS
, FAILED
]
Find error codes here
{
"requestId": 0,
"amount": 0,
"narration": "string",
"status": "SUCCESS",
"cashAccountNumber": "string",
"reason": "string",
"rejectCode": 0
}
{
"requestId": 0,
"amount": 15000,
"narration": "Withdrawal amount is less than the minimum withdrawal amount. Minimum withdrawal amount is USD 10000.0. Please Contact Customer Service at 077123123 for further inquiry",
"status": "SUCCESS",
"reason": "",
"cashAccountNumber": "C000311055",
"rejectCode": 0
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Invalid Token
- Expired Token
Schema
{
"timestamp": "string",
"status": "string",
"error": "string",
"message": "string",
"path": "string",
"rejectCode": "string"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Invalid Token",
"path": "/api/v1.2/finance/withdraw",
"rejectCode": "1008"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Expired Token",
"path": "/api/v1.2/finance/withdraw",
"rejectCode": "1007"
}