List bookables
List the Localoy tickets, activity items and dining reservations your catalogue items can link to.
GET
{BASE_URL}/bookablesA bookable is something customers can book on Localoy: a ticket option on one of your events, one
of your activity items, or a table reservation at one of your restaurants. Use the type and id from
this list as an item's localoyRef. Requires the
INVENTORY scope.
The list is not paginated. It contains tickets first, then activity items, then dining.
Response
data.itemsobject[]required- Your bookables.
data.items[].typestringrequiredevent_ticket,activity_itemordining.data.items[].idstringrequired- The ID to use in
localoyRef.id. data.items[].namestringrequired- The ticket option's name, the activity item's name, or
Table reservation. data.items[].experienceIdstringrequired- The Localoy listing it belongs to.
data.items[].experienceNamestringrequired- For
event_ticket, the event's title. Foractivity_item, the activity item's own name. Fordining, your business name.
type | One entry per |
|---|---|
event_ticket | Ticket option on each of your events. |
activity_item | Activity item. |
dining | Dining listing that takes reservations. |
cURL
curl "$LOCALOY_BASE_URL/bookables" \
-H "Authorization: Bearer $LOCALOY_API_KEY"Response · 200
{
"success": true,
"data": {
"items": [
{
"type": "event_ticket",
"id": "cm4t1ck3t0pt10n00000001",
"name": "VIP",
"experienceId": "cm4ev3nt000000000000001",
"experienceName": "Jazz Night"
},
{
"type": "activity_item",
"id": "cm4act1v1ty1t3m00000001",
"name": "Kayak (1 hour)",
"experienceId": "cm4act1v1ty000000000001",
"experienceName": "Kayak (1 hour)"
},
{
"type": "dining",
"id": "cm4d1n1ng00000000000001",
"name": "Table reservation",
"experienceId": "cm4d1n1ng00000000000001",
"experienceName": "Sultan's Dine"
}
]
}
}