Admin — Store & Settings
Store profile, domains, checkout and order settings, tax classes, and dashboard overview.
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.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
period?string"30d""today""7d""30d"OK
application/json- response
period*string"today""7d""30d"timezone*stringcurrent*previous*dailySales*array<>recentOrders*array<>attention*setup*|nullcurl -X GET 'https://api.devhelp.pk/admin/v1/dashboard'{ "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" } ] }}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
items*array<>curl -X GET 'https://api.devhelp.pk/admin/v1/tax-classes'{ "items": [ { "id": "string", "name": "string", "rateBps": 0, "pctCode": "string", "productCount": 0, "createdAt": "2019-08-24T14:15:22Z" } ]}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
name*stringrateBps*numberpctCode?string|nullOK
application/json- response
id*stringname*stringrateBps*numberpctCode*string|nullproductCount*numbercreatedAt*stringdate-timecurl -X POST 'https://api.devhelp.pk/admin/v1/tax-classes' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "rateBps": 0}'{ "id": "string", "name": "string", "rateBps": 0, "pctCode": "string", "productCount": 0, "createdAt": "2019-08-24T14:15:22Z"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
name?stringrateBps?numberpctCode?string|nullOK
application/json- response
id*stringname*stringrateBps*numberpctCode*string|nullproductCount*numbercreatedAt*stringdate-timecurl -X PATCH 'https://api.devhelp.pk/admin/v1/tax-classes/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "name": "string", "rateBps": 0, "pctCode": "string", "productCount": 0, "createdAt": "2019-08-24T14:15:22Z"}Products in the class go back to the store's own rate. Placed orders keep theirs.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringdeleted*unknowncurl -X POST 'https://api.devhelp.pk/admin/v1/tax-classes/string/retire'{ "id": "string", "deleted": true}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
emailMode*string"off""optional""required"fields*orderNotes*booleantrustMessage*string|nullhiddenPolicies*array<string>requireTerms*booleanupdatedAt*|nullcurl -X GET 'https://api.devhelp.pk/admin/v1/store/checkout'{ "emailMode": "off", "fields": { "line2": "hidden", "landmark": "hidden", "postalCode": "auto" }, "orderNotes": true, "trustMessage": "string", "hiddenPolicies": [ "string" ], "requireTerms": true, "updatedAt": "2019-08-24T14:15:22Z"}Omitted keys keep their value. Emits store.updated, which purges the storefront's cached store.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
emailMode?string"off""optional""required"fields?orderNotes?booleantrustMessage?string|nullhiddenPolicies?array<string>requireTerms?booleanOK
application/json- response
emailMode*string"off""optional""required"fields*orderNotes*booleantrustMessage*string|nullhiddenPolicies*array<string>requireTerms*booleanupdatedAt*|nullcurl -X PATCH 'https://api.devhelp.pk/admin/v1/store/checkout' \ -H 'Content-Type: application/json' \ -d '{}'{ "emailMode": "off", "fields": { "line2": "hidden", "landmark": "hidden", "postalCode": "auto" }, "orderNotes": true, "trustMessage": "string", "hiddenPolicies": [ "string" ], "requireTerms": true, "updatedAt": "2019-08-24T14:15:22Z"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
enabled*booleanshowHeaderLink*booleanloginMethods*allowAddressBook*booleanallowMarketingOptIn*booleanshowSmsPreferences*booleanallowReorder*booleanallowCodSelfConfirm*booleanallowDeliveryEdit*booleandeliveryEditCutoff*string"before_confirmed""before_packed""before_dispatched"deliveryEditWindowMinutes*number|nullallowCityProvinceChange*booleanallowPrepaidDeliveryEdit*booleanallowOrderNoteEdit*booleanallowOrderCancellation*booleancancellationCutoff*string"before_confirmed""before_packed""before_dispatched"cancellationWindowMinutes*number|nullallowPrepaidCancellation*booleanallowVariantSwap*booleanvariantSwapCutoff*string"before_confirmed""before_packed""before_dispatched"allowCodItemEdits*booleancodItemEditWindowMinutes*number|nullallowReturnRequests*booleanreturnWindowDays*numberupdatedAt*|nullcurl -X GET 'https://api.devhelp.pk/admin/v1/store/customer-portal'{ "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"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
enabled?booleanshowHeaderLink?booleanloginMethods?allowAddressBook?booleanallowMarketingOptIn?booleanshowSmsPreferences?booleanallowReorder?booleanallowCodSelfConfirm?booleanallowDeliveryEdit?booleandeliveryEditCutoff?string"before_confirmed""before_packed""before_dispatched"deliveryEditWindowMinutes?number|nullallowCityProvinceChange?booleanallowPrepaidDeliveryEdit?booleanallowOrderNoteEdit?booleanallowOrderCancellation?booleancancellationCutoff?string"before_confirmed""before_packed""before_dispatched"cancellationWindowMinutes?number|nullallowPrepaidCancellation?booleanallowVariantSwap?booleanvariantSwapCutoff?string"before_confirmed""before_packed""before_dispatched"allowCodItemEdits?booleancodItemEditWindowMinutes?number|nullallowReturnRequests?booleanreturnWindowDays?numberOK
application/json- response
enabled*booleanshowHeaderLink*booleanloginMethods*allowAddressBook*booleanallowMarketingOptIn*booleanshowSmsPreferences*booleanallowReorder*booleanallowCodSelfConfirm*booleanallowDeliveryEdit*booleandeliveryEditCutoff*string"before_confirmed""before_packed""before_dispatched"deliveryEditWindowMinutes*number|nullallowCityProvinceChange*booleanallowPrepaidDeliveryEdit*booleanallowOrderNoteEdit*booleanallowOrderCancellation*booleancancellationCutoff*string"before_confirmed""before_packed""before_dispatched"cancellationWindowMinutes*number|nullallowPrepaidCancellation*booleanallowVariantSwap*booleanvariantSwapCutoff*string"before_confirmed""before_packed""before_dispatched"allowCodItemEdits*booleancodItemEditWindowMinutes*number|nullallowReturnRequests*booleanreturnWindowDays*numberupdatedAt*|nullcurl -X PUT 'https://api.devhelp.pk/admin/v1/store/customer-portal' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
unconfirmed*noNewsAfterDays*numberreturningAfterDays*numberunpaidAfterDays*numbercheckFirstAbovePaisa*number|nullcurl -X GET 'https://api.devhelp.pk/admin/v1/store/orders'{ "unconfirmed": { "afterAttempts": 0, "afterHours": 0, "action": "hold" }, "noNewsAfterDays": 0, "returningAfterDays": 0, "unpaidAfterDays": 0, "checkFirstAbovePaisa": 0}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
unconfirmed*noNewsAfterDays?numberreturningAfterDays?numberunpaidAfterDays?numbercheckFirstAbovePaisa*number|nullOK
application/json- response
unconfirmed*noNewsAfterDays*numberreturningAfterDays*numberunpaidAfterDays*numbercheckFirstAbovePaisa*number|nullcurl -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}'{ "unconfirmed": { "afterAttempts": 0, "afterHours": 0, "action": "hold" }, "noNewsAfterDays": 0, "returningAfterDays": 0, "unpaidAfterDays": 0, "checkFirstAbovePaisa": 0}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
id*stringslug*stringname*stringcurrency*"PKR""PKR"country?string"PK""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*stringtheme*profile*policies*array<>primaryHost*string|nullcheckout*whatsappUpdates*booleancustomerPortal*shippingCoverage*codEnabled?booleantruecodScope?string"domestic""domestic""selected_zones""all"status*string"trial""active""suspended""deleted"ntn*string|nullstrn*string|nullcodFeePaisa*numbertaxRateBps*numberpricesIncludeTax*booleanabandonedCheckoutAfterMinutes*number|nulllowStockThreshold*numberplan*stringtrialEndsAt*|nulltemplateId*string|nulltemplateVersion*number|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X GET 'https://api.devhelp.pk/admin/v1/store'{ "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"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
name?stringcountry?string"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?stringntn?string|nullstrn?string|nullcodFeePaisa?numbertaxRateBps?numberpricesIncludeTax?booleanabandonedCheckoutAfterMinutes?number|nulllowStockThreshold?numberlogoMediaId?string|nullfaviconMediaId?string|nullseoTitle?string|nullseoDescription?string|nullseoImageId?string|nullcontactEmail?string|nullcontactPhone?string|nullwhatsappNumber?string|nulladdress?string|nullOK
application/json- response
id*stringslug*stringname*stringcurrency*"PKR""PKR"country?string"PK""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*stringtheme*profile*policies*array<>primaryHost*string|nullcheckout*whatsappUpdates*booleancustomerPortal*shippingCoverage*codEnabled?booleantruecodScope?string"domestic""domestic""selected_zones""all"status*string"trial""active""suspended""deleted"ntn*string|nullstrn*string|nullcodFeePaisa*numbertaxRateBps*numberpricesIncludeTax*booleanabandonedCheckoutAfterMinutes*number|nulllowStockThreshold*numberplan*stringtrialEndsAt*|nulltemplateId*string|nulltemplateVersion*number|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X PATCH 'https://api.devhelp.pk/admin/v1/store' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
limit?number24cursor?stringOK
application/json- response
items*array<>nextCursor*string|nullcurl -X GET 'https://api.devhelp.pk/admin/v1/store/domains'{ "items": [ { "id": "string", "hostname": "string", "isPrimary": true, "verifiedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "string"}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.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
includeEmail?booleanhostname*stringOK
application/json- response
id*stringhostname*stringconnectionId*stringrole*string"address""alias"isPrimary*booleanstatus*string"pending""verified""failed"records*array<>forwarding*|nullconnect*certificate*string"waiting""securing""active"verifiedAt*|nulllastCheckedAt*|nulllastError*string|nullcreatedAt*stringdate-timecurl -X POST 'https://api.devhelp.pk/admin/v1/store/domains' \ -H 'Content-Type: application/json' \ -d '{ "hostname": "string"}'{ "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"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
launchStatus*string"draft""in_review""live""rejected"requestedAt*|nullreviewedAt*|nullrejectionReason*string|nullchecklist*storefrontUrl*stringcurl -X GET 'https://api.devhelp.pk/admin/v1/store/launch'{ "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"}Refused with UNPROCESSABLE_CONTENT (reason launch_checklist_incomplete) until every checklist item is done.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
OK
application/json- response
launchStatus*string"draft""in_review""live""rejected"requestedAt*|nullreviewedAt*|nullrejectionReason*string|nullchecklist*storefrontUrl*stringcurl -X POST 'https://api.devhelp.pk/admin/v1/store/launch' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
OK
application/json- response
url*stringexpiresAt*stringdate-timecurl -X POST 'https://api.devhelp.pk/admin/v1/store/preview-link' \ -H 'Content-Type: application/json' \ -d '{}'{ "url": "string", "expiresAt": "2019-08-24T14:15:22Z"}Returns one item per hostname row. Group rows by connectionId; the address row carries the whole connection's settings.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
limit?number24cursor?stringOK
application/json- response
items*array<>nextCursor*string|nullcurl -X GET 'https://api.devhelp.pk/admin/v1/store/custom-domains'{ "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"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringhostname*stringconnectionId*stringrole*string"address""alias"isPrimary*booleanstatus*string"pending""verified""failed"records*array<>forwarding*|nullconnect*certificate*string"waiting""securing""active"verifiedAt*|nulllastCheckedAt*|nulllastError*string|nullcreatedAt*stringdate-timecurl -X POST 'https://api.devhelp.pk/admin/v1/store/domains/string/connection'{ "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"}Checks every row of the domain's connection and returns the requested row.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringhostname*stringconnectionId*stringrole*string"address""alias"isPrimary*booleanstatus*string"pending""verified""failed"records*array<>forwarding*|nullconnect*certificate*string"waiting""securing""active"verifiedAt*|nulllastCheckedAt*|nulllastError*string|nullcreatedAt*stringdate-timecurl -X POST 'https://api.devhelp.pk/admin/v1/store/domains/string/verify'{ "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"}Accepts any row of a connection and makes the connection's address row primary.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringhostname*stringconnectionId*stringrole*string"address""alias"isPrimary*booleanstatus*string"pending""verified""failed"records*array<>forwarding*|nullconnect*certificate*string"waiting""securing""active"verifiedAt*|nulllastCheckedAt*|nulllastError*string|nullcreatedAt*stringdate-timecurl -X POST 'https://api.devhelp.pk/admin/v1/store/domains/string/primary'{ "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"}Retires every row of the domain's connection and removes their certificates.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringdeleted*unknowncurl -X DELETE 'https://api.devhelp.pk/admin/v1/store/domains/string'{ "id": "string", "deleted": true}