This endpoint is for fetching the details of a booking.
The booking response
When you don't have the right permissions to create a booking for the provided location.
When the provided bookingId
does not match a booking stored in the system.
curl -i -X GET \ 'https://api.tyro.com/connect/bookings/{bookingId}' \ -H 'Accept: application/vnd.tyro.connect+json;version=1.0' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "id": "2688fcf2-44dd-4c72-88ac-79d0910f2983",
- "locationId": "merchant:abc123",
- "bookingStatus": "CREATED",
- "origin": {
- "bookingReference": "some-booking-reference"
}, - "asset": {
- "type": "TABLE",
- "tables": [
- {
- "number": "1"
}
]
}, - "numberOfPeople": 2,
- "startTime": "2020-03-01T18:00:00Z"
}