Bookings
Bookings object
This operation updates a booking.
Note: This operation needs Authentication.
Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>
Universally unique ID UUID4.
83f93e1c-b6e1-4040-90cf-3274b6f3c82dThe booking was successfully updated.
Bad request.
Unauthorized.
Not found.
Too many requests.
Internal Server Error.
Service is unavailable.
PATCH /pos/v1/bookings/{id} HTTP/1.1
Host: api.mews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 352
{
"data": {
"type": "bookings",
"id": "83f93e1c-b6e1-4040-90cf-3274b6f3c82d",
"attributes": {
"status": "confirmed",
"partySize": 6,
"bookingDatetime": "2024-10-24T08:44:45.409Z"
},
"relationships": {
"customer": {
"data": {
"type": "customers",
"id": "5efa8b3c-b930-4b31-918d-95ab0e212e65"
}
},
"tables": {
"data": [
{
"type": "tables",
"id": "5efa8b3c-b930-4b31-918d-95ab0e212e78"
}
]
}
}
}
}{
"data": {
"id": "83f93e1c-b6e1-4040-90cf-3274b6f3c82d",
"type": "bookings",
"attributes": {
"status": "confirmed",
"bookingDatetime": "2024-10-24T08:44:45.409Z",
"duration": 90,
"partySize": 6,
"notes": "Vegetarian",
"promotions": "Dinner - 4 courses INC",
"roomNumber": "11",
"bookingReference": "R43RdhQ",
"isWalkIn": false,
"createdAt": "2024-10-24T08:44:45.409Z",
"updatedAt": "2024-10-24T08:44:45.409Z"
},
"relationships": {
"orders": {
"data": [
{
"id": "5efa8b3c-b930-4b31-918d-95ab0e212e65",
"type": "orders"
}
]
},
"customer": {
"data": {
"id": "5efa8b3c-b930-4b31-918d-95ab0e212e65",
"type": "customers"
}
},
"tables": {
"data": [
{
"id": "5efa8b3c-b930-4b31-918d-95ab0e212e78",
"type": "tables"
}
]
}
}
}
}This operation returns a list of bookings.
Note: This operation needs Authentication and supports the following JSON:API features:
Relationships -
customer,orders,tablesusingincludequery parameter.Filters -
createdAtGt,createdAtGteq,createdAtLt,createdAtLteq,updatedAtGt,updatedAtGteq,updatedAtLt,updatedAtLteq,bookingDatetimeGt,bookingDatetimeGteq,bookingDatetimeLt,bookingDatetimeLteqSparse fieldsets - supports all fields of
bookingquery parameter.
Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>
The number of resources to return in a single response.
Unique identifier.
^[a-zA-Z0-9-]+$Unique identifier.
^[a-zA-Z0-9-]+$Filters the objects that were created after a specified datetime.
Timestamp in RFC 3339 format.
2023-10-16T14:30:00ZDate in RFC 3339 format.
2023-10-16Filters the objects that were created after or on a specified datetime.
Timestamp in RFC 3339 format.
2023-10-16T14:30:00ZDate in RFC 3339 format.
2023-10-16Filters the objects that were created before a specified datetime.
Timestamp in RFC 3339 format.
2023-10-17T14:30:00ZDate in RFC 3339 format.
2023-10-17Filters the objects that were created before or on a specified datetime.
Timestamp in RFC 3339 format.
2023-10-17T14:30:00ZDate in RFC 3339 format.
2023-10-17Filters the objects that were updated after a specified datetime.
Timestamp in RFC 3339 format.
2023-10-16T14:30:00ZDate in RFC 3339 format.
2023-10-16Filters the objects that were updated after or on a specified datetime.
Timestamp in RFC 3339 format.
2023-10-16T14:30:00ZDate in RFC 3339 format.
2023-10-16Filters the objects that were updated before a specified datetime.
Timestamp in RFC 3339 format.
2023-10-17T14:30:00ZDate in RFC 3339 format.
2023-10-17Filters the objects that were updated before or on a specified datetime.
Timestamp in RFC 3339 format.
2023-10-17T14:30:00ZDate in RFC 3339 format.
2023-10-17Filters the bookings that were booked after a specified datetime.
Timestamp in RFC 3339 format.
2023-10-17T14:30:00ZDate in RFC 3339 format.
2023-10-17Filters the bookings that were booked after or on a specified datetime.
Timestamp in RFC 3339 format.
2023-10-17T14:30:00ZDate in RFC 3339 format.
2023-10-17Filters the bookings that were updated before a specified datetime.
Timestamp in RFC 3339 format.
2023-10-17T14:30:00ZDate in RFC 3339 format.
2023-10-17Filters the bookings that were updated before or on a specified datetime.
Timestamp in RFC 3339 format.
2023-10-17T14:30:00ZDate in RFC 3339 format.
2023-10-17Successful response with bookings data in JSON:API format.
Bad request.
Unauthorized.
Too many requests.
Internal Server Error.
Service is unavailable.
GET /pos/v1/bookings HTTP/1.1
Host: api.mews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": "31b14937-2524-491f-b0a0-dc0a7393ff33",
"type": "bookings",
"attributes": {
"status": "confirmed",
"bookingDatetime": "2024-10-24T08:44:45.409Z",
"duration": 60,
"partySize": 2,
"notes": "Vegetarian",
"promotions": "Dinner - 4 courses INC",
"roomNumber": "11",
"bookingReference": "R43RdhQ",
"isWalkIn": false,
"createdAt": "2024-10-24T08:44:45.409Z",
"updatedAt": "2024-10-24T08:44:45.409Z"
},
"relationships": {
"orders": {
"data": [
{
"id": "5efa8b3c-b930-4b31-918d-95ab0e212e65",
"type": "orders"
}
]
},
"customer": {
"data": {
"id": "5efa8b3c-b930-4b31-918d-95ab0e212e65",
"type": "customers"
}
},
"tables": {
"data": [
{
"id": "5efa8b3c-b930-4b31-918d-95ab0e212e78",
"type": "tables"
}
]
}
}
}
],
"links": {
"prev": "https://api.mews-demo.com/pos/v1/bookings?page%5Bbefore%5D=NA&page%5Bsize%5D=1",
"next": "https://api.mews-demo.com/pos/v1/bookings?page%5Bafter%5D=NA&page%5Bsize%5D=1"
}
}A booking represents a reservation made by a booking for goods or services, such as a table at a restaurant.
Note: This operation needs Authentication.
Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>
The booking was successfully created.
Bad request.
Unauthorized.
Unprocessable entity.
Too many requests.
Internal Server Error.
Service is unavailable.
POST /pos/v1/bookings HTTP/1.1
Host: api.mews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 308
{
"data": {
"type": "bookings",
"attributes": {
"status": "confirmed",
"partySize": 5,
"bookingDatetime": "2024-10-24T08:44:45.409Z"
},
"relationships": {
"customer": {
"data": {
"type": "customers",
"id": "5efa8b3c-b930-4b31-918d-95ab0e212e65"
}
},
"tables": {
"data": [
{
"type": "tables",
"id": "5efa8b3c-b930-4b31-918d-95ab0e212e78"
}
]
}
}
}
}{
"data": {
"id": "83f93e1c-b6e1-4040-90cf-3274b6f3c82d",
"type": "bookings",
"attributes": {
"status": "confirmed",
"bookingDatetime": "2024-10-24T08:44:45.409Z",
"duration": 60,
"partySize": 2,
"notes": "Vegetarian",
"promotions": "Dinner - 4 courses INC",
"roomNumber": "11",
"bookingReference": "R43RdhQ",
"isWalkIn": false,
"createdAt": "2024-10-24T08:44:45.409Z",
"updatedAt": "2024-10-24T08:44:45.409Z"
},
"relationships": {
"customer": {
"data": {
"id": "5efa8b3c-b930-4b31-918d-95ab0e212e65",
"type": "customers"
}
},
"tables": {
"data": [
{
"id": "5efa8b3c-b930-4b31-918d-95ab0e212e78",
"type": "tables"
}
]
}
}
}
}Last updated
Was this helpful?