Skip to main content
Every error is a JSON body with the same shape, whatever Accept header you send. The HTTP status tells you the kind of problem, the code tells you the exact case, and the message is written to be shown to the customer.

The error response

A 2xx response never carries a code, and 204 responses have no body at all.

Common Yasmina errors

Any endpoint can answer with these.

Policy cancellation

POST /clients/policies/cancellation and every product’s POST …/policies/{id}/cancellation share these.

Motor insurance (price comparison)

A failed or abandoned payment is never an API error: the customer pays on the insurer’s hosted page, and the policy stays unissued until a payment succeeds. Read it back with GET /car-comp/policies/{id} or subscribe to the webhooks.

SME medical insurance (price comparison)

Payment has no errors of its own: read the policy, and pending_declarations names who still has to declare while payment_link appears once nobody does. A failed or abandoned payment leaves the policy unissued (status 0, provider_policy_id null) until a payment succeeds; the webhooks tell you when it is issued.

Property insurance

Travel insurance