Documentation

Payments API

Handle payments and transactions.

Endpoints

GET/payments

List all payments

curl https://api.insurlink.com/v1/payments \
  -H "Authorization: Bearer YOUR_API_KEY"
bash
POST/payments/initialize

Initialize a payment transaction

curl -X POST https://api.insurlink.com/v1/payments/initialize \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 50000,
    "policyId": "policy-123",
    "email": "customer@example.com"
  }'
bash
GET/payments/verify/:reference

Verify a payment transaction

curl https://api.insurlink.com/v1/payments/verify/ref-123 \
  -H "Authorization: Bearer YOUR_API_KEY"
bash