Skip to content

Payments

The Inshuwa API supports multiple payment methods for premium collection.

Supported Payment Methods

MethodDescription
Mobile MoneyAirtel Money, MTN Mobile Money, Zamtel Kwacha
CardVisa and Mastercard
Mobile BankingLocal banking platforms

Pay for a Quotation

http
POST /api/v1/payments/{quoteId}/pay

Request body:

json
{
  "reference": "your-unique-reference-123",
  "payment": {
    "method": "MobileMoney",
    "mobileMoneyAccountNumber": "260971234567"
  }
}

The reference is your unique identifier for this transaction. Store it to check payment status later.

Check Transaction Status

http
GET /api/v1/payments/transactions/{reference}/status

Response:

json
{
  "reference": "your-unique-reference-123",
  "status": "Success",
  "amount": 1500.00,
  "currency": "ZMW"
}

Payment Statuses

StatusDescription
PendingPayment initiated, awaiting confirmation
SuccessPayment completed successfully
FailedPayment failed

Combined Payment Endpoints

Some policy endpoints include payment in a single request:

  • POST /api/v1/policies/motor/instant/issue/pay — Issue and pay motor policy
  • POST /api/v1/policies/motor/{policyId}/renew/pay — Renew and pay motor policy
  • POST /api/v1/policies/motor/{policyId}/extend/pay — Extend and pay motor policy
  • POST /api/v1/quotations/travel/instant-issue — Issue and pay travel policy
  • POST /api/v1/quotations/life/instant-issue — Issue and pay life policy

Best Practices

  • Always generate a unique reference for each transaction
  • Poll transaction status after initiating payment — do not assume immediate success
  • Implement webhook handling to receive real-time payment notifications (see Webhooks)
  • Store the reference in your system to reconcile payments

Built with ❤️ by Hobbiton Technologies