Preview. The API is shared with design partners and may change before launch. Register interest for sandbox access.
Policies
A policy is the cover a customer bought for one unit of one item. Creating a policy activates the cover and emails the customer their policy documents.
The policy object
Section titled “The policy object”{ "id": "pol_01JD7QB2N4R6T8V0X2Z4B6D8F0", "object": "policy", "status": "active", "offer": "off_01JD7Q8S4M5W2X3Y4Z6A7B8C9D", "merchant": "mer_01JD7Z4K2Q8V6N3R5T7W9Y1A3C", "order_reference": "100482", "item": { "reference": "SKU-CBX-48", "name": "City Bike Explorer", "category": "bikes", "price": 499000 }, "plan": { "id": "plan_36m", "label": "3 years", "term_months": 36 }, "premium": 29900, "currency": "NOK", "starts_at": "2026-10-23T13:45:51Z", "ends_at": "2029-10-23T13:45:51Z", "cancelled_at": null, "cancellation_reason": null, "documents": { "certificate_url": "https://getphew.com/p/pol_01JD7QB2.../certificate" }, "created_at": "2026-10-23T13:45:51Z", "metadata": {}}status enum active, cancelled or expired. A policy expires automatically at ends_at.
premium integer starts_at timestamp ends_at timestamp documents.certificate_url string The customer’s policy certificate. The link requires the customer to verify their email before it opens.
Create policies
Section titled “Create policies”api.getphew.com/v1/policies policies:writeCall this when the order is paid. It creates one policy per covered unit and returns them as a list. Requires an
Idempotency-Key.
Request body
offer string requiredorder_reference string requireditems array requiredThe covered items and the plan chosen for each.
reference string requiredreference from the offer.plan string requiredquantity integer customer object requiredname string requiredemail string requiredlocale string nb-NO.phone string payment object Only for split settlement.
reference string requiredmetadata object { "object": "list", "data": [{ "id": "pol_01JD7QB2N4R6T8V0X2Z4B6D8F0", "object": "policy", "status": "active" }], "has_more": false}Retrieve a policy
Section titled “Retrieve a policy”api.getphew.com/v1/policies/{id} policies:readList policies
Section titled “List policies”api.getphew.com/v1/policies policies:readQuery parameters
order_reference string status enum active, cancelled or expired.created[gte], created[lt] timestamp limit, starting_after integer, string Cancel a policy
Section titled “Cancel a policy”api.getphew.com/v1/policies/{id}/cancel policies:cancelCancel when the covered item is returned, the order is cancelled, or the customer withdraws. Phew calculates the refund: the full premium within the cooling-off period, otherwise pro rata.
Request body
reason enum requireditem_returned, order_cancelled, withdrawal (the customer used their right of withdrawal) or merchant_request.
{ "id": "pol_01JD7QB2N4R6T8V0X2Z4B6D8F0", "object": "policy", "status": "cancelled", "cancelled_at": "2026-10-30T09:12:44Z", "cancellation_reason": "item_returned", "refund": { "amount": 29900, "currency": "NOK" }}Cancelling a policy with an open claim returns 409 invalid_state.