GET https://api.bookthatapp.com/v1/reservations
Gets a list of reservations.
Query Parameters
Parameter | Default | Description |
---|---|---|
page | 1 | Page of results |
per | 250 | Page size |
cart_token | Filter by cart token | |
active | Filter by currently active status reservations | |
product_id | Filter by ID (BTA) of the product | |
external_product_id | Filter by ID of the product based on the ecommerce platform | |
variant_id | Filter by ID (BTA) of the variant | |
external_variant_id | Filter by ID of the variant based on the ecommerce platform |
Example
curl "https://api.bookthatapp.com/v1/reservations" -H "Authorization: Bearer auth_token" -H 'Content-Type: application/json'
Response
[
{
"id": 1,
"cart_token": "321",
"created_at": "2017-12-14T07:59:21.000Z",
"expires_at": "2018-03-09T06:20:25.000Z",
"tz": "Australia/Melbourne",
"items": [
{
"start": "2018-05-18T02:05:00.000Z",
"finish": "2018-05-18T03:05:00.000Z",
"status": "ok",
"status_code": 1,
"variant_id": 50,
"external_id": 28912354753,
"quantity": 1,
"quantity_available": 1,
"variant_title": "COBALT INK / XL",
"product_title": "Alex Sports Bra",
"all_day": 0
}
]
}
]
GET https://api.bookthatapp.com/v1/reservations/{id}
Get a specific reservation.
Query Parameters
Parameter | Description |
---|---|
id | The ID of the reservation to retrieve |