Skip to Content
devhelp shopDocs

Admin — Bookings & Enquiries

Manage bookable services, staff, rooms, schedules, reminders, and customer enquiries.

GET
/admin/v1/bookings/entitlements

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Response Body

OK

application/json
  1. response
bookings*boolean
bookingSessions*boolean
bookableStaff*number|null
activeStaff*number
addonAvailable*boolean
addon*boolean
extraStaff*number
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/entitlements'
Example Response
{  "bookings": true,  "bookingSessions": true,  "bookableStaff": 0,  "activeStaff": 0,  "addonAvailable": true,  "addon": true,  "extraStaff": 0}
GET
/admin/v1/bookings/settings

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Response Body

OK

application/json
  1. response
enabled*boolean
slotStepMin*unknown|unknown
leadTimeMin*number
windowDays*number
doorHoldMinutes*number
cancelWindowHours*number
customerCanReschedule*boolean
customerCanCancel*boolean
policyText*string
depositKind*string
Value in"none""fixed""percent""full"
depositValue*number
advanceEnabled*boolean
advanceInstructions*string
advanceDeadlineHours*number|null
womenOnly*boolean
weekendDays*array<number>
reminderOffsetsMin*array<number>
emailsOff*array<>
servicesTaxRateBps*number|null
consentText*string
hours*array<>
overrides*array<>
consentTextReviewed*boolean
version*number
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/settings'
Example Response
{  "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}
PATCH
/admin/v1/bookings/settings

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).

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Request Body

application/json
  1. body
enabled?boolean
slotStepMin?unknown|unknown
leadTimeMin?number
windowDays?number
doorHoldMinutes?number
cancelWindowHours?number
customerCanReschedule?boolean
customerCanCancel?boolean
policyText?string
depositKind?string
Value in"none""fixed""percent""full"
depositValue?number
advanceEnabled?boolean
advanceInstructions?string
advanceDeadlineHours?number|null
womenOnly?boolean
weekendDays?array<number>
reminderOffsetsMin?array<number>
emailsOff?array<>
servicesTaxRateBps?number|null
consentText?string
hours?array<>
overrides?array<>
version*number

Response Body

OK

application/json
  1. response
enabled*boolean
slotStepMin*unknown|unknown
leadTimeMin*number
windowDays*number
doorHoldMinutes*number
cancelWindowHours*number
customerCanReschedule*boolean
customerCanCancel*boolean
policyText*string
depositKind*string
Value in"none""fixed""percent""full"
depositValue*number
advanceEnabled*boolean
advanceInstructions*string
advanceDeadlineHours*number|null
womenOnly*boolean
weekendDays*array<number>
reminderOffsetsMin*array<number>
emailsOff*array<>
servicesTaxRateBps*number|null
consentText*string
hours*array<>
overrides*array<>
consentTextReviewed*boolean
version*number
Example Request
curl -X PATCH 'https://api.devhelp.pk/admin/v1/bookings/settings' \  -H 'Content-Type: application/json' \  -d '{  "version": 0}'
Example Response
{  "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}

List bookable staff

GET
/admin/v1/bookings/staff

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Response Body

OK

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/staff'
Example Response
{  "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"    }  ]}

Add a staff profile

POST
/admin/v1/bookings/staff

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Request Body

application/json
  1. body
displayName*string
title?|
Defaultnull
gender?string
Default"unspecified"
Value in"female""male""unspecified"
mediaId?|
Defaultnull
showPhoto?boolean
Defaultfalse
bookableOnline?boolean
Defaulttrue
colourIndex?number
Default0
status?string
Default"active"
Value in"active""inactive"
productIds?array<string>
Default[]
hours?array<>
Default[]
dates?array<>
Default[]
timeOff?array<>
Default[]

Response Body

OK

application/json
  1. response
id*string
displayName*string
title*string|null
gender*string
Value in"female""male""unspecified"
mediaId*string|null
showPhoto*boolean
bookableOnline*boolean
colourIndex*number
status*string
Value in"active""inactive"
productIds*array<string>
hours*array<>
dates*array<>
timeOff*array<>
position*number
offeredOnline*boolean
version*number
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/bookings/staff' \  -H 'Content-Type: application/json' \  -d '{  "displayName": "string"}'
Example Response
{  "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"}

Get a staff profile

GET
/admin/v1/bookings/staff/{id}

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Response Body

OK

