External Debit
You must have the Authorization to use this API
Create
POST
{{baseUrl}}/wp-json/rimplenet-wallet-addon/v1/external-debits
Request Body
Name
Type
Description
request_id*
int
Enter request id
wallet_id*
int
Enter wallet id
amount*
int
Enter the amount
user_id*
int
Enetr user id
deductions*
int
Amount deducted
{
"status_code": 200,
"status": true,
"message": "Transaction Completed",
"data": [
{
"transaction_id": 287,
"user_id": "1"
},
{
"deductions_submitted": {
"usd": {
"tax": 94
}
},
"deductions_wallet_id": "usd",
"total_deductions_usd": 94,
"total": 10,
"deductions_txn_id_usd": "SELF_DEDUCTED",
"record": 288
}
]
}
{
"status_code": 400,
"status": false,
"message": "Insufficient balance",
"error": {
"ngn": "Insufficient balance in ngn"
}
}
{
"status_code": 400,
"status": false,
"message": "invalid input",
"error": {
"user_id": "user_id cannot be zero",
"amount": "Field Cannot be empty"
}
}
{
"status_code": 400,
"status": false,
"message": "409",
"error": {
"txn_id": "283",
"exist": "Transaction already executed"
}
}
To view request params, click on the arrow (>) at the right-hand side of the endpoint URL to expand or collapse
{
"status_code": 200,
"status": true,
"message": "Transaction Completed",
"data": [
{
"transaction_id": 287,
"user_id": "1"
},
{
"deductions_submitted": {
"usd": {
"tax": 94
}
},
"deductions_wallet_id": "usd",
"total_deductions_usd": 94,
"total": 10,
"deductions_txn_id_usd": "SELF_DEDUCTED",
"record": 288
}
]
}
{
"status_code": 400,
"status": false,
"message": "Insufficient balance",
"error": {
"ngn": "Insufficient balance in ngn"
}
}
{
"status_code": 400,
"status": false,
"message": "invalid input",
"error": {
"user_id": "user_id cannot be zero",
"amount": "Field Cannot be empty"
}
}
{
"status_code": 400,
"status": false,
"message": "409",
"error": {
"txn_id": "283",
"exist": "Transaction already executed"
}
}
Last updated