Draw down on a LOC
Draw down on a LOC
POST https://sandbox-api.stilt.com/v1/users/{user_id}/loc/{loc_id}/draw
Returns an object with the available_credit as a result of the drawdown. If unsuccessful, an error will be returned (for example if the drawdown amount exceeds the available credit).
Path Parameters
user_id*
string
The uuid of the user
loc_id*
string
The uuid of the LOC
Request Body
disbursement_bank_info*
object
An object containing the bank account to disburse the drawdown to, structured as follows:
{
"bank_account_number": "456455535",
"bank_name": "ECOBANK",
"bank_account_name": "ECOBANK checking",
"account_type" : "checking"
}
amount*
float
The amount to draw down, in XAF
disbursement_date
String
The date to initiate the disbursement, formatted as YYYY-MM-DD.
Format: YYYY-MM-DD
{
"available_credit": 45000.0,
"current_credit": 42000.0
}{
// Response
}{
"message": "Credit not enough to draw amount. Current Credit 20000.00"
}Last updated