Skip to Content
devhelp shopDocs

Admin — Store & Settings

Store profile, domains, checkout and order settings, tax classes, and dashboard overview.

GET
/admin/v1/dashboard

Calendar days in the store timezone, including today. Compared with the preceding equal number of calendar days. Excludes cancelled and test orders. Sales are order totals less refunds; cash to collect is unpaid COD on orders placed in the period. Today's values are partial. Recent orders are the eight newest, whatever the period. Attention is the delivery work open now: parcels by what they wait for, courier cash overdue, open claims, and why order emails are going unsent when no email app can send them. Setup lists the tasks the merchant's start answers asked for (payments, counter, appointments, delivery, domain) until the store is live.

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

period?string
Default"30d"
Value in"today""7d""30d"

Response Body

OK

application/json
  1. response
period*string
Value in"today""7d""30d"
timezone*string
current*
previous*
dailySales*array<>
recentOrders*array<>
attention*
setup*|null
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/dashboard'
Example Response
{  "period": "today",  "timezone": "string",  "current": {    "sales": {      "amount": 0,      "currency": "PKR"    },    "orders": 0,    "averageOrder": {      "amount": 0,      "currency": "PKR"    },    "cashToCollect": {      "amount": 0,      "currency": "PKR"    }  },  "previous": {    "sales": {      "amount": 0,      "currency": "PKR"    },    "orders": 0,    "averageOrder": {      "amount": 0,      "currency": "PKR"    },    "cashToCollect": {      "amount": 0,      "currency": "PKR"    }  },  "dailySales": [    {      "date": "string",      "sales": {        "amount": 0,        "currency": "PKR"      }    }  ],  "recentOrders": [    {      "id": "string",      "orderNumber": 0,      "invoiceNumber": 0,      "status": "pending",      "paymentMethod": "cod",      "paymentStatus": "pending",      "fulfillmentStatus": "unfulfilled",      "source": "storefront",      "fulfilmentMethod": "ship",      "email": "string",      "phone": "string",      "shippingAddress": {        "line1": "string",        "line2": "string",        "city": "string",        "province": "string",        "postalCode": "string",        "landmark": "string",        "country": "AD",        "recipientName": "string",        "recipientPhone": "string"      },      "billingAddress": {        "name": "string",        "line1": "string",        "line2": "string",        "city": "string",        "province": "string",        "postalCode": "string",        "country": "AD"      },      "shippingRateName": "string",      "shippingMinDays": 0,      "shippingMaxDays": 0,      "lines": [        {          "id": "string",          "variantId": "string",          "productHandle": "string",          "thumbnail": {            "url": "string",            "alt": "string"          },          "productTitle": "string",          "variantTitle": "string",          "sku": "string",          "unitPricePaisa": 0,          "quantity": 0,          "linePaisa": 0,          "discountPaisa": 0,          "sale": {            "discountId": "string",            "title": "string",            "originalUnitPricePaisa": 0          },          "booking": {            "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,            "changeUntil": "2019-08-24T14:15:22Z",            "requestedStaffId": "string"          },          "tax": {            "rateBps": 0,            "taxPaisa": 0          }        }      ],      "discounts": [        {          "discountId": "string",          "code": "string",          "title": "string",          "type": "product",          "valueType": "percentage",          "value": 0,          "amountPaisa": 0        }      ],      "sales": [        {          "discountId": "string",          "title": "string",          "amountPaisa": 0        }      ],      "totals": {        "currency": "PKR",        "subtotalPaisa": 0,        "shippingPaisa": 0,        "discountPaisa": 0,        "saleSavingsPaisa": 0,        "shippingDiscountPaisa": 0,        "codFeePaisa": 0,        "taxPaisa": 0,        "totalPaisa": 0,        "taxRateBps": 0,        "pricesIncludeTax": true      },      "note": "string",      "confirmedAt": "2019-08-24T14:15:22Z",      "cancelledAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "payment": {        "method": "cod",        "state": "not_required",        "testMode": true,        "dueAt": "2019-08-24T14:15:22Z",        "canRetry": true,        "canSwitchToCod": true,        "codTotalPaisa": 0,        "depositPaisa": 0,        "advance": {          "dueAt": "2019-08-24T14:15:22Z",          "received": true        }      },      "bookingPolicy": {        "text": "string",        "cancelWindowHours": 0,        "canCancel": true,        "canReschedule": true,        "advanceInstructions": "string"      },      "customerId": "string",      "risk": {        "orderCount": 0,        "deliveredCount": 0,        "rtoCount": 0,        "cancelledCount": 0,        "returnedCount": 0,        "rtoRate": 0      },      "collectedPaisa": 0,      "refundedPaisa": 0,      "fulfillments": [        {          "id": "string",          "deliveryServiceId": "string",          "trackingUrl": "string",          "status": "packed",          "courierName": "string",          "trackingNumber": "string",          "handoverId": "string",          "codAmountPaisa": 0,          "collectedPaisa": 0,          "note": "string",          "lines": [            {              "id": "string",              "orderLineItemId": "string",              "quantity": 0,              "restockedQuantity": 0,              "damagedQuantity": 0            }          ],          "packedAt": "2019-08-24T14:15:22Z",          "dispatchedAt": "2019-08-24T14:15:22Z",          "deliveredAt": "2019-08-24T14:15:22Z",          "rtoAt": "2019-08-24T14:15:22Z",          "receivedAt": "2019-08-24T14:15:22Z",          "cancelledAt": "2019-08-24T14:15:22Z",          "lostAt": "2019-08-24T14:15:22Z",          "replaced": true,          "attempts": [            {              "id": "string",              "number": 0,              "reason": "buyer_unavailable",              "note": "string",              "respondBy": "2019-08-24T14:15:22Z",              "instruction": "retry",              "instructedAt": "2019-08-24T14:15:22Z",              "retryPhone": "string",              "retryAddressLine": "string",              "retryLandmark": "string",              "disputed": true,              "disputeNote": "string",              "actorType": "customer",              "createdAt": "2019-08-24T14:15:22Z"            }          ],          "claims": [            {              "id": "string",              "kind": "lost",              "claimedPaisa": 0,              "claimBy": "2019-08-24T14:15:22Z",              "status": "open",              "paidPaisa": 0,              "note": "string",              "resolvedAt": "2019-08-24T14:15:22Z",              "createdAt": "2019-08-24T14:15:22Z"            }          ]        }      ],      "returns": [        {          "exchangeOrderId": "string",          "id": "string",          "reason": "string",          "refundPaisa": 0,          "note": "string",          "lines": [            {              "id": "string",              "orderLineItemId": "string",              "quantity": 0,              "restock": true            }          ],          "atRegister": {            "locationId": "string",            "registerId": "string",            "receiptNumber": "string",            "refunds": [              {                "kind": "cash",                "name": "string",                "amountPaisa": 0,                "reference": "string"              }            ],            "fiscal": {              "status": "pending",              "usin": "string",              "posId": "string",              "environment": "sandbox",              "fbrInvoiceNumber": "string"            }          },          "createdAt": "2019-08-24T14:15:22Z"        }      ],      "cashRefunds": [        {          "id": "string",          "amountPaisa": 0,          "reason": "string",          "note": "string",          "createdAt": "2019-08-24T14:15:22Z"        }      ],      "events": [        {          "id": "string",          "type": "placed",          "fromStatus": "pending",          "toStatus": "pending",          "actorType": "customer",          "actorId": "string",          "note": "string",          "createdAt": "2019-08-24T14:15:22Z"        }      ],      "payments": [        {          "id": "string",          "provider": "cod",          "providerLabel": "string",          "mode": "test",          "providerRef": "string",          "status": "created",          "amountPaisa": 0,          "capturedPaisa": 0,          "refundedPaisa": 0,          "currency": "string",          "expiresAt": "2019-08-24T14:15:22Z",          "failureMessage": "string",          "cardBrand": "string",          "cardLast4": "string",          "refundRequired": true,          "refunds": [            {              "id": "string",              "amountPaisa": 0,              "reason": "string",              "status": "pending",              "failureMessage": "string",              "createdAt": "2019-08-24T14:15:22Z"            }          ],          "createdAt": "2019-08-24T14:15:22Z",          "updatedAt": "2019-08-24T14:15:22Z"        }      ],      "cancelReasonCode": "buyer_cancelled",      "exchangeOfOrderId": "string",      "confirmation": {        "hold": {          "reason": "advance_payment",          "note": "string",          "heldAt": "2019-08-24T14:15:22Z"        },        "contacts": [          {            "id": "string",            "channel": "call",            "outcome": "confirmed",            "note": "string",            "followUpAt": "2019-08-24T14:15:22Z",            "actorType": "customer",            "createdAt": "2019-08-24T14:15:22Z"          }        ],        "attempts": 0,        "unanswered": 0,        "lastOutcome": "confirmed",        "lastContactAt": "2019-08-24T14:15:22Z",        "followUpAt": "2019-08-24T14:15:22Z",        "risk": {          "tier": "low",          "reasons": [            {              "code": "past_rto",              "count": 0,              "rate": 0            }          ],          "network": {            "level": "caution",            "reason": "flagged_by_devhelp"          },          "deliveredHere": true,          "suggestedAdvancePaisa": 0        },        "report": {          "id": "string",          "reason": "fake_order",          "note": "string",          "reportedAt": "2019-08-24T14:15:22Z"        }      },      "inStore": {        "locationId": "string",        "locationName": "string",        "registerId": "string",        "registerName": "string",        "receiptNumber": "string",        "cashRoundingPaisa": 0,        "payments": [          {            "id": "string",            "kind": "cash",            "name": "string",            "amountPaisa": 0,            "tenderedPaisa": 0,            "changePaisa": 0,            "reference": "string",            "createdAt": "2019-08-24T14:15:22Z"          }        ],        "fiscal": {          "status": "pending",          "usin": "string",          "posId": "string",          "environment": "sandbox",          "fbrInvoiceNumber": "string"        }      }    }  ],  "attention": {    "parcels": {      "packed": 0,      "withCourier": 0,      "needsAttention": 0,      "needsAnswer": 0    },    "overdueCash": {      "parcels": 0,      "amount": {        "amount": 0,        "currency": "PKR"      }    },    "openClaims": 0,    "orderEmailsBlocked": "not_configured"  },  "setup": {    "preferences": {      "channels": [        "online"      ],      "payments": [        "cod"      ],      "delivery": [        "own_riders"      ]    },    "items": [      {        "key": "payments",        "done": true,        "href": "string"      }    ]  }}

List

GET
/admin/v1/tax-classes

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/tax-classes'
Example Response
{  "items": [    {      "id": "string",      "name": "string",      "rateBps": 0,      "pctCode": "string",      "productCount": 0,      "createdAt": "2019-08-24T14:15:22Z"    }  ]}

Create

POST
/admin/v1/tax-classes

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
rateBps*number
pctCode?string|null

Response Body

OK

application/json
  1. response
id*string
name*string
rateBps*number
pctCode*string|null
productCount*number
createdAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/tax-classes' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "rateBps": 0}'
Example Response
{  "id": "string",  "name": "string",  "rateBps": 0,  "pctCode": "string",  "productCount": 0,  "createdAt": "2019-08-24T14:15:22Z"}

Update

PATCH
/admin/v1/tax-classes/{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
rateBps?number
pctCode?string|null

Response Body

OK

application/json
  1. response
id*string
name*string
rateBps*number
pctCode*string|null
productCount*number
createdAt*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.devhelp.pk/admin/v1/tax-classes/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "name": "string",  "rateBps": 0,  "pctCode": "string",  "productCount": 0,  "createdAt": "2019-08-24T14:15:22Z"}

Retire

POST
/admin/v1/tax-classes/{id}/retire

Products in the class go back to the store's own rate. Placed orders keep theirs.

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
deleted*unknown
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/tax-classes/string/retire'
Example Response
{  "id": "string",  "deleted": true}
GET
/admin/v1/store/checkout

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
emailMode*string
Value in"off""optional""required"
fields*
orderNotes*boolean
trustMessage*string|null
hiddenPolicies*array<string>
requireTerms*boolean
updatedAt*|null
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/store/checkout'
Example Response
{  "emailMode": "off",  "fields": {    "line2": "hidden",    "landmark": "hidden",    "postalCode": "auto"  },  "orderNotes": true,  "trustMessage": "string",  "hiddenPolicies": [    "string"  ],  "requireTerms": true,  "updatedAt": "2019-08-24T14:15:22Z"}
PATCH
/admin/v1/store/checkout

Omitted keys keep their value. Emits store.updated, which purges the storefront's cached store.

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
emailMode?string
Value in"off""optional""required"
fields?
orderNotes?boolean
trustMessage?string|null
hiddenPolicies?array<string>
requireTerms?boolean

Response Body

OK

application/json
  1. response
emailMode*string
Value in"off""optional""required"
fields*
orderNotes*boolean
trustMessage*string|null
hiddenPolicies*array<string>
requireTerms*boolean
updatedAt*|null
Example Request
curl -X PATCH 'https://api.devhelp.pk/admin/v1/store/checkout' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "emailMode": "off",  "fields": {    "line2": "hidden",    "landmark": "hidden",    "postalCode": "auto"  },  "orderNotes": true,  "trustMessage": "string",  "hiddenPolicies": [    "string"  ],  "requireTerms": true,  "updatedAt": "2019-08-24T14:15:22Z"}
GET
/admin/v1/store/customer-portal

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
showHeaderLink*boolean
loginMethods*
allowAddressBook*boolean
allowMarketingOptIn*boolean
showSmsPreferences*boolean
allowReorder*boolean
allowCodSelfConfirm*boolean
allowDeliveryEdit*boolean
deliveryEditCutoff*string
Value in"before_confirmed""before_packed""before_dispatched"
deliveryEditWindowMinutes*number|null
allowCityProvinceChange*boolean
allowPrepaidDeliveryEdit*boolean
allowOrderNoteEdit*boolean
allowOrderCancellation*boolean
cancellationCutoff*string
Value in"before_confirmed""before_packed""before_dispatched"
cancellationWindowMinutes*number|null
allowPrepaidCancellation*boolean
allowVariantSwap*boolean
variantSwapCutoff*string
Value in"before_confirmed""before_packed""before_dispatched"
allowCodItemEdits*boolean
codItemEditWindowMinutes*number|null
allowReturnRequests*boolean
returnWindowDays*number
updatedAt*|null
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/store/customer-portal'
Example Response
{  "enabled": true,  "showHeaderLink": true,  "loginMethods": {    "emailOtp": true,    "whatsappOtp": true,    "smsOtp": true  },  "allowAddressBook": true,  "allowMarketingOptIn": true,  "showSmsPreferences": true,  "allowReorder": true,  "allowCodSelfConfirm": true,  "allowDeliveryEdit": true,  "deliveryEditCutoff": "before_confirmed",  "deliveryEditWindowMinutes": 0,  "allowCityProvinceChange": true,  "allowPrepaidDeliveryEdit": true,  "allowOrderNoteEdit": true,  "allowOrderCancellation": true,  "cancellationCutoff": "before_confirmed",  "cancellationWindowMinutes": 0,  "allowPrepaidCancellation": true,  "allowVariantSwap": true,  "variantSwapCutoff": "before_confirmed",  "allowCodItemEdits": true,  "codItemEditWindowMinutes": 0,  "allowReturnRequests": true,  "returnWindowDays": 0,  "updatedAt": "2019-08-24T14:15:22Z"}
PUT
/admin/v1/store/customer-portal

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
showHeaderLink?boolean
loginMethods?
allowAddressBook?boolean
allowMarketingOptIn?boolean
showSmsPreferences?boolean
allowReorder?boolean
allowCodSelfConfirm?boolean
allowDeliveryEdit?boolean
deliveryEditCutoff?string
Value in"before_confirmed""before_packed""before_dispatched"
deliveryEditWindowMinutes?number|null
allowCityProvinceChange?boolean
allowPrepaidDeliveryEdit?boolean
allowOrderNoteEdit?boolean
allowOrderCancellation?boolean
cancellationCutoff?string
Value in"before_confirmed""before_packed""before_dispatched"
cancellationWindowMinutes?number|null
allowPrepaidCancellation?boolean
allowVariantSwap?boolean
variantSwapCutoff?string
Value in"before_confirmed""before_packed""before_dispatched"
allowCodItemEdits?boolean
codItemEditWindowMinutes?number|null
allowReturnRequests?boolean
returnWindowDays?number

Response Body

OK

application/json
  1. response
enabled*boolean
showHeaderLink*boolean
loginMethods*
allowAddressBook*boolean
allowMarketingOptIn*boolean
showSmsPreferences*boolean
allowReorder*boolean
allowCodSelfConfirm*boolean
allowDeliveryEdit*boolean
deliveryEditCutoff*string
Value in"before_confirmed""before_packed""before_dispatched"
deliveryEditWindowMinutes*number|null
allowCityProvinceChange*boolean
allowPrepaidDeliveryEdit*boolean
allowOrderNoteEdit*boolean
allowOrderCancellation*boolean
cancellationCutoff*string
Value in"before_confirmed""before_packed""before_dispatched"
cancellationWindowMinutes*number|null
allowPrepaidCancellation*boolean
allowVariantSwap*boolean
variantSwapCutoff*string
Value in"before_confirmed""before_packed""before_dispatched"
allowCodItemEdits*boolean
codItemEditWindowMinutes*number|null
allowReturnRequests*boolean
returnWindowDays*number
updatedAt*|null
Example Request
curl -X PUT 'https://api.devhelp.pk/admin/v1/store/customer-portal' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "enabled": true,  "showHeaderLink": true,  "loginMethods": {    "emailOtp": true,    "whatsappOtp": true,    "smsOtp": true  },  "allowAddressBook": true,  "allowMarketingOptIn": true,  "showSmsPreferences": true,  "allowReorder": true,  "allowCodSelfConfirm": true,  "allowDeliveryEdit": true,  "deliveryEditCutoff": "before_confirmed",  "deliveryEditWindowMinutes": 0,  "allowCityProvinceChange": true,  "allowPrepaidDeliveryEdit": true,  "allowOrderNoteEdit": true,  "allowOrderCancellation": true,  "cancellationCutoff": "before_confirmed",  "cancellationWindowMinutes": 0,  "allowPrepaidCancellation": true,  "allowVariantSwap": true,  "variantSwapCutoff": "before_confirmed",  "allowCodItemEdits": true,  "codItemEditWindowMinutes": 0,  "allowReturnRequests": true,  "returnWindowDays": 0,  "updatedAt": "2019-08-24T14:15:22Z"}
GET
/admin/v1/store/orders

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
unconfirmed*
noNewsAfterDays*number
returningAfterDays*number
unpaidAfterDays*number
checkFirstAbovePaisa*number|null
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/store/orders'
Example Response
{  "unconfirmed": {    "afterAttempts": 0,    "afterHours": 0,    "action": "hold"  },  "noNewsAfterDays": 0,  "returningAfterDays": 0,  "unpaidAfterDays": 0,  "checkFirstAbovePaisa": 0}
PUT
/admin/v1/store/orders

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
unconfirmed*
noNewsAfterDays?number
returningAfterDays?number
unpaidAfterDays?number
checkFirstAbovePaisa*number|null

Response Body

OK

application/json
  1. response
unconfirmed*
noNewsAfterDays*number
returningAfterDays*number
unpaidAfterDays*number
checkFirstAbovePaisa*number|null
Example Request
curl -X PUT 'https://api.devhelp.pk/admin/v1/store/orders' \  -H 'Content-Type: application/json' \  -d '{  "unconfirmed": {    "afterAttempts": 0,    "afterHours": 0,    "action": "hold"  },  "checkFirstAbovePaisa": 0}'
Example Response
{  "unconfirmed": {    "afterAttempts": 0,    "afterHours": 0,    "action": "hold"  },  "noNewsAfterDays": 0,  "returningAfterDays": 0,  "unpaidAfterDays": 0,  "checkFirstAbovePaisa": 0}

Get the current store

GET
/admin/v1/store

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
id*string
slug*string
name*string
currency*"PKR"
Value in"PKR"
country?string
Default"PK"
Value in"AD""AE""AF""AG""AI""AL""AM""AO""AQ""AR""AS""AT""AU""AW""AX""AZ""BA""BB""BD""BE""BF""BG""BH""BI""BJ""BL""BM""BN""BO""BQ""BR""BS""BT""BV""BW""BY""BZ""CA""CC""CD""CF""CG""CH""CI""CK""CL""CM""CN""CO""CR""CU""CV""CW""CX""CY""CZ""DE""DJ""DK""DM""DO""DZ""EC""EE""EG""EH""ER""ES""ET""FI""FJ""FK""FM""FO""FR""GA""GB""GD""GE""GF""GG""GH""GI""GL""GM""GN""GP""GQ""GR""GS""GT""GU""GW""GY""HK""HM""HN""HR""HT""HU""ID""IE""IL""IM""IN""IO""IQ""IR""IS""IT""JE""JM""JO""JP""KE""KG""KH""KI""KM""KN""KP""KR""KW""KY""KZ""LA""LB""LC""LI""LK""LR""LS""LT""LU""LV""LY""MA""MC""MD""ME""MF""MG""MH""MK""ML""MM""MN""MO""MP""MQ""MR""MS""MT""MU""MV""MW""MX""MY""MZ""NA""NC""NE""NF""NG""NI""NL""NO""NP""NR""NU""NZ""OM""PA""PE""PF""PG""PH""PK""PL""PM""PN""PR""PS""PT""PW""PY""QA""RE""RO""RS""RU""RW""SA""SB""SC""SD""SE""SG""SH""SI""SJ""SK""SL""SM""SN""SO""SR""SS""ST""SV""SX""SY""SZ""TC""TD""TF""TG""TH""TJ""TK""TL""TM""TN""TO""TR""TT""TV""TW""TZ""UA""UG""UM""US""UY""UZ""VA""VC""VE""VG""VI""VN""VU""WF""WS""YE""YT""ZA""ZM""ZW"
timezone*string
theme*
profile*
policies*array<>
primaryHost*string|null
checkout*
whatsappUpdates*boolean
customerPortal*
shippingCoverage*
codEnabled?boolean
Defaulttrue
codScope?string
Default"domestic"
Value in"domestic""selected_zones""all"
status*string
Value in"trial""active""suspended""deleted"
ntn*string|null
strn*string|null
codFeePaisa*number
taxRateBps*number
pricesIncludeTax*boolean
abandonedCheckoutAfterMinutes*number|null
lowStockThreshold*number
plan*string
trialEndsAt*|null
templateId*string|null
templateVersion*number|null
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/store'
Example Response
{  "id": "string",  "slug": "string",  "name": "string",  "currency": "PKR",  "country": "AD",  "timezone": "string",  "theme": {    "preset": "counter",    "accent": "string",    "radius": "sm",    "appearance": "system",    "fontPairing": "figtree",    "productCard": "standard",    "density": "comfortable",    "headingScale": "s",    "headingCase": "normal",    "buttonShape": "square",    "buttonStyle": "solid",    "cardImageRatio": "portrait"  },  "profile": {    "logo": {      "id": "string",      "status": "pending",      "url": "string",      "contentType": "string",      "byteSize": 0,      "width": 0,      "height": 0,      "alt": "string",      "createdAt": "2019-08-24T14:15:22Z"    },    "favicon": {      "id": "string",      "status": "pending",      "url": "string",      "contentType": "string",      "byteSize": 0,      "width": 0,      "height": 0,      "alt": "string",      "createdAt": "2019-08-24T14:15:22Z"    },    "seoTitle": null,    "seoDescription": null,    "seoImage": null,    "announcement": {      "enabled": true,      "text": "string",      "link": {        "type": "home"      }    },    "contactEmail": "string",    "contactPhone": "string",    "whatsappNumber": "string",    "address": "string",    "socialLinks": {      "property1": "string",      "property2": "string"    }  },  "policies": [    {      "handle": "string",      "title": "string",      "kind": "page",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "primaryHost": "string",  "checkout": {    "emailMode": "off",    "fields": {      "line2": "hidden",      "landmark": "hidden",      "postalCode": "auto"    },    "orderNotes": true,    "trustMessage": "string",    "hiddenPolicies": [      "string"    ],    "requireTerms": true  },  "whatsappUpdates": true,  "customerPortal": {    "enabled": true,    "showHeaderLink": true,    "loginMethods": {      "emailOtp": true,      "whatsappOtp": true,      "smsOtp": true    },    "allowAddressBook": true,    "allowMarketingOptIn": true,    "showSmsPreferences": true,    "allowReorder": true,    "allowCodSelfConfirm": true,    "allowDeliveryEdit": true,    "deliveryEditCutoff": "before_confirmed",    "deliveryEditWindowMinutes": 0,    "allowCityProvinceChange": true,    "allowPrepaidDeliveryEdit": true,    "allowOrderNoteEdit": true,    "allowOrderCancellation": true,    "cancellationCutoff": "before_confirmed",    "cancellationWindowMinutes": 0,    "allowPrepaidCancellation": true,    "allowVariantSwap": true,    "variantSwapCutoff": "before_confirmed",    "allowCodItemEdits": true,    "codItemEditWindowMinutes": 0,    "allowReturnRequests": true,    "returnWindowDays": 0  },  "shippingCoverage": {    "countries": [      {        "country": "AD",        "regionRestriction": "all",        "allowedRegions": [          "string"        ],        "excludedRegions": [          "string"        ],        "cityOnlyRegions": [          "string"        ],        "cityRestriction": "any",        "allowedCities": [          {            "name": "string",            "normalized": "string",            "regionCode": "string"          }        ],        "excludedCities": [          {            "name": "string",            "normalized": "string",            "regionCode": "string"          }        ]      }    ]  },  "codEnabled": true,  "codScope": "domestic",  "status": "trial",  "ntn": "string",  "strn": "string",  "codFeePaisa": 0,  "taxRateBps": 0,  "pricesIncludeTax": true,  "abandonedCheckoutAfterMinutes": 0,  "lowStockThreshold": 0,  "plan": "string",  "trialEndsAt": "2019-08-24T14:15:22Z",  "templateId": "string",  "templateVersion": 0,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}

Update the current store

PATCH
/admin/v1/store

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
country?string
Value in"AD""AE""AF""AG""AI""AL""AM""AO""AQ""AR""AS""AT""AU""AW""AX""AZ""BA""BB""BD""BE""BF""BG""BH""BI""BJ""BL""BM""BN""BO""BQ""BR""BS""BT""BV""BW""BY""BZ""CA""CC""CD""CF""CG""CH""CI""CK""CL""CM""CN""CO""CR""CU""CV""CW""CX""CY""CZ""DE""DJ""DK""DM""DO""DZ""EC""EE""EG""EH""ER""ES""ET""FI""FJ""FK""FM""FO""FR""GA""GB""GD""GE""GF""GG""GH""GI""GL""GM""GN""GP""GQ""GR""GS""GT""GU""GW""GY""HK""HM""HN""HR""HT""HU""ID""IE""IL""IM""IN""IO""IQ""IR""IS""IT""JE""JM""JO""JP""KE""KG""KH""KI""KM""KN""KP""KR""KW""KY""KZ""LA""LB""LC""LI""LK""LR""LS""LT""LU""LV""LY""MA""MC""MD""ME""MF""MG""MH""MK""ML""MM""MN""MO""MP""MQ""MR""MS""MT""MU""MV""MW""MX""MY""MZ""NA""NC""NE""NF""NG""NI""NL""NO""NP""NR""NU""NZ""OM""PA""PE""PF""PG""PH""PK""PL""PM""PN""PR""PS""PT""PW""PY""QA""RE""RO""RS""RU""RW""SA""SB""SC""SD""SE""SG""SH""SI""SJ""SK""SL""SM""SN""SO""SR""SS""ST""SV""SX""SY""SZ""TC""TD""TF""TG""TH""TJ""TK""TL""TM""TN""TO""TR""TT""TV""TW""TZ""UA""UG""UM""US""UY""UZ""VA""VC""VE""VG""VI""VN""VU""WF""WS""YE""YT""ZA""ZM""ZW"
timezone?string
ntn?string|null
strn?string|null
codFeePaisa?number
taxRateBps?number
pricesIncludeTax?boolean
abandonedCheckoutAfterMinutes?number|null
lowStockThreshold?number
logoMediaId?string|null
faviconMediaId?string|null
seoTitle?string|null
seoDescription?string|null
seoImageId?string|null
contactEmail?string|null
contactPhone?string|null
whatsappNumber?string|null
address?string|null

Response Body

OK

application/json
  1. response
id*string
slug*string
name*string
currency*"PKR"
Value in"PKR"
country?string
Default"PK"
Value in"AD""AE""AF""AG""AI""AL""AM""AO""AQ""AR""AS""AT""AU""AW""AX""AZ""BA""BB""BD""BE""BF""BG""BH""BI""BJ""BL""BM""BN""BO""BQ""BR""BS""BT""BV""BW""BY""BZ""CA""CC""CD""CF""CG""CH""CI""CK""CL""CM""CN""CO""CR""CU""CV""CW""CX""CY""CZ""DE""DJ""DK""DM""DO""DZ""EC""EE""EG""EH""ER""ES""ET""FI""FJ""FK""FM""FO""FR""GA""GB""GD""GE""GF""GG""GH""GI""GL""GM""GN""GP""GQ""GR""GS""GT""GU""GW""GY""HK""HM""HN""HR""HT""HU""ID""IE""IL""IM""IN""IO""IQ""IR""IS""IT""JE""JM""JO""JP""KE""KG""KH""KI""KM""KN""KP""KR""KW""KY""KZ""LA""LB""LC""LI""LK""LR""LS""LT""LU""LV""LY""MA""MC""MD""ME""MF""MG""MH""MK""ML""MM""MN""MO""MP""MQ""MR""MS""MT""MU""MV""MW""MX""MY""MZ""NA""NC""NE""NF""NG""NI""NL""NO""NP""NR""NU""NZ""OM""PA""PE""PF""PG""PH""PK""PL""PM""PN""PR""PS""PT""PW""PY""QA""RE""RO""RS""RU""RW""SA""SB""SC""SD""SE""SG""SH""SI""SJ""SK""SL""SM""SN""SO""SR""SS""ST""SV""SX""SY""SZ""TC""TD""TF""TG""TH""TJ""TK""TL""TM""TN""TO""TR""TT""TV""TW""TZ""UA""UG""UM""US""UY""UZ""VA""VC""VE""VG""VI""VN""VU""WF""WS""YE""YT""ZA""ZM""ZW"
timezone*string
theme*
profile*
policies*array<>
primaryHost*string|null
checkout*
whatsappUpdates*boolean
customerPortal*
shippingCoverage*
codEnabled?boolean
Defaulttrue
codScope?string
Default"domestic"
Value in"domestic""selected_zones""all"
status*string
Value in"trial""active""suspended""deleted"
ntn*string|null
strn*string|null
codFeePaisa*number
taxRateBps*number
pricesIncludeTax*boolean
abandonedCheckoutAfterMinutes*number|null
lowStockThreshold*number
plan*string
trialEndsAt*|null
templateId*string|null
templateVersion*number|null
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.devhelp.pk/admin/v1/store' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "slug": "string",  "name": "string",  "currency": "PKR",  "country": "AD",  "timezone": "string",  "theme": {    "preset": "counter",    "accent": "string",    "radius": "sm",    "appearance": "system",    "fontPairing": "figtree",    "productCard": "standard",    "density": "comfortable",    "headingScale": "s",    "headingCase": "normal",    "buttonShape": "square",    "buttonStyle": "solid",    "cardImageRatio": "portrait"  },  "profile": {    "logo": {      "id": "string",      "status": "pending",      "url": "string",      "contentType": "string",      "byteSize": 0,      "width": 0,      "height": 0,      "alt": "string",      "createdAt": "2019-08-24T14:15:22Z"    },    "favicon": {      "id": "string",      "status": "pending",      "url": "string",      "contentType": "string",      "byteSize": 0,      "width": 0,      "height": 0,      "alt": "string",      "createdAt": "2019-08-24T14:15:22Z"    },    "seoTitle": null,    "seoDescription": null,    "seoImage": null,    "announcement": {      "enabled": true,      "text": "string",      "link": {        "type": "home"      }    },    "contactEmail": "string",    "contactPhone": "string",    "whatsappNumber": "string",    "address": "string",    "socialLinks": {      "property1": "string",      "property2": "string"    }  },  "policies": [    {      "handle": "string",      "title": "string",      "kind": "page",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "primaryHost": "string",  "checkout": {    "emailMode": "off",    "fields": {      "line2": "hidden",      "landmark": "hidden",      "postalCode": "auto"    },    "orderNotes": true,    "trustMessage": "string",    "hiddenPolicies": [      "string"    ],    "requireTerms": true  },  "whatsappUpdates": true,  "customerPortal": {    "enabled": true,    "showHeaderLink": true,    "loginMethods": {      "emailOtp": true,      "whatsappOtp": true,      "smsOtp": true    },    "allowAddressBook": true,    "allowMarketingOptIn": true,    "showSmsPreferences": true,    "allowReorder": true,    "allowCodSelfConfirm": true,    "allowDeliveryEdit": true,    "deliveryEditCutoff": "before_confirmed",    "deliveryEditWindowMinutes": 0,    "allowCityProvinceChange": true,    "allowPrepaidDeliveryEdit": true,    "allowOrderNoteEdit": true,    "allowOrderCancellation": true,    "cancellationCutoff": "before_confirmed",    "cancellationWindowMinutes": 0,    "allowPrepaidCancellation": true,    "allowVariantSwap": true,    "variantSwapCutoff": "before_confirmed",    "allowCodItemEdits": true,    "codItemEditWindowMinutes": 0,    "allowReturnRequests": true,    "returnWindowDays": 0  },  "shippingCoverage": {    "countries": [      {        "country": "AD",        "regionRestriction": "all",        "allowedRegions": [          "string"        ],        "excludedRegions": [          "string"        ],        "cityOnlyRegions": [          "string"        ],        "cityRestriction": "any",        "allowedCities": [          {            "name": "string",            "normalized": "string",            "regionCode": "string"          }        ],        "excludedCities": [          {            "name": "string",            "normalized": "string",            "regionCode": "string"          }        ]      }    ]  },  "codEnabled": true,  "codScope": "domestic",  "status": "trial",  "ntn": "string",  "strn": "string",  "codFeePaisa": 0,  "taxRateBps": 0,  "pricesIncludeTax": true,  "abandonedCheckoutAfterMinutes": 0,  "lowStockThreshold": 0,  "plan": "string",  "trialEndsAt": "2019-08-24T14:15:22Z",  "templateId": "string",  "templateVersion": 0,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}

List the store's domains

GET
/admin/v1/store/domains

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

limit?number
Default24
cursor?string

Response Body

OK

application/json
  1. response
items*array<>
nextCursor*string|null
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/store/domains'
Example Response
{  "items": [    {      "id": "string",      "hostname": "string",      "isPrimary": true,      "verifiedAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string"}

Add a custom domain

POST
/admin/v1/store/domains

Creates a connection for the typed domain and returns its address row. A subdomain is one row; a root (or www. root) becomes root + www rows where the DNS provider can point the root, otherwise a www address the provider forwards the root to. Detects the DNS provider and returns every setting the connection needs. The five-domain limit counts connections. includeEmail also reserves the sender domain; it requires a merchant session with app management permission.

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
includeEmail?boolean
hostname*string

Response Body

OK

application/json
  1. response
id*string
hostname*string
connectionId*string
role*string
Value in"address""alias"
isPrimary*boolean
status*string
Value in"pending""verified""failed"
records*array<>
forwarding*|null
connect*
certificate*string
Value in"waiting""securing""active"
verifiedAt*|null
lastCheckedAt*|null
lastError*string|null
createdAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/store/domains' \  -H 'Content-Type: application/json' \  -d '{  "hostname": "string"}'
Example Response
{  "id": "string",  "hostname": "string",  "connectionId": "string",  "role": "address",  "isPrimary": true,  "status": "pending",  "records": [    {      "role": "address",      "recordType": "CNAME",      "hostname": "string",      "name": "string",      "target": "string",      "status": "found"    }  ],  "forwarding": {    "from": "string",    "to": "string",    "status": "unknown"  },  "connect": {    "provider": "cloudflare",    "providerName": "string",    "dashboardUrl": "string",    "zone": "string",    "strategy": "subdomain",    "available": true,    "reason": "ready",    "platformReady": true,    "refreshedAt": "2019-08-24T14:15:22Z"  },  "certificate": "waiting",  "verifiedAt": "2019-08-24T14:15:22Z",  "lastCheckedAt": "2019-08-24T14:15:22Z",  "lastError": "string",  "createdAt": "2019-08-24T14:15:22Z"}
GET
/admin/v1/store/launch

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
launchStatus*string
Value in"draft""in_review""live""rejected"
requestedAt*|null
reviewedAt*|null
rejectionReason*string|null
checklist*
storefrontUrl*string
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/store/launch'
Example Response
{  "launchStatus": "draft",  "requestedAt": "2019-08-24T14:15:22Z",  "reviewedAt": "2019-08-24T14:15:22Z",  "rejectionReason": "string",  "checklist": {    "items": [      {        "key": "email_verified",        "done": true,        "href": "string",        "description": "string",        "actionLabel": "string"      }    ],    "ready": true  },  "storefrontUrl": "string"}
POST
/admin/v1/store/launch

Refused with UNPROCESSABLE_CONTENT (reason launch_checklist_incomplete) until every checklist item is done.

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

Response Body

OK

application/json
  1. response
launchStatus*string
Value in"draft""in_review""live""rejected"
requestedAt*|null
reviewedAt*|null
rejectionReason*string|null
checklist*
storefrontUrl*string
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/store/launch' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "launchStatus": "draft",  "requestedAt": "2019-08-24T14:15:22Z",  "reviewedAt": "2019-08-24T14:15:22Z",  "rejectionReason": "string",  "checklist": {    "items": [      {        "key": "email_verified",        "done": true,        "href": "string",        "description": "string",        "actionLabel": "string"      }    ],    "ready": true  },  "storefrontUrl": "string"}
POST
/admin/v1/store/preview-link

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

Response Body

OK

application/json
  1. response
url*string
expiresAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/store/preview-link' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "url": "string",  "expiresAt": "2019-08-24T14:15:22Z"}
GET
/admin/v1/store/custom-domains

Returns one item per hostname row. Group rows by connectionId; the address row carries the whole connection's 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.

Query Parameters

limit?number
Default24
cursor?string

Response Body

OK

application/json
  1. response
items*array<>
nextCursor*string|null
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/store/custom-domains'
Example Response
{  "items": [    {      "id": "string",      "hostname": "string",      "connectionId": "string",      "role": "address",      "isPrimary": true,      "status": "pending",      "records": [        {          "role": "address",          "recordType": "CNAME",          "hostname": "string",          "name": "string",          "target": "string",          "status": "found"        }      ],      "forwarding": {        "from": "string",        "to": "string",        "status": "unknown"      },      "connect": {        "provider": "cloudflare",        "providerName": "string",        "dashboardUrl": "string",        "zone": "string",        "strategy": "subdomain",        "available": true,        "reason": "ready",        "platformReady": true,        "refreshedAt": "2019-08-24T14:15:22Z"      },      "certificate": "waiting",      "verifiedAt": "2019-08-24T14:15:22Z",      "lastCheckedAt": "2019-08-24T14:15:22Z",      "lastError": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string"}
POST
/admin/v1/store/domains/{id}/connection

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
hostname*string
connectionId*string
role*string
Value in"address""alias"
isPrimary*boolean
status*string
Value in"pending""verified""failed"
records*array<>
forwarding*|null
connect*
certificate*string
Value in"waiting""securing""active"
verifiedAt*|null
lastCheckedAt*|null
lastError*string|null
createdAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/store/domains/string/connection'
Example Response
{  "id": "string",  "hostname": "string",  "connectionId": "string",  "role": "address",  "isPrimary": true,  "status": "pending",  "records": [    {      "role": "address",      "recordType": "CNAME",      "hostname": "string",      "name": "string",      "target": "string",      "status": "found"    }  ],  "forwarding": {    "from": "string",    "to": "string",    "status": "unknown"  },  "connect": {    "provider": "cloudflare",    "providerName": "string",    "dashboardUrl": "string",    "zone": "string",    "strategy": "subdomain",    "available": true,    "reason": "ready",    "platformReady": true,    "refreshedAt": "2019-08-24T14:15:22Z"  },  "certificate": "waiting",  "verifiedAt": "2019-08-24T14:15:22Z",  "lastCheckedAt": "2019-08-24T14:15:22Z",  "lastError": "string",  "createdAt": "2019-08-24T14:15:22Z"}
POST
/admin/v1/store/domains/{id}/verify

Checks every row of the domain's connection and returns the requested row.

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
hostname*string
connectionId*string
role*string
Value in"address""alias"
isPrimary*boolean
status*string
Value in"pending""verified""failed"
records*array<>
forwarding*|null
connect*
certificate*string
Value in"waiting""securing""active"
verifiedAt*|null
lastCheckedAt*|null
lastError*string|null
createdAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/store/domains/string/verify'
Example Response
{  "id": "string",  "hostname": "string",  "connectionId": "string",  "role": "address",  "isPrimary": true,  "status": "pending",  "records": [    {      "role": "address",      "recordType": "CNAME",      "hostname": "string",      "name": "string",      "target": "string",      "status": "found"    }  ],  "forwarding": {    "from": "string",    "to": "string",    "status": "unknown"  },  "connect": {    "provider": "cloudflare",    "providerName": "string",    "dashboardUrl": "string",    "zone": "string",    "strategy": "subdomain",    "available": true,    "reason": "ready",    "platformReady": true,    "refreshedAt": "2019-08-24T14:15:22Z"  },  "certificate": "waiting",  "verifiedAt": "2019-08-24T14:15:22Z",  "lastCheckedAt": "2019-08-24T14:15:22Z",  "lastError": "string",  "createdAt": "2019-08-24T14:15:22Z"}
POST
/admin/v1/store/domains/{id}/primary

Accepts any row of a connection and makes the connection's address row primary.

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
hostname*string
connectionId*string
role*string
Value in"address""alias"
isPrimary*boolean
status*string
Value in"pending""verified""failed"
records*array<>
forwarding*|null
connect*
certificate*string
Value in"waiting""securing""active"
verifiedAt*|null
lastCheckedAt*|null
lastError*string|null
createdAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/store/domains/string/primary'
Example Response
{  "id": "string",  "hostname": "string",  "connectionId": "string",  "role": "address",  "isPrimary": true,  "status": "pending",  "records": [    {      "role": "address",      "recordType": "CNAME",      "hostname": "string",      "name": "string",      "target": "string",      "status": "found"    }  ],  "forwarding": {    "from": "string",    "to": "string",    "status": "unknown"  },  "connect": {    "provider": "cloudflare",    "providerName": "string",    "dashboardUrl": "string",    "zone": "string",    "strategy": "subdomain",    "available": true,    "reason": "ready",    "platformReady": true,    "refreshedAt": "2019-08-24T14:15:22Z"  },  "certificate": "waiting",  "verifiedAt": "2019-08-24T14:15:22Z",  "lastCheckedAt": "2019-08-24T14:15:22Z",  "lastError": "string",  "createdAt": "2019-08-24T14:15:22Z"}
DELETE
/admin/v1/store/domains/{id}

Retires every row of the domain's connection and removes their certificates.

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
deleted*unknown
Example Request
curl -X DELETE 'https://api.devhelp.pk/admin/v1/store/domains/string'
Example Response
{  "id": "string",  "deleted": true}

On this page