Storefront — Bookings & Enquiries
Check bookable service availability and submit enquiries.
Stores the enquiry for the merchant to answer. Refused (403) while the store is not live.
publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
application/json- body
name*stringphone*stringserviceText*stringpreferredText?|nullnote?|nullOK
application/json- response
received*unknowncurl -X POST 'https://api.devhelp.pk/storefront/v1/enquiries' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "phone": "string", "serviceText": "string"}'{ "received": true}Only people offered online. Never cached: the answer changes with every booking.
publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
variantIds*array<string>staffIds?array<string|unknown>from*stringto*stringexcludeLineBookingId?stringOK
application/json- response
timezone*stringdays*array<>curl -X GET 'https://api.devhelp.pk/storefront/v1/bookings/availability?variantIds=string&from=string&to=string'{ "timezone": "string", "days": [ { "date": "string", "starts": [ { "startsAt": "2019-08-24T14:15:22Z", "staff": [ [ { "id": "string", "name": "string" } ] ] } ] } ]}Hours, special dates, the people and services offered online. Setup only: cacheable.
publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
OK
application/json- response
available*booleantimezone*stringwindowDays*numbercancelWindowHours*numbercustomerCanReschedule*booleancustomerCanCancel*booleanpolicyText*stringhours*array<>specialDates*array<>staff*array<>services*array<>weekendDays*array<number>sessions*array<>packages*array<>consentText*stringcurl -X GET 'https://api.devhelp.pk/storefront/v1/bookings/setup'{ "available": true, "timezone": "string", "windowDays": 0, "cancelWindowHours": 0, "customerCanReschedule": true, "customerCanCancel": true, "policyText": "string", "hours": [ { "weekday": 0, "opens": "string", "closes": "string" } ], "specialDates": [ { "startsOn": "string", "endsOn": "string", "closed": true, "opens": "string", "closes": "string", "label": "string" } ], "staff": [ { "id": "string", "name": "string", "title": "string", "colourIndex": 0, "photoUrl": "string", "productIds": [ "string" ] } ], "services": [ { "productId": "string", "staffChoice": "choose", "variants": [ { "variantId": "string", "durationMin": 0 } ] } ], "weekendDays": [ 0 ], "sessions": [ { "productId": "string", "minQuantity": 0, "maxQuantity": 0, "asksParticipants": true, "tickets": [ { "variantId": "string", "takesPlace": true, "weekendPricePaisa": 0, "minAge": 0, "maxAge": 0 } ], "schedule": [ { "weekdays": [ 0 ], "startTimes": [ "string" ], "durationMin": 0 } ] } ], "packages": [ { "productId": "string", "includedGuests": 0, "variants": [ { "variantId": "string", "durationMin": 0 } ] } ], "consentText": "string"}At most a month of dates. Never cached: places change with every ticket sold.
publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
productId*stringfrom*stringto*stringOK
application/json- response
timezone*stringdays*array<>curl -X GET 'https://api.devhelp.pk/storefront/v1/bookings/sessions?productId=string&from=string&to=string'{ "timezone": "string", "days": [ { "date": "string", "weekend": true, "sessions": [ { "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "left": 0, "state": "open" } ] } ]}