Loans API
BNPL loan management endpoints
Loans API
Manage BNPL loans through the StepFi API.
Create Loan
POST /api/v1/loans
Authorization: Bearer {token}
Content-Type: application/json
{
"vendorAddress": "GVENDOR...",
"amount": 110000000,
"installments": 6,
"loanType": "LearnerInstallment"
}
Amount is in stroops (1 XLM = 10,000,000 stroops). For USDC, 1 USDC = 10,000,000 units.
Response returns unsigned XDR that the learner must sign with their wallet.