Skip to Content
devhelp shopDocs

Storefront — Catalog

Browse published products, variants, and collections.

GET
/storefront/v1/products/{slug}/merchandising

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

slug*string

Response Body

OK

application/json
  1. response
related*array<>
tabs*array<>
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/products/string/merchandising'
Example Response
{  "related": [    {      "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"    }  ],  "tabs": [    {      "title": "string",      "sizeGuide": true,      "page": {        "id": "string",        "handle": "string",        "title": "string",        "body": "string"      }    }  ]}

List published products

GET
/storefront/v1/products

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

limit?number
Default24
cursor?string
collection?string
q?string
minPricePaisa?number
maxPricePaisa?number
available?boolean
vendor?array<string>
productType?array<string>
option?array<string>
sort?string
Default"featured"
Value in"featured""newest""price_asc""price_desc""title_asc"

Response Body

OK

application/json
  1. response
items*array<>
nextCursor*string|null
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/products'
Example Response
{  "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"    }  ],  "nextCursor": "string"}
GET
/storefront/v1/products/facets

Takes the same filters as the product list and answers how many products match each vendor, type, option value and availability, plus the price range — for a filter panel.

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

collection?string
q?string
minPricePaisa?number
maxPricePaisa?number
available?boolean
vendor?array<string>
productType?array<string>
option?array<string>

Response Body

OK

application/json
  1. response
vendors*array<>
productTypes*array<>
options*array<>
available*number
price*|null
total*number
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/products/facets'
Example Response
{  "vendors": [    {      "value": "string",      "count": 0    }  ],  "productTypes": [    {      "value": "string",      "count": 0    }  ],  "options": [    {      "name": "string",      "values": [        {          "value": "string",          "count": 0        }      ]    }  ],  "available": 0,  "price": {    "minPaisa": 0,    "maxPaisa": 0  },  "total": 0}
GET
/storefront/v1/products/{slug}

Slug rather than id: it is what a storefront URL actually carries.

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

slug*string

Response Body

OK

application/json
  1. response
id*string
slug*string
title*string
description*string|null
status*string
Value in"draft""active""archived""deleted"
kind*string
Value in"physical""appointment""session""package"
vendor*string|null
productType*string|null
tags*array<string>
customBadge?string|null
badges?array<string>
rating?|null
relatedProductIds?array<string>
tabs?array<>
publishedAt*|null
taxClassId?string|null
options*array<>
variants*array<>
images*array<>
seoTitle*string|null
seoDescription*string|null
seoImageId*string|null
seo*
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/products/string'
Example Response
{  "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"}
GET
/storefront/v1/collections

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

limit?number
Default24
cursor?string
sort?string
Default"newest"
Value in"newest""title_asc"

Response Body

OK

application/json
  1. response
items*array<>
nextCursor*string|null
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/collections'
Example Response
{  "items": [    {      "id": "string",      "slug": "string",      "title": "string",      "description": "string",      "status": "draft",      "mode": "manual",      "rules": {        "match": "all",        "conditions": [          {            "field": "title",            "operator": "equals",            "value": ""          }        ]      },      "productCount": 0,      "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"    }  ],  "nextCursor": "string"}
GET
/storefront/v1/collections/{slug}

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

slug*string

Response Body

OK

application/json
  1. response
id*string
slug*string
title*string
description*string|null
status*string
Value in"draft""active""archived""deleted"
mode*string
Value in"manual""automated"
rules*|null
productCount*number
seoTitle*string|null
seoDescription*string|null
seoImageId*string|null
seo*
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/collections/string'
Example Response
{  "id": "string",  "slug": "string",  "title": "string",  "description": "string",  "status": "draft",  "mode": "manual",  "rules": {    "match": "all",    "conditions": [      {        "field": "title",        "operator": "equals",        "value": ""      }    ]  },  "productCount": 0,  "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"}

On this page