Skip to Content
devhelp shopDocs

Storefront — Store & Site

Public store profile, site documents, navigation menus, pages, redirects, and sitemap.

Get the current store

GET
/storefront/v1/store

Authorization

publishableKey
headerx-api-key<token>

Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. 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"
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/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"}

List published pages

GET
/storefront/v1/pages

Links only, without bodies — for footers and sitemaps.

Authorization

publishableKey
headerx-api-key<token>

Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.

Response Body

OK

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/pages'
Example Response
{  "items": [    {      "handle": "string",      "title": "string",      "kind": "page",      "updatedAt": "2019-08-24T14:15:22Z"    }  ]}

Get a published page

GET
/storefront/v1/pages/{handle}

Authorization

publishableKey
headerx-api-key<token>

Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.

Path Parameters

handle*string

Response Body

OK

application/json
  1. response
id*string
handle*string
title*string
body*string
kind*string
Value in"page""contact""policy_refund""policy_shipping""policy_privacy""policy_terms"
seo*
updatedAt*string
Formatdate-time
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/pages/string'
Example Response
{  "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"}

Get a navigation menu

GET
/storefront/v1/menus/{id}

Authorization

publishableKey
headerx-api-key<token>

Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Response Body

OK

application/json
  1. response
id*string
handle*string
items*array<>
customized*boolean
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/menus/string'
Example Response
{  "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}
GET
/storefront/v1/redirects/resolve

Called when a path would otherwise 404. Answers NOT_FOUND when no redirect matches.

Authorization

publishableKey
headerx-api-key<token>

Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.

Query Parameters

path*string

Response Body

OK

application/json
  1. response
toPath*string
statusCode*unknown|unknown
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/redirects/resolve?path=string'
Example Response
{  "toPath": "string",  "statusCode": 301}

List every indexable URL

GET
/storefront/v1/sitemap

Published products, collections and pages with their last change, paged by cursor.

Authorization

publishableKey
headerx-api-key<token>

Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.

Query Parameters

cursor?string
limit?number
Default5000

Response Body

OK

application/json
  1. response
items*array<>
nextCursor*string|null
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/sitemap'
Example Response
{  "items": [    {      "type": "product",      "handle": "string",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string"}
GET
/storefront/v1/site/resolve

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.

Authorization

publishableKey
headerx-api-key<token>

Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.

Query Parameters

pageType*string
Value in"home""product""collection""collection-list""page""article""blog""search""cart""account""not-found"
handle?string
id?string

Response Body

OK

application/json
  1. response
release*|null
preview*boolean
pageType*string
Value in"home""product""collection""collection-list""page""article""blog""search""cart""account""not-found"
template*|null
templateChoice*|||
page*|null
layout*|null
theme*|null
code*|null
customCode*string
Value in"on""paused""blocked""off"
components*array<>
menus*array<>
resource*||||null
context*
data*
media*
links*
expressions*
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/site/resolve?pageType=home'
Example Response
{  "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"        }      ]    }  }}

On this page