application/json
  1. response
id*string
displayName*string
title*string|null
gender*string
Value in"female""male""unspecified"
mediaId*string|null
showPhoto*boolean
bookableOnline*boolean
colourIndex*number
status*string
Value in"active""inactive"
productIds*array<string>
hours*array<>
dates*array<>
timeOff*array<>
position*number
offeredOnline*boolean
version*number
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/staff/string'
Example Response
{  "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"}

Update a staff profile

PATCH
/admin/v1/bookings/staff/{id}

Omitted keys keep their value; lists that are sent replace the stored ones.

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Request Body

application/json
  1. body
displayName?string
title?string|null
gender?string
Value in"female""male""unspecified"
mediaId?string|null
showPhoto?boolean
bookableOnline?boolean
colourIndex?number
status?string
Value in"active""inactive"
productIds?array<string>
hours?array<>
dates?array<>
timeOff?array<>
version*number

Response Body

OK

application/json
  1. response
id*string
displayName*string
title*string|null
gender*string
Value in"female""male""unspecified"
mediaId*string|null
showPhoto*boolean
bookableOnline*boolean
colourIndex*number
status*string
Value in"active""inactive"
productIds*array<string>
hours*array<>
dates*array<>
timeOff*array<>
position*number
offeredOnline*boolean
version*number
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.devhelp.pk/admin/v1/bookings/staff/string' \  -H 'Content-Type: application/json' \  -d '{  "version": 0}'
Example Response
{  "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"}

Remove a staff profile

DELETE
/admin/v1/bookings/staff/{id}

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Response Body

OK

application/json
  1. response
id*string
Example Request
curl -X DELETE 'https://api.devhelp.pk/admin/v1/bookings/staff/string'
Example Response
{  "id": "string"}

Set the order of staff

POST
/admin/v1/bookings/staff/reorder

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Request Body

application/json
  1. body
ids*array<string>

Response Body

OK

application/json
  1. response
items*array<>
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/bookings/staff/reorder' \  -H 'Content-Type: application/json' \  -d '{  "ids": [    "string"  ]}'
Example Response
{  "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"    }  ]}

List rooms and chairs

GET
/admin/v1/bookings/resource-groups

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Response Body

OK

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/resource-groups'
Example Response
{  "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"    }  ]}
POST
/admin/v1/bookings/resource-groups

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Request Body

application/json
  1. body
name*string
kind*string
Value in"room""chair""station""area"
resources*array<>

Response Body

OK

application/json
  1. response
id*string
name*string
kind*string
Value in"room""chair""station""area"
resources*array<>
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/bookings/resource-groups' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "kind": "room",  "resources": [    {      "name": "string"    }  ]}'
Example Response
{  "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"}
DELETE
/admin/v1/bookings/resource-groups/{id}

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Response Body

OK

application/json
  1. response
id*string
Example Request
curl -X DELETE 'https://api.devhelp.pk/admin/v1/bookings/resource-groups/string'
Example Response
{  "id": "string"}
PUT
/admin/v1/bookings/resource-groups/{id}

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Request Body

application/json
  1. body
name*string
kind*string
Value in"room""chair""station""area"
resources*array<>

Response Body

OK

application/json
  1. response
id*string
name*string
kind*string
Value in"room""chair""station""area"
resources*array<>
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -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"    }  ]}'
Example Response
{  "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"}
GET
/admin/v1/bookings/products/{productId}/profile

A service product that never saved its booking settings gets the defaults.

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

productId*string

Response Body

OK

application/json
  1. response
