Megatix
Modify booking
PATCH
/api/partners/{partner_id}/bookings/{booking_id}
The Modify Booking API endpoint allows partners to update a confirmed booking. Partners can provide the updated values and insured parties for the booking attributes for booking modification. This endpoint requires a valid access token obtained from the Authentication.
Depending on the policies, booking modification may result in additional costs.
Path parameters
Parameter | Type | Description |
---|---|---|
partner_id | string | The partner identifier provided during onboarding |
booking_id | string | Unique identifier of the booking returned in the create booking endpoint |
Headers
Name | Value |
---|---|
Accept |
|
Content-Type |
|
Authorization |
|
Body
Name | Type | Description |
---|---|---|
| array | |
| string | Unique identifier of the booking policy |
| object | All booking attributes that need to be updated should be specified in this object |
| string/datetime | Updated event date time |
| string/datetime | Updated policy start date |
| string/datetime | Updated policy end date |
| integer | Updated number of tickets covered in this policy |
| array | An array of tickets to be covered in this policy |
| decimal | The price of the ticket |
| string | Ticket type |
| string/datetime | The date time when the ticket was scanned. |
| 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