Skip to content

Travel Insurance

This guide walks you through issuing travel insurance policies using the Inshuwa API.

Every step below is runnable. Set your key once, fill in the request, press Try it out, and read the real response without leaving the page — see Running requests from the guide.

Set it once and every Try it out below is authenticated. It stays in this browser's local storage and is never sent anywhere but the API.

Choose your issuance flow

Travel supports three of the four issuance flows.

Prepaid — Inshuwa collectsAccount-settled — PayLater / external
Quotation firstA. POST /quotations/travel → issue with payment detailsC. POST /quotations/travel → issue without them
Instant (one call)B. POST /policies/travel/instant-issue

One issue endpoint, two flows

POST /policies/travel/{quoteId}/issue covers both A and C. Send mobileMoneyAccountNumber or cardDetails and it initiates a collection — the policy is issued when the payment confirms. Omit them and your account's PayLater or external arrangement applies, and the policy is issued immediately.

POST /payments/{quoteId}/pay does the same thing as the payment-carrying form, so use one or the other — it is not a step before issuing.

Traveller registration, product selection, the certificate and renewal are shared by every flow.

Step 1: Create a Policyholder

Register the traveller. Keep the id from the response — it is the clientId on the quotation and on the one-shot call.

Register the traveller
Reference →
POST/policyholders/individuals

Playground

Authorization
Body

Step 2: Select a Travel Product

Each product contains packages with destination coverage, benefits, and premium amounts. Note the packageId.

Browse travel products
Reference →
GET/products/travel

Playground

Authorization
Get one product's packages
Reference →
GET/products/travel/{productId}

Playground

Authorization
Variables
Key
Value

Flow A / C: Quote, then issue

1. Create a quotation

The response contains the quoteId.

1. Create a travel quotation
Reference →
POST/quotations/travel

Playground

Authorization
Body
Retrieve a quotation
Reference →
GET/quotations/{quoteId}/travel

Playground

Authorization
Variables
Key
Value

2. Issue it

Send reference plus mobileMoneyAccountNumber or cardDetails for the prepaid path (flow A), or reference alone if your account settles externally (flow C).

2. Issue the policy
Reference →
POST/policies/travel/{quoteId}/issue

Playground

Authorization
Variables
Key
Value
Body

3. Poll, if you paid through the gateway

On flow A the response is Pending until the payer approves on their handset. The policy is issued when the payment confirms, and the transaction status carries it.

3. Check payment status
Reference →
GET/payments/transactions/{reference}/status

Playground

Authorization
Variables
Key
Value

The generic POST /payments/{quoteId}/pay is an alternative to step 2 for the prepaid path — it also issues the policy on confirmation. Use one or the other.

Alternative: pay the quotation
Reference →
POST/payments/{quoteId}/pay

Playground

Authorization
Variables
Key
Value
Body

Flow B: Instant issue and pay (prepaid)

Quote, issue and initiate payment in a single call, supplying the traveller, destination and package inline. reference is required.

Quote, issue and pay in one call
Reference →
POST/policies/travel/instant-issue

Playground

Authorization
Body

One call, not instant settlement

The policy is created immediately but mobile money settles asynchronously. Poll GET /payments/transactions/{reference}/status or handle the webhook before you treat the sale as complete.


Download the Certificate

Policy certificate
Reference →
GET/policies/travel/{policyId}/certificate

Playground

Authorization
Variables
Key
Value

Policy Renewal

Renewal collects the premium in the same call.

Renew and pay the policy
Reference →
POST/policies/travel/{policyId}/renew/pay

Playground

Authorization
Variables
Key
Value
Body

View Travel Policies

List travel policies
Reference →
GET/policies/travel

Playground

Authorization
Variables
Key
Value
Get one travel policy
Reference →
GET/policies/travel/{policyId}

Playground

Authorization
Variables
Key
Value

Built with ❤️ by Hobbiton Technologies