Run in Apidog
This API facilitates the deduction of a specified amount from a customer's account using a selected payment method. The transaction is processed based on the provided account details and payment type. Request Body # The request should be a JSON object containing the following fields: Field Name Type Required Description nuban string TRUE The NUBAN (bank account number) of the account to be debited. amount decimal TRUE The exact amount to be deducted from the account. paymentTypeId integer TRUE Unique identifier representing the selected payment type for the transaction.
Response Table # Field Name Type Description transactionID integer Unique identifier assigned to the processed debit transaction. nuban string The NUBAN (bank account number) from which the funds were deducted. amount decimal The amount that was successfully debited from the account. status string The outcome of the transaction, indicating whether it was "Successful" or "Failed."
Request Body Params application/json
{
"nuban" : "0000000244" ,
"paymentTypeId" : 1 ,
"amount" : 5.50
}
Request samples curl --location --request POST '/core/debit' \
--header 'Content-Type: application/json' \
--data-raw '{
"nuban": "0000000244",
"paymentTypeId": 1,
"amount": 5.50
}'
Responses application/json Generate Code
{
"transactionID" : 465 ,
"nuban" : "0000000244" ,
"amount" : 5.5 ,
"paymentTypeId" : 1
}
Modified at 2025-03-19 15:02:48