Storefront — Store & Site
Public store profile, site documents, navigation menus, pages, redirects, and sitemap.
publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
OK
application/json- response
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"curl -X GET 'https://api.devhelp.pk/storefront/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"}Links only, without bodies — for footers and sitemaps.
publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
OK
application/json- response
items*array<>curl -X GET 'https://api.devhelp.pk/storefront/v1/pages'{ "items": [ { "handle": "string", "title": "string", "kind": "page", "updatedAt": "2019-08-24T14:15:22Z" } ]}publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
handle*stringOK
application/json- response
id*stringhandle*stringtitle*stringbody*stringkind*string"page""contact""policy_refund""policy_shipping""policy_privacy""policy_terms"seo*updatedAt*stringdate-timecurl -X GET 'https://api.devhelp.pk/storefront/v1/pages/string'{ "id": "string", "handle": "string", "title": "string", "body": "string", "kind": "page", "seo": { "title": "string", "description": "string", "image": { "id": "string", "status": "pending", "url": "string", "contentType": "string", "byteSize": 0, "width": 0, "height": 0, "alt": "string", "createdAt": "2019-08-24T14:15:22Z" } }, "updatedAt": "2019-08-24T14:15:22Z"}publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringhandle*stringitems*array<>customized*booleancurl -X GET 'https://api.devhelp.pk/storefront/v1/menus/string'{ "id": "string", "handle": "string", "items": [ { "id": "string", "label": "string", "href": "string", "external": true, "children": [ { "id": "string", "label": "string", "href": "string", "external": true, "children": [ { "id": "string", "label": "string", "href": "string", "external": true, "children": [ null ] } ] } ] } ], "customized": true}Called when a path would otherwise 404. Answers NOT_FOUND when no redirect matches.
publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
path*stringOK
application/json- response
toPath*stringstatusCode*unknown|unknowncurl -X GET 'https://api.devhelp.pk/storefront/v1/redirects/resolve?path=string'{ "toPath": "string", "statusCode": 301}Published products, collections and pages with their last change, paged by cursor.
publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
cursor?stringlimit?number5000OK
application/json- response
items*array<>nextCursor*string|nullcurl -X GET 'https://api.devhelp.pk/storefront/v1/sitemap'{ "items": [ { "type": "product", "handle": "string", "updatedAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "string"}Give a page type and, for products, collections, pages and posts, a handle or id. Answers NOT_FOUND when the store has not published its site or the resource does not exist.
publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
pageType*string"home""product""collection""collection-list""page""article""blog""search""cart""account""not-found"handle?stringid?stringOK
application/json- response
release*|nullpreview*booleanpageType*string"home""product""collection""collection-list""page""article""blog""search""cart""account""not-found"template*|nulltemplateChoice*|||page*|nulllayout*|nulltheme*|nullcode*|nullcustomCode*string"on""paused""blocked""off"components*array<>menus*array<>resource*||||nullcontext*data*media*links*expressions*curl -X GET 'https://api.devhelp.pk/storefront/v1/site/resolve?pageType=home'{ "release": { "id": "string", "number": 0 }, "preview": true, "pageType": "home", "template": { "id": "string", "revisionId": "string", "document": { "kind": "theme", "schemaVersion": 0, "defs": { "property1": 0, "property2": 0 }, "meta": { "property1": null, "property2": null }, "body": { "property1": null, "property2": null }, "property1": null, "property2": null } }, "templateChoice": { "templateId": "string", "source": "explicit" }, "page": { "id": "string", "revisionId": "string", "document": { "kind": "theme", "schemaVersion": 0, "defs": { "property1": 0, "property2": 0 }, "meta": { "property1": null, "property2": null }, "body": { "property1": null, "property2": null }, "property1": null, "property2": null } }, "layout": { "id": "string", "revisionId": "string", "document": { "kind": "theme", "schemaVersion": 0, "defs": { "property1": 0, "property2": 0 }, "meta": { "property1": null, "property2": null }, "body": { "property1": null, "property2": null }, "property1": null, "property2": null } }, "theme": { "id": "string", "revisionId": "string", "document": { "kind": "theme", "schemaVersion": 0, "defs": { "property1": 0, "property2": 0 }, "meta": { "property1": null, "property2": null }, "body": { "property1": null, "property2": null }, "property1": null, "property2": null } }, "code": { "css": "string", "snippets": [ { "property1": null, "property2": null } ] }, "customCode": "on", "components": [ { "id": "string", "revisionId": "string", "document": { "kind": "theme", "schemaVersion": 0, "defs": { "property1": 0, "property2": 0 }, "meta": { "property1": null, "property2": null }, "body": { "property1": null, "property2": null }, "property1": null, "property2": null } } ], "menus": [ { "id": "string", "revisionId": "string", "document": { "kind": "theme", "schemaVersion": 0, "defs": { "property1": 0, "property2": 0 }, "meta": { "property1": null, "property2": null }, "body": { "property1": null, "property2": null }, "property1": null, "property2": null } } ], "resource": { "kind": "product", "product": { "id": "string", "slug": "string", "title": "string", "description": "string", "status": "draft", "kind": "physical", "vendor": "string", "productType": "string", "tags": [ "string" ], "customBadge": "string", "badges": [ "string" ], "rating": { "average": 0, "count": 0 }, "relatedProductIds": [ "string" ], "tabs": [ { "title": "string", "pageId": "string", "sizeGuide": true } ], "publishedAt": "2019-08-24T14:15:22Z", "taxClassId": "string", "options": [ { "id": "string", "name": "string", "position": 0, "values": [ { "id": "string", "value": "string", "colour": "string", "position": 0 } ] } ], "variants": [ { "id": "string", "pricePaisa": 0, "compareAtPricePaisa": 0, "sku": "string", "barcode": "string", "weightGrams": 0, "position": 0, "optionValues": [ { "optionId": "string", "optionName": "string", "valueId": "string", "value": "string" } ], "imageId": "string", "trackInventory": true, "allowOversell": true, "sellable": true, "availability": "in_stock", "sale": { "discountId": "string", "title": "string", "percentageBps": 0, "basePricePaisa": 0, "endsAt": "2019-08-24T14:15:22Z" } } ], "images": [ { "id": "string", "status": "pending", "url": "string", "contentType": "string", "byteSize": 0, "width": 0, "height": 0, "alt": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "seoTitle": "string", "seoDescription": "string", "seoImageId": "string", "seo": { "title": "string", "description": "string", "image": { "id": "string", "status": "pending", "url": "string", "contentType": "string", "byteSize": 0, "width": 0, "height": 0, "alt": "string", "createdAt": "2019-08-24T14:15:22Z" } }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } }, "context": { "property1": null, "property2": null }, "data": { "property1": { "source": "products", "items": [ { "id": "string", "slug": "string", "title": "string", "description": "string", "status": "draft", "kind": "physical", "vendor": "string", "productType": "string", "tags": [ "string" ], "customBadge": "string", "badges": [ "string" ], "rating": { "average": 0, "count": 0 }, "relatedProductIds": [ "string" ], "tabs": [ { "title": "string", "pageId": "string", "sizeGuide": true } ], "publishedAt": "2019-08-24T14:15:22Z", "taxClassId": "string", "options": [ { "id": "string", "name": "string", "position": 0, "values": [ { "id": "string", "value": "string", "colour": "string", "position": 0 } ] } ], "variants": [ { "id": "string", "pricePaisa": 0, "compareAtPricePaisa": 0, "sku": "string", "barcode": "string", "weightGrams": 0, "position": 0, "optionValues": [ { "optionId": "string", "optionName": "string", "valueId": "string", "value": "string" } ], "imageId": "string", "trackInventory": true, "allowOversell": true, "sellable": true, "availability": "in_stock", "sale": { "discountId": "string", "title": "string", "percentageBps": 0, "basePricePaisa": 0, "endsAt": "2019-08-24T14:15:22Z" } } ], "images": [ { "id": "string", "status": "pending", "url": "string", "contentType": "string", "byteSize": 0, "width": 0, "height": 0, "alt": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "seoTitle": "string", "seoDescription": "string", "seoImageId": "string", "seo": { "title": "string", "description": "string", "image": { "id": "string", "status": "pending", "url": "string", "contentType": "string", "byteSize": 0, "width": 0, "height": 0, "alt": "string", "createdAt": "2019-08-24T14:15:22Z" } }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ] }, "property2": { "source": "products", "items": [ { "id": "string", "slug": "string", "title": "string", "description": "string", "status": "draft", "kind": "physical", "vendor": "string", "productType": "string", "tags": [ "string" ], "customBadge": "string", "badges": [ "string" ], "rating": { "average": 0, "count": 0 }, "relatedProductIds": [ "string" ], "tabs": [ { "title": "string", "pageId": "string", "sizeGuide": true } ], "publishedAt": "2019-08-24T14:15:22Z", "taxClassId": "string", "options": [ { "id": "string", "name": "string", "position": 0, "values": [ { "id": "string", "value": "string", "colour": "string", "position": 0 } ] } ], "variants": [ { "id": "string", "pricePaisa": 0, "compareAtPricePaisa": 0, "sku": "string", "barcode": "string", "weightGrams": 0, "position": 0, "optionValues": [ { "optionId": "string", "optionName": "string", "valueId": "string", "value": "string" } ], "imageId": "string", "trackInventory": true, "allowOversell": true, "sellable": true, "availability": "in_stock", "sale": { "discountId": "string", "title": "string", "percentageBps": 0, "basePricePaisa": 0, "endsAt": "2019-08-24T14:15:22Z" } } ], "images": [ { "id": "string", "status": "pending", "url": "string", "contentType": "string", "byteSize": 0, "width": 0, "height": 0, "alt": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "seoTitle": "string", "seoDescription": "string", "seoImageId": "string", "seo": { "title": "string", "description": "string", "image": { "id": "string", "status": "pending", "url": "string", "contentType": "string", "byteSize": 0, "width": 0, "height": 0, "alt": "string", "createdAt": "2019-08-24T14:15:22Z" } }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ] } }, "media": { "property1": { "url": "string", "alt": "string", "width": 0, "height": 0 }, "property2": { "url": "string", "alt": "string", "width": 0, "height": 0 } }, "links": { "property1": { "title": "string", "url": "string" }, "property2": { "title": "string", "url": "string" } }, "expressions": { "property1": { "values": { "property1": { "property1": null, "property2": null }, "property2": { "property1": null, "property2": null } }, "errors": [ { "address": "string", "setting": "string", "message": "string" } ] }, "property2": { "values": { "property1": { "property1": null, "property2": null }, "property2": { "property1": null, "property2": null } }, "errors": [ { "address": "string", "setting": "string", "message": "string" } ] } }}