Megatix
Last updated
Last updated
POST
/api/partners/{partner_id}/quotes/{quote_id}/bookings
The Create Booking API endpoint allows partners to convert a quote into a booking. Partners can provide necessary details about the policyholder and insured parties to finalise the booking process. This endpoint requires a valid access token obtained from the Authentication.
Path parameters
Parameter | Type | Description |
---|---|---|
Headers
Name | Value |
---|---|
Body
Name | Type | Description |
---|---|---|
Response
partner_id
string
The partner identifier provided during onboarding
quote_id
string
Unique identifier of the quote returned in the widget
Accept
application/json
Content-Type
application/json
Authorization
Bearer <token>
policy_holder.first_name
string
First name
policy_holder.last_name
string
Last name
policy_holder.country
string
Two letters country code
policy_holder.email
string
Email address
policy_holder.phone
string
Phone number
policy_holder.address1
string
Address line 1
policy_holder.address2
string
Address line 2
policy_holder.city
string
City of residence
policy_holder.region
string
Region
policy_holder.postcode
string
Postcode
quotes
array
quotes[].id
string
Unique identifier of the quote policy
quotes[].brightwrite_details.bw_experiment_id
string
ID of the BrightWrite experiment
quotes[].brightwrite_details.bw_variant_id
string
ID of the experiment variant generated for the customer
quotes[].brightwrite_details.bw_device_id
string
ID of the customer device
quotes[].insured
array
A list of insured
quotes[].insured[].first_name
string
First name
quotes[].insured[].last_name
string
Last name
quotes[].insured[].email
string
Email address
quotes[].insured[].country
string
Two letters country code
quotes[].insured[].address1
string
Address line 1
quotes[].insured[].address2
string
Address line 2
quotes[].insured[].city
string
City of residence
quotes[].insured[].region
string
Region
quotes[].insured[].postcode
string
Postcode
quotes[].insured[].phone
string
Phone number
quotes[].insured[].birth_date
string
Date of birth
quotes[].insured[].company
string
Company name