Before you start
You need two things, and the walk creates everything else.
Then set two shell variables and paste in the signer, which is the reference implementation on API keys.
Set up the shell
Issue a loan
Four calls turn terms into an agreement on record.Create the product
Set the terms you sell. The archetype decides which settings the product carries, and any setting it does not carry is refused by name rather than ignored. You do not name the product: the Platform composes its identifier and answers it.The answer is
Create the product
Response
201: version is 1, and id is inst-000001 — the identifier the Platform composed, and the value an issuance names as its configuration_id. Sending the same body again creates a second product, inst-000002; send an Idempotency-Key if you mean one.Register the borrower
Register the identifier the loan will name. A client carries an identifier, an optional label and nothing else: a field for a name, a birth date or a document is refused.The answer is
Register the borrower
Response
201, and the issuance names this identifier as its client_id.Quote the loan
Price the agreement before recording it. A preview takes the same body an issuance takes, without a reference, and records nothing.The loan is MXN 8,000.00 over 12 monthly payments at 45.5% a year, starting Nine of the twelve period rows are cut above;
2026-03-02 in Mexico, under the product above. Its penalty rate is 60%, and tax runs at 16% on interest, fee, penalty and late fee.Quote the loan
Response
disclosure.figure carries the CAT, and nothing was recorded. The quoted payment of 90066 (MXN 900.66) rounds down to a whole centavo; the final payment’s 90078 absorbs the 12-centavo residual.Issue the loan
Send the same body again, now carrying a The answer is
reference: your own identifier for this agreement, unique in your tenancy. It is what makes a retry safe.Issue the loan
Response
201 and state answers active; the body continues with the recorded events and the preview’s document, priced once at issuance. A retry carrying the same reference and the same statements answers 200 and this same loan.Preview and issue read one body. A preview ignores
reference and records nothing; an issuance retried under its reference answers 200 with the loan on file, not a second loan.Report the money
You hold the funds; the Platform holds the record. Money is reported against the borrower, and every figure after it is derived from that report.Report the payment
Report the first payment as it arrives. It was scheduled for The answer is
2026-04-02, a non-working day in Mexico, so collection moved to 2026-04-06, and that is the date the borrower paid on.Report the payment
Response
201, settled is the whole 90066, and excess is zero. Inside the first payment the money ran fee, then interest, then principal, each charge with its tax beside it.Ask what is owed
Ask what the borrower owes on a date you name. The Platform has no today of its own, so a read without a date is refused. The answer covers each loan: what is overdue, the next payment, the payoff figure, and what an unnamed amount would do.The two cut
Read the payment options
Response
charges arrays split each total by fee, interest and principal, as on the payment above. overdue.total is zero, no late appears because nothing is behind, and instalment names the second payment, due 2026-05-04, at the same 90066 — settled by its own figure, since its due date has not arrived. payoff.owed.total answers 787367 (MXN 7,873.67) for 2026-04-13: a payoff is stated by payoff_intent on the payment, never inferred from the amount.Reading the options records nothing. When you relay that payoff to the borrower as the figure to pay, record it: the Platform keeps the same figure and the versions that computed it, readable on the loan’s payoff quotes. The record binds nothing: a payment is settled against the figure derived on the day it arrives, never against a figure recorded there.What you have now
A product on file, a borrower registered against it, a loan of MXN 8,000.00 over twelve payments, and the first of those payments settled. The loan readsactive, and the Platform derives what it owes on any date you ask for.
Products
Every setting a product carries, and which archetype to sell under.
Loans
What issuance checks, what it freezes, and the acts that change a loan’s life.
Payments
The order money settles in, and what a borrower may choose to do with it.
Going live
What separates the sandbox from the book that owes real people money.