productId*string
kind*string
Value in"appointment""session""package"
bufferBeforeMin*number
bufferAfterMin*number
depositKind*string
Value in"inherit""none""fixed""percent""full"
depositValue*number
staffChoice*string
Value in"choose""any_only""hidden"
capacity*number|null
minQuantity*number
maxQuantity*number|null
payAtDoorMax*number|null
asksParticipants*boolean
includedGuests*number|null
playsInProductId*string|null
onlineBookable*boolean
staffIds*array<string>
resourceGroupIds*array<string>
variants*array<>
version*number
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/products/string/profile'
Example Response
{  "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}
PUT
/admin/v1/bookings/products/{productId}/profile

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

productId*string

Request Body

application/json
  1. body
version*number
profile*

Response Body

OK

application/json
  1. response
productId*string
kind*string
Value in"appointment""session""package"
bufferBeforeMin*number
bufferAfterMin*number
depositKind*string
Value in"inherit""none""fixed""percent""full"
depositValue*number
staffChoice*string
Value in"choose""any_only""hidden"
capacity*number|null
minQuantity*number
maxQuantity*number|null
payAtDoorMax*number|null
asksParticipants*boolean
includedGuests*number|null
playsInProductId*string|null
onlineBookable*boolean
staffIds*array<string>
resourceGroupIds*array<string>
variants*array<>
version*number
Example Request
curl -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      }    ]  }}'
Example Response
{  "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}
GET
/admin/v1/bookings/products/{productId}/sessions

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

productId*string

Response Body

OK

application/json
  1. response
schedules*array<>
exceptions*array<>
productId*string
upcoming*number
needsAttention*array<>
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/products/string/sessions'
Example Response
{  "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    }  ]}
PUT
/admin/v1/bookings/products/{productId}/sessions

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).

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

productId*string

Request Body

application/json
  1. body
plan*

Response Body

OK

application/json
  1. response
schedules*array<>
exceptions*array<>
productId*string
upcoming*number
needsAttention*array<>
Example Request
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      }    ]  }}'
Example Response
{  "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    }  ]}
GET
/admin/v1/bookings/availability

Everyone active is offered, not only people offered online.

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Query Parameters

variantIds*array<string>
staffIds?array<string|unknown>
from*string
to*string
excludeLineBookingId?string

Response Body

OK

application/json
  1. response
timezone*string
days*array<>
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/availability?variantIds=string&from=string&to=string'
Example Response
{  "timezone": "string",  "days": [    {      "date": "string",      "starts": [        {          "startsAt": "2019-08-24T14:15:22Z",          "staff": [            [              {                "id": "string",                "name": "string"              }            ]          ]        }      ]    }  ]}

The calendar for one day

GET
/admin/v1/bookings/day

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Query Parameters

date*string

Response Body

OK

application/json
  1. response
date*string
timezone*string
hours*array<>
columns*array<>
blocks*array<>
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/day?date=string'
Example Response
{  "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    }  ]}
POST
/admin/v1/bookings/lines/{id}/status

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Request Body

application/json
  1. body
version*number
to*string
Value in"booked""arrived""completed""no_show""cancelled"
reason?string

Response Body

OK

application/json
  1. response
id*string
orderId*string
lineId*string
kind*string
Value in"appointment""session""package"
startsAt*string
Formatdate-time
endsAt*string
Formatdate-time
staffId*string|null
staffName*string|null
staffRequested*boolean
resourceIds*array<string>
status*string
Value in"held""booked""arrived""completed""no_show""cancelled"
quantity*number
arrivedQuantity*number
overbooked*boolean
checkCode*string
version*number
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/bookings/lines/string/status' \  -H 'Content-Type: application/json' \  -d '{  "version": 0,  "to": "booked"}'
Example Response
{  "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}
POST
/admin/v1/bookings/lines/{id}/reschedule

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Request Body

application/json
  1. body
version*number
startsAt*string
Formatdate-time
staffId?|
Default"any"
overbook?boolean
Defaultfalse

Response Body

OK

application/json
  1. response
id*string
orderId*string
lineId*string
kind*string
Value in"appointment""session""package"
startsAt*string
Formatdate-time
endsAt*string
Formatdate-time
staffId*string|null
staffName*string|null
staffRequested*boolean
resourceIds*array<string>
status*string
Value in"held""booked""arrived""completed""no_show""cancelled"
quantity*number
arrivedQuantity*number
overbooked*boolean
checkCode*string
version*number
Example Request
curl -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"}'
Example Response
{  "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}
GET
/admin/v1/bookings/week

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Query Parameters

staffId?string
from*string

Response Body

OK

application/json
  1. response
staffId*string|null
days*array<>
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/week?from=string'
Example Response
{  "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        }      ]    }  ]}

A customer's bookings

GET
/admin/v1/bookings/customers/{customerId}

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

customerId*string

Response Body

OK

application/json
  1. response
upcoming*array<>
past*array<>
noShows*number
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/customers/string'
Example Response
{  "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}
POST
/admin/v1/bookings/orders/{id}/payments

Cash, card machine, wallet or bank transfer, recorded by staff. Capped at what is still due.

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Request Body

application/json
  1. body
amountPaisa*number
method*string
Value in"cash""card_machine""wallet""bank_transfer"
reference?|
Defaultnull
note?|
Defaultnull
advance?boolean
Defaultfalse

Response Body

OK

application/json
  1. response
collectedPaisa*number
totalPaisa*number
paymentStatus*string
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/bookings/orders/string/payments' \  -H 'Content-Type: application/json' \  -d '{  "amountPaisa": 0,  "method": "cash"}'
Example Response
{  "collectedPaisa": 0,  "totalPaisa": 0,  "paymentStatus": "string"}
GET
/admin/v1/bookings/refunds-due

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.

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Response Body

OK

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/refunds-due'
Example Response
{  "items": [    {      "orderId": "string",      "orderNumber": 0,      "customerName": "string",      "phone": "string",      "reason": "cancelled",      "amountPaisa": 0,      "paidOnline": true,      "at": "2019-08-24T14:15:22Z"    }  ]}
GET
/admin/v1/bookings/reminders

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.

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Response Body

OK

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/reminders'
Example Response
{  "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"      }    }  ]}
POST
/admin/v1/bookings/reminders/{id}/sent

Takes it off the list. Marking one already sent changes nothing.

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Response Body

OK

application/json
  1. response
id*string
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/bookings/reminders/string/sent'
Example Response
{  "id": "string"}
GET
/admin/v1/bookings/reports

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.

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Query Parameters

from*string
to*string

Response Body

OK

application/json
  1. response
from*string
to*string
totals*
byStaff*array<>
byService*array<>
sessions*array<>
days*array<>
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/reports?from=string&to=string'
Example Response
{  "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    }  ]}
POST
/admin/v1/bookings/lines/{id}/check-in

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Request Body

application/json
  1. body
quantity*number

Response Body

OK

application/json
  1. response
id*string
orderId*string
lineId*string
kind*string
Value in"appointment""session""package"
startsAt*string
Formatdate-time
endsAt*string
Formatdate-time
staffId*string|null
staffName*string|null
staffRequested*boolean
resourceIds*array<string>
status*string
Value in"held""booked""arrived""completed""no_show""cancelled"
quantity*number
arrivedQuantity*number
overbooked*boolean
checkCode*string
version*number
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/bookings/lines/string/check-in' \  -H 'Content-Type: application/json' \  -d '{  "quantity": 0}'
Example Response
{  "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}
GET
/admin/v1/bookings/front-desk

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Query Parameters

date*string

Response Body

OK

application/json
  1. response
date*string
timezone*string
weekend*boolean
totals*
products*array<>
parties*array<>
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/front-desk?date=string'
Example Response
{  "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    }  ]}
GET
/admin/v1/bookings/door

Finds orders with tickets by booking number, the code under the QR, name or phone.

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Query Parameters

date*string
sessionId?string
q?string

Response Body

OK

application/json
  1. response
entries*array<>
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/bookings/door?date=string'
Example Response
{  "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"    }  ]}
POST
/admin/v1/bookings/check-in

All or nothing: never more than each line bought (over_quantity).

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Request Body

application/json
  1. body
items*array<>

Response Body

OK

application/json
  1. response
items*array<>
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/bookings/check-in' \  -H 'Content-Type: application/json' \  -d '{  "items": [    {      "id": "string",      "quantity": 0    }  ]}'
Example Response
{  "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    }  ]}

List enquiries

GET
/admin/v1/enquiries

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Query Parameters

status?string
Value in"new""contacted""booked""closed"
limit?number
Default100

Response Body

OK

application/json
  1. response
items*array<>
counts*
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/enquiries'
Example Response
{  "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  }}

Set an enquiry's status

PATCH
/admin/v1/enquiries/{id}

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Request Body

application/json
  1. body
status*string
Value in"new""contacted""booked""closed"

Response Body

OK

application/json
  1. response
id*string
name*string
phone*string
serviceText*string
preferredText*string|null
note*string|null
status*string
Value in"new""contacted""booked""closed"
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.devhelp.pk/admin/v1/enquiries/string' \  -H 'Content-Type: application/json' \  -d '{  "status": "new"}'
Example Response
{  "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"}

Remove an enquiry

DELETE
/admin/v1/enquiries/{id}

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Response Body

OK

application/json
  1. response
id*string
Example Request
curl -X DELETE 'https://api.devhelp.pk/admin/v1/enquiries/string'
Example Response
{  "id": "string"}

On this page