Transmit a repayment

Transmit a repayment for a LOC

POST https://sandbox-api.stilt.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

NameTypeDescription

user_id*

string

The uuid of the user

loc_id*

string

The uuid of the LOC

Request Body

NameTypeDescription

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 USD. 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: { "ach_routing_number": "103100195",

"bank_account_number": "456455535",

"bank_name": "Chime",

"bank_account_name": "Chime 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": 4200.0,
    "current_credit": 4500.0,
    "repayment_uuid": "214bef06-2a87-412e-8430-82b33b2a044d"
}

Last updated