Skip to main content
POST
Issue a policy

Authorizations

Authorization
string
header
required

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

Body

application/json
quote_request_id
string<uuid>
required

The id of an approved quote request or open-cover application.

redirect_url
string<uri>

Where to send the customer after they pay. policyID anywhere in it is replaced with the policy's id.

shipment
object

The shipment details that may be added or corrected when the policy is issued. None of them changes the price.

Response

The policy, waiting to be paid for

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

0 until the policy is paid for and issued, 1 once it is.

Available options:
0,
1
coverage_confirmed
boolean

true once the policy is paid for and the insurance company has issued it. Treat the cargo as covered only then.

The page to pay the policy on. Valid for 24 hours and renewed when you read the policy; null once the policy is issued.

price
number

What is paid, VAT included, in SAR.

start_date
string<date>
provider_policy_id
string | null

The insurance company's policy number. null until the policy is issued.

policy_url
string | null

The policy certificate (PDF). null until the policy is issued.

invoice_url
string | null

The tax invoice (PDF). null until the policy is issued.

purchased_at
string<date-time> | null
redirect_url
string | null
meta_data
object
declarations
object

On an open_cover policy: the shipments covered under it so far, with their total insured amount and premium in SAR.

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