Transmit a repayment
Transmit a repayment for a LOC
POST https://sandbox-api.nanol.com/v1/users/{user_id}/loc/{loc_id}/payments
Returns a repayment_uuid for the payment along with the balance of the loc. Returns an error if parameters are invalid (e.g. specifying an amount greater than the balance).
Path Parameters
user_id*
string
The uuid of the user
loc_id*
string
The uuid of the LOC
Request Body
payment_type*
enum
The type of the repayment transaction. Possible values:
SINGLE_PAYMENT: one-off payment
PAYOFF: if a user pays off entire balance to close an account
MERCHANT_RETURN: for lines of credit backing a card, when a purchase return is issued
amount*
float
The repayment amount, in XAF. The maximum amount is the remaining balance of the LOC.
repayment_bank_info
object
An object containing the user's bank details for processing LOC repayments, structured as follows: {
"bank_account_number": "456455535",
"bank_name": "ECOBANK",
"bank_account_name": "ECOBANK checking",
"account_type" : "checking"
}
payment_date
String
The date to initiate the payment, formatted as YYYY-MM-DD. ForSINGLE_PAYMENT, AND PAYOFF transactions, this can be set to the date when the transaction posts (not when the payment is initiated)
Format: YYYY-MM-DD
{
"available_credit": 42000.0,
"current_credit": 45000.0,
"repayment_uuid": "214bef06-2a87-412e-8430-82b33b2a044d"
}{
// Response
}Last updated