Megatix
Create booking
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 |
---|---|---|
partner_id | string | The partner identifier provided during onboarding |
quote_id | string | Unique identifier of the quote returned in the widget |
Headers
Name | Value |
---|---|
Accept |
|
Content-Type |
|
Authorization |
|
Body
Name | Type | Description |
---|---|---|
| string | First name |
| string | Last name |
| string | Two letters country code |
| string | Email address |
| string | Phone number |
| string | Address line 1 |
| string | Address line 2 |
| string | City of residence |
| string | Region |
| string | Postcode |
| array | |
| string | Unique identifier of the quote policy |
| string | ID of the BrightWrite experiment |
| string | ID of the experiment variant generated for the customer |
| string | ID of the customer device |
| array | A list of insured |
| string | First name |
| string | Last name |
| string | Email address |
| string | Two letters country code |
| string | Address line 1 |
| string | Address line 2 |
| string | City of residence |
| string | Region |
| string | Postcode |
| string | Phone number |
| string | Date of birth |
| string | Company name |
Response
Last updated