Skip to main content
POST
Quote a shipment

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
customer_id
integer
required

A customer you registered.

shipment
object
required

One shipment to quote. The goods, route, value and cover set the price and are fixed once quoted; the departure date, carrier, references and beneficiary can be sent now or when the policy is issued.

Response

The quote request, with its decision

id
string<uuid>

The request's id.

type
enum<string>
Available options:
single_shipment,
open_cover
status
enum<string>

approved: quote holds the price and a policy can be issued. referred: an underwriter is reviewing it; read the request again until the status changes. rejected: it cannot be insured.

Available options:
approved,
referred,
rejected
customer_id
integer
shipment
object

One shipment to quote. The goods, route, value and cover set the price and are fixed once quoted; the departure date, carrier, references and beneficiary can be sent now or when the policy is issued.

quote
object | null

The price of the shipment. null unless the request is approved.

missing_to_issue
string[]

The shipment details still needed before a policy can be issued, as paths into shipment. Send them with Issue a policy.

Example:
reasons
string[]

Why the request was referred or rejected, in plain sentences. Stays on a referral after it is approved.

policy_id
integer | null

The policy issued from this request, once there is one.

decided_at
string<date-time> | null

When the request was approved or rejected. null while it is referred.

created_at
string<date-time>
updated_at
string<date-time>