Preview, then issue
A preview is a quote. It takes the same body as an issuance, checks it the same way and prices it the same way, but records nothing. Use it to show the borrower the plan before they sign.Preview the terms
Issue the loan
Keep the id
totals, never from a sum of your own. An offer that sells a menu of terms is one preview per term, and a term the principal cannot be divided across at this rate is refused rather than rounded.
Issue with the loans endpoint, and quote with the preview endpoint. The API reference carries the exact format and the error each value returns.
What issuance checks
Every value in the body is checked against the product it names and the jurisdiction it declares. The first problem stops the check and names its field. A preview runs the same checks, so a preview that passes is an issuance that passes.What is frozen
Issuance prices the agreement once and keeps everything the pricing read. A later change to the product, to a holiday calendar or to a market rule does not reach a loan already issued.terms
The terms exactly as you stated them, reference and context included.
terms
The terms exactly as you stated them, reference and context included.
configuration
The product and the version the loan was issued under.
configuration
The product and the version the loan was issued under.
periods
The plan: every period with its dates and its principal, interest, fee, tax and payment.
periods
The plan: every period with its dates and its principal, interest, fee, tax and payment.
regime
The market's rules as values, not as a name.
regime
The market's rules as values, not as a name.
disclosure
The disclosed cost figure, computed once.
disclosure
The disclosed cost figure, computed once.
A worked example
The loan issued above is MXN 8,000.00 over 12 months at 45.5% a year, under a product with a MXN 250.00 origination fee and 16% tax on interest and fee. This is the plan the Platform stores for it.- The payment is equal. Every period pays 900.66, and the split between principal and interest moves: interest falls as the balance falls, and principal rises to keep the payment level. The last period pays 900.78, twelve centavos more, because the Platform keeps the rounding residue of the whole plan and settles it there instead of spreading a centavo nobody can trace.
- Interest counts actual days. Period 1 runs from 2 March to 2 April, 31 days, on the
actual_360basis: 8,000.00 × 45.5% × 31 ÷ 360 = 313.44. Period 2 runs 30 days on a smaller balance, so it charges 283.88. - The fee is spread evenly. 250.00 over 12 periods is 20.83 a period, and the last four carry 20.84 so the twelve add up to exactly 250.00. Nothing accrues on the fee.
- Tax follows the rule the loan states. 16% of interest plus fee: in period 1, 16% of 313.44 + 20.83 = 53.48. The tax column above shows fee and tax together, 20.83 + 53.48 = 74.31.
- Due dates move, scheduled dates do not. Every period is scheduled on the 2nd. Four of them fall due later: 2 April 2026 is Holy Thursday, so period 1 is due Monday the 6th; 2 August is a Sunday; 2 November is Día de Muertos; 2 January 2027 is a Saturday. Interest runs between the scheduled dates, so a moved due date changes what the borrower has to pay by, never what they pay.
Read a loan
One call returns the whole record: the frozen terms and plan, every recorded event, and the state derived from them.state, every recorded event in events with the day it is about and the moment it was written, any anomalies the Platform resolved instead of refusing, and rolled_over, how many rollovers stand in force. A closed loan adds closed_on; a written-off loan adds write_off. The read endpoint describes each field.
States
A state names what the recorded facts add up to. No state is final: each names the fact that withdraws it.closed, with what was forgiven stated on the read.
voided over held over cancelled over rescinded and withdrawn over ceded over written_off over closed over restructured over active. A loan nobody owes cannot be anything else; a loan that never began cannot have been paid off, charged off or sold.List loans
The loans route returns every loan of your tenancy as summary rows, each with its state. Three filters narrow it.paid, what receipts have settled against the loan so far.
Acts
Nine acts change a loan’s life. Each one is recorded as a fact, never edited. Recording answers201, an identical retry answers 200, and the same reference with a different body answers 409.
Every act is posted under the loan, at its own segment.
on, the day it is about — a suspension states from and to instead — and the same three fields of your own: reference, your name for the act, unique across all nine acts of your tenancy; actor, your reference for whoever acted; and basis, what they wrote down about why. An optional context object is stored and returned beside the fact.
Cancel a loan
A cancellation is your record that the agreement never began: signed in error, or never disbursed. The date may not fall before the loan’sanchor.
state: "cancelled" and a new cancelled event that carries your reference, actor and basis. Everything else reads exactly as issued.
A cancellation says the loan never began, so any fact that says otherwise refuses it.
Roll a Pay Day Loan over
A rollover is the borrower paying the cost accrued so far instead of repaying the loan, and carrying the principal forward onto one more period on the same terms. You record it on the date the borrower stood at the till.- The loan stays
active, keeps its id, its terms and its disclosed cost, androlled_overgoes up by one. - A settlement falls due on the rollover date: the interest accrued to that day, the product’s
rollover_fee, and the tax on both. It carries no principal. - A new segment starts on that date with the same shape as the original term. The principal and the uncollected share of the origination fee move onto it.
- The issued plan is untouched. The segment appears on the serviced schedule.
422 and names its field; a refused act answers 409 and names the fact in the way. Every code is on Errors.
FAQ
Can I edit a loan after it is issued?
Can I edit a loan after it is issued?
Can I issue a loan with a date in the past?
Can I issue a loan with a date in the past?
anchor is the day the agreement runs from and is never compared with a clock. A loan signed on Friday and reported on Monday is a fact about Friday, and its plan runs from Friday.What happens if I send the same issuance twice?
What happens if I send the same issuance twice?
reference and the same body, the second call answers 200 with the loan already on file. Nothing is written twice. With the same reference and a different body, it answers 409 reference_reused and names the field that differs.Does a preview lock in the price?
Does a preview lock in the price?
How long can a term be?
How long can a term be?
terms menu allows and the holiday calendar covers. Every date of the plan has to fall on or before the last day the Platform holds holiday data for, otherwise the issuance answers 422 beyond_horizon. The horizon moves out with each release. See Markets.Is a rolled-over loan a new loan?
Is a rolled-over loan a new loan?
rolled_over counts one more. The rollover adds a segment to the serviced schedule and leaves the issued plan as it was.