Admin — Bookings & Enquiries
Manage bookable services, staff, rooms, schedules, reminders, and customer enquiries.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
bookings*booleanbookingSessions*booleanbookableStaff*number|nullactiveStaff*numberaddonAvailable*booleanaddon*booleanextraStaff*numbercurl -X GET 'https://api.devhelp.pk/admin/v1/bookings/entitlements'{ "bookings": true, "bookingSessions": true, "bookableStaff": 0, "activeStaff": 0, "addonAvailable": true, "addon": true, "extraStaff": 0}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
enabled*booleanslotStepMin*unknown|unknownleadTimeMin*numberwindowDays*numberdoorHoldMinutes*numbercancelWindowHours*numbercustomerCanReschedule*booleancustomerCanCancel*booleanpolicyText*stringdepositKind*string"none""fixed""percent""full"depositValue*numberadvanceEnabled*booleanadvanceInstructions*stringadvanceDeadlineHours*number|nullwomenOnly*booleanweekendDays*array<number>reminderOffsetsMin*array<number>emailsOff*array<>servicesTaxRateBps*number|nullconsentText*stringhours*array<>overrides*array<>consentTextReviewed*booleanversion*numbercurl -X GET 'https://api.devhelp.pk/admin/v1/bookings/settings'{ "enabled": true, "slotStepMin": 15, "leadTimeMin": 0, "windowDays": 0, "doorHoldMinutes": 0, "cancelWindowHours": 0, "customerCanReschedule": true, "customerCanCancel": true, "policyText": "string", "depositKind": "none", "depositValue": 0, "advanceEnabled": true, "advanceInstructions": "string", "advanceDeadlineHours": 0, "womenOnly": true, "weekendDays": [ 0 ], "reminderOffsetsMin": [ 0 ], "emailsOff": [ "booking_confirmed" ], "servicesTaxRateBps": 0, "consentText": "string", "hours": [ { "weekday": 0, "opens": "string", "closes": "string" } ], "overrides": [ { "startsOn": "string", "endsOn": "string", "closed": true, "opens": "string", "closes": "string", "label": "string" } ], "consentTextReviewed": true, "version": 0}Omitted keys keep their value; hours and special dates, when sent, replace the stored ones. version must match the stored version (409 stale_version otherwise).
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
enabled?booleanslotStepMin?unknown|unknownleadTimeMin?numberwindowDays?numberdoorHoldMinutes?numbercancelWindowHours?numbercustomerCanReschedule?booleancustomerCanCancel?booleanpolicyText?stringdepositKind?string"none""fixed""percent""full"depositValue?numberadvanceEnabled?booleanadvanceInstructions?stringadvanceDeadlineHours?number|nullwomenOnly?booleanweekendDays?array<number>reminderOffsetsMin?array<number>emailsOff?array<>servicesTaxRateBps?number|nullconsentText?stringhours?array<>overrides?array<>version*numberOK
application/json- response
enabled*booleanslotStepMin*unknown|unknownleadTimeMin*numberwindowDays*numberdoorHoldMinutes*numbercancelWindowHours*numbercustomerCanReschedule*booleancustomerCanCancel*booleanpolicyText*stringdepositKind*string"none""fixed""percent""full"depositValue*numberadvanceEnabled*booleanadvanceInstructions*stringadvanceDeadlineHours*number|nullwomenOnly*booleanweekendDays*array<number>reminderOffsetsMin*array<number>emailsOff*array<>servicesTaxRateBps*number|nullconsentText*stringhours*array<>overrides*array<>consentTextReviewed*booleanversion*numbercurl -X PATCH 'https://api.devhelp.pk/admin/v1/bookings/settings' \ -H 'Content-Type: application/json' \ -d '{ "version": 0}'{ "enabled": true, "slotStepMin": 15, "leadTimeMin": 0, "windowDays": 0, "doorHoldMinutes": 0, "cancelWindowHours": 0, "customerCanReschedule": true, "customerCanCancel": true, "policyText": "string", "depositKind": "none", "depositValue": 0, "advanceEnabled": true, "advanceInstructions": "string", "advanceDeadlineHours": 0, "womenOnly": true, "weekendDays": [ 0 ], "reminderOffsetsMin": [ 0 ], "emailsOff": [ "booking_confirmed" ], "servicesTaxRateBps": 0, "consentText": "string", "hours": [ { "weekday": 0, "opens": "string", "closes": "string" } ], "overrides": [ { "startsOn": "string", "endsOn": "string", "closed": true, "opens": "string", "closes": "string", "label": "string" } ], "consentTextReviewed": true, "version": 0}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
items*array<>curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/staff'{ "items": [ { "id": "string", "displayName": "string", "title": "string", "gender": "female", "mediaId": "string", "showPhoto": true, "bookableOnline": true, "colourIndex": 0, "status": "active", "productIds": [ "string" ], "hours": [ { "weekday": 0, "starts": "string", "ends": "string", "kind": "work" } ], "dates": [ { "onDate": "string", "kind": "work", "starts": "string", "ends": "string", "note": "string" } ], "timeOff": [ { "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "reason": "string" } ], "position": 0, "offeredOnline": true, "version": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ]}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
displayName*stringtitle?|nullgender?string"unspecified""female""male""unspecified"mediaId?|nullshowPhoto?booleanfalsebookableOnline?booleantruecolourIndex?number0status?string"active""active""inactive"productIds?array<string>[]hours?array<>[]dates?array<>[]timeOff?array<>[]OK
application/json- response
id*stringdisplayName*stringtitle*string|nullgender*string"female""male""unspecified"mediaId*string|nullshowPhoto*booleanbookableOnline*booleancolourIndex*numberstatus*string"active""inactive"productIds*array<string>hours*array<>dates*array<>timeOff*array<>position*numberofferedOnline*booleanversion*numbercreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X POST 'https://api.devhelp.pk/admin/v1/bookings/staff' \ -H 'Content-Type: application/json' \ -d '{ "displayName": "string"}'{ "id": "string", "displayName": "string", "title": "string", "gender": "female", "mediaId": "string", "showPhoto": true, "bookableOnline": true, "colourIndex": 0, "status": "active", "productIds": [ "string" ], "hours": [ { "weekday": 0, "starts": "string", "ends": "string", "kind": "work" } ], "dates": [ { "onDate": "string", "kind": "work", "starts": "string", "ends": "string", "note": "string" } ], "timeOff": [ { "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "reason": "string" } ], "position": 0, "offeredOnline": true, "version": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringdisplayName*stringtitle*string|nullgender*string"female""male""unspecified"mediaId*string|nullshowPhoto*booleanbookableOnline*booleancolourIndex*numberstatus*string"active""inactive"productIds*array<string>hours*array<>dates*array<>timeOff*array<>position*numberofferedOnline*booleanversion*numbercreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X GET 'https://api.devhelp.pk/admin/v1/bookings/staff/string'{ "id": "string", "displayName": "string", "title": "string", "gender": "female", "mediaId": "string", "showPhoto": true, "bookableOnline": true, "colourIndex": 0, "status": "active", "productIds": [ "string" ], "hours": [ { "weekday": 0, "starts": "string", "ends": "string", "kind": "work" } ], "dates": [ { "onDate": "string", "kind": "work", "starts": "string", "ends": "string", "note": "string" } ], "timeOff": [ { "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "reason": "string" } ], "position": 0, "offeredOnline": true, "version": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Omitted keys keep their value; lists that are sent replace the stored ones.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
displayName?stringtitle?string|nullgender?string"female""male""unspecified"mediaId?string|nullshowPhoto?booleanbookableOnline?booleancolourIndex?numberstatus?string"active""inactive"productIds?array<string>hours?array<>dates?array<>timeOff?array<>version*numberOK
application/json- response
id*stringdisplayName*stringtitle*string|nullgender*string"female""male""unspecified"mediaId*string|nullshowPhoto*booleanbookableOnline*booleancolourIndex*numberstatus*string"active""inactive"productIds*array<string>hours*array<>dates*array<>timeOff*array<>position*numberofferedOnline*booleanversion*numbercreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X PATCH 'https://api.devhelp.pk/admin/v1/bookings/staff/string' \ -H 'Content-Type: application/json' \ -d '{ "version": 0}'{ "id": "string", "displayName": "string", "title": "string", "gender": "female", "mediaId": "string", "showPhoto": true, "bookableOnline": true, "colourIndex": 0, "status": "active", "productIds": [ "string" ], "hours": [ { "weekday": 0, "starts": "string", "ends": "string", "kind": "work" } ], "dates": [ { "onDate": "string", "kind": "work", "starts": "string", "ends": "string", "note": "string" } ], "timeOff": [ { "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "reason": "string" } ], "position": 0, "offeredOnline": true, "version": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringcurl -X DELETE 'https://api.devhelp.pk/admin/v1/bookings/staff/string'{ "id": "string"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
ids*array<string>OK
application/json- response
items*array<>curl -X POST 'https://api.devhelp.pk/admin/v1/bookings/staff/reorder' \ -H 'Content-Type: application/json' \ -d '{ "ids": [ "string" ]}'{ "items": [ { "id": "string", "displayName": "string", "title": "string", "gender": "female", "mediaId": "string", "showPhoto": true, "bookableOnline": true, "colourIndex": 0, "status": "active", "productIds": [ "string" ], "hours": [ { "weekday": 0, "starts": "string", "ends": "string", "kind": "work" } ], "dates": [ { "onDate": "string", "kind": "work", "starts": "string", "ends": "string", "note": "string" } ], "timeOff": [ { "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "reason": "string" } ], "position": 0, "offeredOnline": true, "version": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ]}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
items*array<>curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/resource-groups'{ "items": [ { "id": "string", "name": "string", "kind": "room", "resources": [ { "id": "string", "name": "string", "position": 0 } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ]}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
name*stringkind*string"room""chair""station""area"resources*array<>OK
application/json- response
id*stringname*stringkind*string"room""chair""station""area"resources*array<>createdAt*stringdate-timeupdatedAt*stringdate-timecurl -X POST 'https://api.devhelp.pk/admin/v1/bookings/resource-groups' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "kind": "room", "resources": [ { "name": "string" } ]}'{ "id": "string", "name": "string", "kind": "room", "resources": [ { "id": "string", "name": "string", "position": 0 } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringcurl -X DELETE 'https://api.devhelp.pk/admin/v1/bookings/resource-groups/string'{ "id": "string"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
name*stringkind*string"room""chair""station""area"resources*array<>OK
application/json- response
id*stringname*stringkind*string"room""chair""station""area"resources*array<>createdAt*stringdate-timeupdatedAt*stringdate-timecurl -X PUT 'https://api.devhelp.pk/admin/v1/bookings/resource-groups/string' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "kind": "room", "resources": [ { "name": "string" } ]}'{ "id": "string", "name": "string", "kind": "room", "resources": [ { "id": "string", "name": "string", "position": 0 } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}A service product that never saved its booking settings gets the defaults.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
productId*stringOK
application/json- response
productId*stringkind*string"appointment""session""package"bufferBeforeMin*numberbufferAfterMin*numberdepositKind*string"inherit""none""fixed""percent""full"depositValue*numberstaffChoice*string"choose""any_only""hidden"capacity*number|nullminQuantity*numbermaxQuantity*number|nullpayAtDoorMax*number|nullasksParticipants*booleanincludedGuests*number|nullplaysInProductId*string|nullonlineBookable*booleanstaffIds*array<string>resourceGroupIds*array<string>variants*array<>version*numbercurl -X GET 'https://api.devhelp.pk/admin/v1/bookings/products/string/profile'{ "productId": "string", "kind": "appointment", "bufferBeforeMin": 0, "bufferAfterMin": 0, "depositKind": "inherit", "depositValue": 0, "staffChoice": "choose", "capacity": 0, "minQuantity": 0, "maxQuantity": 0, "payAtDoorMax": 0, "asksParticipants": true, "includedGuests": 0, "playsInProductId": "string", "onlineBookable": true, "staffIds": [ "string" ], "resourceGroupIds": [ "string" ], "variants": [ { "variantId": "string", "durationMin": 0, "takesPlace": true, "weekendPricePaisa": 0, "minAge": 0, "maxAge": 0 } ], "version": 0}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
productId*stringapplication/json- body
version*numberprofile*OK
application/json- response
productId*stringkind*string"appointment""session""package"bufferBeforeMin*numberbufferAfterMin*numberdepositKind*string"inherit""none""fixed""percent""full"depositValue*numberstaffChoice*string"choose""any_only""hidden"capacity*number|nullminQuantity*numbermaxQuantity*number|nullpayAtDoorMax*number|nullasksParticipants*booleanincludedGuests*number|nullplaysInProductId*string|nullonlineBookable*booleanstaffIds*array<string>resourceGroupIds*array<string>variants*array<>version*numbercurl -X PUT 'https://api.devhelp.pk/admin/v1/bookings/products/string/profile' \ -H 'Content-Type: application/json' \ -d '{ "version": 0, "profile": { "bufferBeforeMin": 0, "bufferAfterMin": 0, "depositKind": "inherit", "depositValue": 0, "staffChoice": "choose", "capacity": 0, "minQuantity": 0, "maxQuantity": 0, "payAtDoorMax": 0, "asksParticipants": true, "includedGuests": 0, "playsInProductId": "string", "onlineBookable": true, "staffIds": [ "string" ], "resourceGroupIds": [ "string" ], "variants": [ { "variantId": "string", "durationMin": 0, "takesPlace": true, "weekendPricePaisa": 0, "minAge": 0, "maxAge": 0 } ] }}'{ "productId": "string", "kind": "appointment", "bufferBeforeMin": 0, "bufferAfterMin": 0, "depositKind": "inherit", "depositValue": 0, "staffChoice": "choose", "capacity": 0, "minQuantity": 0, "maxQuantity": 0, "payAtDoorMax": 0, "asksParticipants": true, "includedGuests": 0, "playsInProductId": "string", "onlineBookable": true, "staffIds": [ "string" ], "resourceGroupIds": [ "string" ], "variants": [ { "variantId": "string", "durationMin": 0, "takesPlace": true, "weekendPricePaisa": 0, "minAge": 0, "maxAge": 0 } ], "version": 0}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
productId*stringOK
application/json- response
schedules*array<>exceptions*array<>productId*stringupcoming*numberneedsAttention*array<>curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/products/string/sessions'{ "schedules": [ { "weekdays": [ 0 ], "startTimes": [ "string" ], "durationMin": 0, "validFrom": "string", "validTo": "string", "capacity": 0, "hostStaffId": "string" } ], "exceptions": [ { "onDate": "string", "kind": "closed", "startTime": "string", "capacity": 0, "durationMin": 0 } ], "productId": "string", "upcoming": 0, "needsAttention": [ { "id": "string", "startsAt": "2019-08-24T14:15:22Z", "booked": 0 } ]}Sessions are created for the booking window from the schedule. A session the new schedule no longer has is removed when nobody has booked it; one with bookings is closed to new sales and listed in needsAttention. Needs the Scale plan (feature_unavailable).
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
productId*stringapplication/json- body
plan*OK
application/json- response
schedules*array<>exceptions*array<>productId*stringupcoming*numberneedsAttention*array<>curl -X PUT 'https://api.devhelp.pk/admin/v1/bookings/products/string/sessions' \ -H 'Content-Type: application/json' \ -d '{ "plan": { "schedules": [ { "weekdays": [ 0 ], "startTimes": [ "string" ], "durationMin": 0, "validFrom": "string", "validTo": "string", "capacity": 0, "hostStaffId": "string" } ], "exceptions": [ { "onDate": "string", "kind": "closed", "startTime": "string", "capacity": 0, "durationMin": 0 } ] }}'{ "schedules": [ { "weekdays": [ 0 ], "startTimes": [ "string" ], "durationMin": 0, "validFrom": "string", "validTo": "string", "capacity": 0, "hostStaffId": "string" } ], "exceptions": [ { "onDate": "string", "kind": "closed", "startTime": "string", "capacity": 0, "durationMin": 0 } ], "productId": "string", "upcoming": 0, "needsAttention": [ { "id": "string", "startsAt": "2019-08-24T14:15:22Z", "booked": 0 } ]}Everyone active is offered, not only people offered online.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. 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/admin/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" } ] ] } ] } ]}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
date*stringOK
application/json- response
date*stringtimezone*stringhours*array<>columns*array<>blocks*array<>curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/day?date=string'{ "date": "string", "timezone": "string", "hours": [ { "opens": "2019-08-24T14:15:22Z", "closes": "2019-08-24T14:15:22Z" } ], "columns": [ { "id": "string", "name": "string", "title": "string", "colourIndex": 0, "working": [ { "start": "2019-08-24T14:15:22Z", "end": "2019-08-24T14:15:22Z" } ] } ], "blocks": [ { "id": "string", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0, "orderNumber": 0, "customerId": "string", "customerName": "string", "phone": "string", "service": "string", "option": "string", "paymentStatus": "string", "totalPaisa": 0, "collectedPaisa": 0, "advanceDuePaisa": 0, "noShows": 0 } ]}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
version*numberto*string"booked""arrived""completed""no_show""cancelled"reason?stringOK
application/json- response
id*stringorderId*stringlineId*stringkind*string"appointment""session""package"startsAt*stringdate-timeendsAt*stringdate-timestaffId*string|nullstaffName*string|nullstaffRequested*booleanresourceIds*array<string>status*string"held""booked""arrived""completed""no_show""cancelled"quantity*numberarrivedQuantity*numberoverbooked*booleancheckCode*stringversion*numbercurl -X POST 'https://api.devhelp.pk/admin/v1/bookings/lines/string/status' \ -H 'Content-Type: application/json' \ -d '{ "version": 0, "to": "booked"}'{ "id": "string", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
version*numberstartsAt*stringdate-timestaffId?|"any"overbook?booleanfalseOK
application/json- response
id*stringorderId*stringlineId*stringkind*string"appointment""session""package"startsAt*stringdate-timeendsAt*stringdate-timestaffId*string|nullstaffName*string|nullstaffRequested*booleanresourceIds*array<string>status*string"held""booked""arrived""completed""no_show""cancelled"quantity*numberarrivedQuantity*numberoverbooked*booleancheckCode*stringversion*numbercurl -X POST 'https://api.devhelp.pk/admin/v1/bookings/lines/string/reschedule' \ -H 'Content-Type: application/json' \ -d '{ "version": 0, "startsAt": "2019-08-24T14:15:22Z"}'{ "id": "string", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
staffId?stringfrom*stringOK
application/json- response
staffId*string|nulldays*array<>curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/week?from=string'{ "staffId": "string", "days": [ { "date": "string", "timezone": "string", "hours": [ { "opens": "2019-08-24T14:15:22Z", "closes": "2019-08-24T14:15:22Z" } ], "columns": [ { "id": "string", "name": "string", "title": "string", "colourIndex": 0, "working": [ { "start": "2019-08-24T14:15:22Z", "end": "2019-08-24T14:15:22Z" } ] } ], "blocks": [ { "id": "string", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0, "orderNumber": 0, "customerId": "string", "customerName": "string", "phone": "string", "service": "string", "option": "string", "paymentStatus": "string", "totalPaisa": 0, "collectedPaisa": 0, "advanceDuePaisa": 0, "noShows": 0 } ] } ]}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
customerId*stringOK
application/json- response
upcoming*array<>past*array<>noShows*numbercurl -X GET 'https://api.devhelp.pk/admin/v1/bookings/customers/string'{ "upcoming": [ { "id": "string", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0, "orderNumber": 0, "customerId": "string", "customerName": "string", "phone": "string", "service": "string", "option": "string", "paymentStatus": "string", "totalPaisa": 0, "collectedPaisa": 0, "advanceDuePaisa": 0, "noShows": 0 } ], "past": [ { "id": "string", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0, "orderNumber": 0, "customerId": "string", "customerName": "string", "phone": "string", "service": "string", "option": "string", "paymentStatus": "string", "totalPaisa": 0, "collectedPaisa": 0, "advanceDuePaisa": 0, "noShows": 0 } ], "noShows": 0}Cash, card machine, wallet or bank transfer, recorded by staff. Capped at what is still due.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
amountPaisa*numbermethod*string"cash""card_machine""wallet""bank_transfer"reference?|nullnote?|nulladvance?booleanfalseOK
application/json- response
collectedPaisa*numbertotalPaisa*numberpaymentStatus*stringcurl -X POST 'https://api.devhelp.pk/admin/v1/bookings/orders/string/payments' \ -H 'Content-Type: application/json' \ -d '{ "amountPaisa": 0, "method": "cash"}'{ "collectedPaisa": 0, "totalPaisa": 0, "paymentStatus": "string"}Cancelled bookings with money still held, and payments made after a booking was cancelled. devhelp never refunds on its own: staff refund through the order.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
items*array<>curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/refunds-due'{ "items": [ { "orderId": "string", "orderNumber": 0, "customerName": "string", "phone": "string", "reason": "cancelled", "amountPaisa": 0, "paidOnline": true, "at": "2019-08-24T14:15:22Z" } ]}Today's and tomorrow's reminders that could not go by email, for staff to send from WhatsApp. Each carries wa.me links with the message in English and Roman Urdu.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
items*array<>curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/reminders'{ "items": [ { "id": "string", "orderId": "string", "orderNumber": 0, "customerName": "string", "phone": "string", "startsAt": "2019-08-24T14:15:22Z", "services": [ "string" ], "staffName": "string", "offsetMin": 0, "whatsapp": { "english": "string", "romanUrdu": "string" } } ]}Takes it off the list. Marking one already sent changes nothing.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringcurl -X POST 'https://api.devhelp.pk/admin/v1/bookings/reminders/string/sent'{ "id": "string"}Counts by person, service and day, value of the bookings kept, money staff recorded, and places sold per session. Test orders are left out. At most 92 days.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
from*stringto*stringOK
application/json- response
from*stringto*stringtotals*byStaff*array<>byService*array<>sessions*array<>days*array<>curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/reports?from=string&to=string'{ "from": "string", "to": "string", "totals": { "bookings": 0, "completed": 0, "noShows": 0, "cancelled": 0, "valuePaisa": 0, "recordedAtVisitPaisa": 0, "advancesRecordedPaisa": 0 }, "byStaff": [ { "bookings": 0, "completed": 0, "noShows": 0, "cancelled": 0, "valuePaisa": 0, "staffId": "string", "name": "string" } ], "byService": [ { "bookings": 0, "completed": 0, "noShows": 0, "cancelled": 0, "valuePaisa": 0, "productId": "string", "title": "string", "kind": "appointment" } ], "sessions": [ { "sessionId": "string", "productId": "string", "title": "string", "startsAt": "2019-08-24T14:15:22Z", "capacity": 0, "sold": 0, "arrived": 0 } ], "days": [ { "bookings": 0, "completed": 0, "noShows": 0, "cancelled": 0, "valuePaisa": 0, "date": "string", "ticketsSold": 0, "ticketsArrived": 0, "capacity": 0 } ]}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
quantity*numberOK
application/json- response
id*stringorderId*stringlineId*stringkind*string"appointment""session""package"startsAt*stringdate-timeendsAt*stringdate-timestaffId*string|nullstaffName*string|nullstaffRequested*booleanresourceIds*array<string>status*string"held""booked""arrived""completed""no_show""cancelled"quantity*numberarrivedQuantity*numberoverbooked*booleancheckCode*stringversion*numbercurl -X POST 'https://api.devhelp.pk/admin/v1/bookings/lines/string/check-in' \ -H 'Content-Type: application/json' \ -d '{ "quantity": 0}'{ "id": "string", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
date*stringOK
application/json- response
date*stringtimezone*stringweekend*booleantotals*products*array<>parties*array<>curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/front-desk?date=string'{ "date": "string", "timezone": "string", "weekend": true, "totals": { "tickets": 0, "arrived": 0, "collectedPaisa": 0 }, "products": [ { "productId": "string", "title": "string", "tickets": [ { "variantId": "string", "title": "string", "pricePaisa": 0, "takesPlace": true } ], "sessions": [ { "id": "string", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "capacity": 0, "booked": 0, "arrived": 0, "status": "open" } ] } ], "parties": [ { "lineBookingId": "string", "orderId": "string", "orderNumber": 0, "customerName": "string", "phone": "string", "title": "string", "room": "string", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "guests": 0, "status": "string", "duePaisa": 0 } ]}Finds orders with tickets by booking number, the code under the QR, name or phone.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
date*stringsessionId?stringq?stringOK
application/json- response
entries*array<>curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/door?date=string'{ "entries": [ { "orderId": "string", "orderNumber": 0, "sessionId": "string", "startsAt": "2019-08-24T14:15:22Z", "customerName": "string", "phone": "string", "totalPaisa": 0, "collectedPaisa": 0, "duePaisa": 0, "paidOnline": true, "awaitingPayment": true, "tickets": [ { "lineBookingId": "string", "title": "string", "quantity": 0, "arrivedQuantity": 0, "status": "string", "checkCode": "string" } ], "extras": [ { "title": "string", "quantity": 0 } ], "participants": [ { "name": "string", "age": 0 } ], "consentAt": "2019-08-24T14:15:22Z" } ]}All or nothing: never more than each line bought (over_quantity).
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
items*array<>OK
application/json- response
items*array<>curl -X POST 'https://api.devhelp.pk/admin/v1/bookings/check-in' \ -H 'Content-Type: application/json' \ -d '{ "items": [ { "id": "string", "quantity": 0 } ]}'{ "items": [ { "id": "string", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0 } ]}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
status?string"new""contacted""booked""closed"limit?number100OK
application/json- response
items*array<>counts*curl -X GET 'https://api.devhelp.pk/admin/v1/enquiries'{ "items": [ { "id": "string", "name": "string", "phone": "string", "serviceText": "string", "preferredText": "string", "note": "string", "status": "new", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "counts": { "property1": 0, "property2": 0 }}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
status*string"new""contacted""booked""closed"OK
application/json- response
id*stringname*stringphone*stringserviceText*stringpreferredText*string|nullnote*string|nullstatus*string"new""contacted""booked""closed"createdAt*stringdate-timeupdatedAt*stringdate-timecurl -X PATCH 'https://api.devhelp.pk/admin/v1/enquiries/string' \ -H 'Content-Type: application/json' \ -d '{ "status": "new"}'{ "id": "string", "name": "string", "phone": "string", "serviceText": "string", "preferredText": "string", "note": "string", "status": "new", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringcurl -X DELETE 'https://api.devhelp.pk/admin/v1/enquiries/string'{ "id": "string"}