End-to-end integration

Build a complete insurance flow into your app, from setting up your business to your first live sale. Each step below has its own page with the calls to make, in order.

The journeylink

StepWhat you doMain calls
1. Set up your businessCreate your business, verify it, create a test key.Merchant dashboard
2. Show productsFind what your business may sell and line products up.GET /taxonomy, GET /products, POST /compare
3. Collect the quote formRender the insurer's form and collect your customer's answers.GET /products/{providerId}/{productId}/form
4. Price a quoteGet the insurer's firm price.POST /quotes
5. Take payment and buyCharge your customer, then buy the policy.POST /purchases
6. Receive webhooksLearn when quotes, policies and claims change.POST /webhook-endpoints
7. Service the policyDocuments, changes, renewals and cancellations./policies/...
8. Handle claimsFile, follow, appeal or withdraw claims.POST /uploads, /claims/...
9. Settle your statementPay what you collected, less refunds and your commission.GET /statements
10. Test and go liveFinish the activation checklist and switch to a live key.Merchant dashboard

Build every step with a test key first. Nothing you do in test issues real cover or moves real money.

The ids you keeplink

Store these as you go. Most calls need two of them.

IdWhere it comes fromWhat you use it for
providerIdEvery productThe insurer. Almost every call needs it.
productIdGET /productsReading, comparing and quoting a product.
formId, formVersionThe product's formQuoting, claiming and endorsing.
quoteIdPOST /quotesBuying the quote.
purchaseIdPOST /purchasesFollowing the purchase and reporting installments.
policyIdThe purchase, once issuedReading, changing, renewing, cancelling and claiming on the policy.
fileIdPOST /uploadsAttaching evidence to a claim.
claimIdPOST /claimsFollowing, adding to, appealing and withdrawing the claim.
statementIdThe purchase, once billedReconciling what you owe.

A sale in five callslink

The shortest happy path, once your business is set up:

GET  /products?productType=MOTOR_COMPREHENSIVE          pick a product
GET  /products/{providerId}/{productId}/form?context=quote   render the form
POST /quotes                                            get the price
     (charge your customer quote.totalMinor yourself)
POST /purchases                                         buy the policy
GET  /policies/{providerId}/{policyId}                  show the policy

Everything after the sale (renewals, changes, cancellations, claims and statements) builds on the providerId and policyId you keep from this path.