GET
/
api
/
v1
/
customers
/
{id}
/
policies
/
Retrieve all active policies for a specific customer
curl --request GET \
  --url https://dev.superpool.unyte.africa/api/v1/customers/{id}/policies/ \
  --header 'X-API-Key: <api-key>'
{
  "count": 123,
  "next": "http://api.example.org/accounts/?offset=400&limit=100",
  "previous": "http://api.example.org/accounts/?offset=200&limit=100",
  "results": [
    {
      "data": [
        {
          "policy_id": "24708b5a-10de-4364-8ea4-0249d9118a84",
          "policy_type": "Travel",
          "status": "active",
          "start_date": "2025-01-23",
          "end_date": "2026-01-23",
          "premium_amount": "4724.93"
        },
        {
          "policy_id": "136defb6-76b3-4974-845e-26c382fd266b",
          "policy_type": "Auto",
          "status": "active",
          "start_date": "2025-01-23",
          "end_date": "2026-01-23",
          "premium_amount": "1000.00"
        },
        {
          "policy_id": "ddd644cc-e418-43e6-9b53-7a717a23b24c",
          "policy_type": "Gadget",
          "status": "active",
          "start_date": "2025-01-23",
          "end_date": "2026-01-23",
          "premium_amount": "100000.00"
        },
        {
          "policy_id": "d4db8ec7-67fc-44d2-8b32-a67649b9373d",
          "policy_type": "Gadget",
          "status": "active",
          "start_date": "2025-01-23",
          "end_date": "2026-01-23",
          "premium_amount": "100000.00"
        },
        {
          "policy_id": "e137b581-01f9-45f6-be62-e576ab466f41",
          "policy_type": "Travel",
          "status": "active",
          "start_date": "2025-01-23",
          "end_date": "2026-01-23",
          "premium_amount": "4724.93"
        }
      ]
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Path Parameters

id
string
required

Response

200 - application/json

View customer's active policies

The response is of type object.