This endpoint is used to create a booking within Tyro Connect. This call will create a booking in the POS system.
The id that is returned as a part of the response should be used to identify the booking for subsequent events or retrieving the details via the GET
endpoint.
locationId required | string The id of the location as specified by the Tyro Connect system. |
object Information relevant to the booking partner that this booking was created with | |
bookingStatus | string (bookingStatus) The current status of the booking |
numberOfPeople required | number (numberOfPeople) >= 1 The number of expected guests |
Array of objects (payments) A list of payments applied to the booking. | |
startTime required | string <date-time> The date and time the booking starts at the venue. The format of the date time is the notation as defined by RFC 3339, section 5.6 |
endTime | string <date-time> The date and time the booking ends at the venue. The format of the date time is the notation as defined by RFC 3339, section 5.6 |
object (customer) The customer making the booking | |
notes | string [ 1 .. 500 ] characters Notes specific to the booking. Example: 'Window seat please' |
required | roomAsset (object) or tableAsset (object) Contains asset information of the booking |
Created
When the provided payload is not valid.
When you don't have the right permissions to seat a booking for the provided location.
{- "locationId": "merchant:abc123",
- "origin": {
- "bookingReference": "some-booking-reference"
}, - "asset": {
- "type": "TABLE",
- "tables": [
- {
- "number": "1"
}
]
}, - "numberOfPeople": 2,
- "startTime": "2020-03-01T18:00:00Z",
- "bookingStatus": "CREATED"
}
{- "id": "2688fcf2-44dd-4c72-88ac-79d0910f2983",
- "locationId": "merchant:abc123",
- "bookingStatus": "CREATED",
- "origin": {
- "bookingReference": "some-booking-reference"
}, - "asset": {
- "type": "TABLE",
- "tables": [
- {
- "number": "1"
}
]
}, - "numberOfPeople": 2,
- "payments": [
- {
- "amount": 4321,
- "currency": "AUD",
- "description": "Reservation payment"
}
], - "startTime": "2020-03-01T18:00:00Z"
}