Skip to main content
In the Credit Engine a product is the set of terms every loan is issued under. This page covers what the Engine adds to a product: an identifier, a preview before you write, versions that never change, and lookup keys that put a version on sale. What a product is and what each term means is in Products. A product is the first thing you set up.
1

Create a product

Set the terms of the offer: the type, the amounts, the rates, the fees.
2

Register a borrower

Register each borrower you lend to under your own identifier. See Clients.
3

Issue a loan

Issue a loan naming the product and the borrower, and pick one point inside every range. See Loans.

Overview

A product in the API is a ProductConfiguration: an archetype, a version and the values that hold its terms. You create products with your own code, or in the Workspace. When a workspace is connected to the Engine, Create a product registers the product here with the same terms.

Schedules the Workspace does not offer

The Workspace sends one schedule per product, from four fixed choices. The API takes more. A product may admit more than one schedule, at most one of each kind, and let each loan choose. A product that admits anchored_every_n_days at 14 days and the semi_monthly_grid on the 15th and the last day lets the borrower pick “every two weeks from today” or “on pay days”. The issuance names the choice. A product admitting one schedule needs no choice at all. Repayment shows which schedule each Workspace frequency becomes.

The identifier

You set nothing here. When you create a product the Platform answers an identifier built to one rule: a four-letter code for the archetype, a hyphen, and a six-digit number counted within your tenancy and within that archetype. Your first instalment product is inst-000001, your second inst-000002, and your first pay-day product is payd-000001 however many instalment products came before it. The codes are inst, bnpl and payd, and every identifier is eleven characters. Unlike the terms, the identifier is not part of the version: it is fixed when the product is created and never changes, because it is what every loan issued under it names. Another lender’s catalogue starts at inst-000001 too; the identifier names a product within your tenancy and nowhere else. The Engine holds no name for a product. What the borrower sees on the contract and the statement is yours to print. In the Workspace, the product’s name is kept beside the identifier. Because you name nothing, two creates of the same body are two products. Send an idempotency key if you mean one — a form submitted twice is what it is for. You can also preview a product before creating it and see the identifier it would take.

Try before you create

A product cannot be deleted, so a mistaken one stays in your catalogue. Before you create one, try the body: the same body, the same checks, and nothing written. If the Platform would refuse it, you see the refusal now, naming the field. If it would accept it, you see the terms as they will read back. A new version has the same preview. What each archetype admits — which fields, which are required, which it locks, and every limit — is read from the Platform rather than copied from this page, so a form built on it cannot fall behind.

Changing your terms

A product is never edited. When your terms change, you publish a new version of it, and version numbers count up from one. Loans already issued are not affected: each keeps the version it was issued under for its whole life, along with its schedule, its payments and the cost figure you disclosed. Raising your rates next quarter does not reach a loan sold this quarter, and that is the point.
A new version replaces the whole set of terms rather than patching the old one. Anything you leave out is left out: a version that restates your rates but omits your issuance fee is a valid product with no issuance fee. Start from the version standing today, change what you mean to change, and publish all of it.
Every version stays readable for as long as a loan names it. A loan always names a version by number. A new version sells nothing on its own: it goes on sale when you move a lookup key to it. Two things cannot be changed by a version, because they change what the product is rather than what it costs: the product type and the currency. Each needs a new product. A lender selling a personal loan in two currencies and a payday advance therefore runs three products. Status and versions sets the Engine’s versions beside the Workspace’s Planned, Live and Stopped.

Selling under a lookup key

The identifier differs between environments — your sandbox and your live Tenancy are two catalogues, and the same product can be inst-000002 in one and inst-000003 in the other. The version you sell changes every time your terms do. Neither belongs in your code or your environment variables. A lookup key is a word of your own for a product you sell — meses, quincenas — pointed at one version of one product. Your code holds the key, the same in every environment. The Platform answers which product and version it names.
1

Point a key once per environment

Point meses at inst-000003 version 3. The key names that version and no other.
2

Resolve your keys when a page is priced

One read with ?lookup_key=meses&lookup_key=quincenas answers every product on the page, with each version’s terms. Read when you price, not once at start-up: a copy kept from start-up misses the next move.
3

Sell under the pair the read answered

Every selling request — a preview, a decision, an issuance — still names configuration_id and configuration_version. Fill them from the read. No request takes a key.
Changing what you sell is one call. Write the new version, then point the key at it with transfer: true. Without transfer, a key that names another version is refused lookup_key_taken, naming where it points — so a key you believed was new cannot silently replace a product on sale. The product keeps its identifier; only the key moves. Every pointing is recorded, so what a key sold on any past day is on record. On a live Tenancy only a person or your own key can point or remove a key. An agent may read keys, and on a sandbox it may point them. The Workspace never points a key.

FAQ

Yes. A product names no country. The loan does, and that is what decides the holiday calendar, the legal ceiling on the penalty rate and the disclosed cost figure. What a product cannot span is two currencies.
Because a product that cannot say what happens when a borrower does not pay is not a complete offer, and a penalty rate invented at the moment of default is a term nobody agreed to. A product that charges no penalty states that, as a range of zero.
No. Point the same lookup keys in each environment and let your code hold only the keys. Each environment answers its own identifier and version.
No. It is the same configuration under the same rules. The Workspace sends the terms it shows and leaves out the fields it does not offer.