Skip to Content
devhelp shopDocs

Storefront — Community & Engagement

Blog posts, product reviews, contact messages, newsletter sign-ups, and back-in-stock alerts.

List

GET
/storefront/v1/blog

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
q?string
categoryId?string
category?string

Response Body

OK

application/json
  1. response
items*array<>
nextCursor*string|null
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/blog'
Example Response
{  "items": [    {      "handle": "string",      "title": "string",      "body": "string",      "excerpt": "string",      "authorName": "string",      "tags": [        "string"      ],      "id": "string",      "featuredImage": {        "id": "string",        "status": "pending",        "url": "string",        "contentType": "string",        "byteSize": 0,        "width": 0,        "height": 0,        "alt": "string",        "createdAt": "2019-08-24T14:15:22Z"      },      "categories": [        {          "name": "string",          "handle": "string",          "id": "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"        }      },      "publishedAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string"}

Get

GET
/storefront/v1/blog/{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
handle*string
title*string
body*string
excerpt*string
authorName*string
tags*array<string>
id*string
featuredImage*|null
categories*array<>
seo*
publishedAt*|null
updatedAt*string
Formatdate-time
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/blog/string'
Example Response
{  "handle": "string",  "title": "string",  "body": "string",  "excerpt": "string",  "authorName": "string",  "tags": [    "string"  ],  "id": "string",  "featuredImage": {    "id": "string",    "status": "pending",    "url": "string",    "contentType": "string",    "byteSize": 0,    "width": 0,    "height": 0,    "alt": "string",    "createdAt": "2019-08-24T14:15:22Z"  },  "categories": [    {      "name": "string",      "handle": "string",      "id": "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"    }  },  "publishedAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}

Categories

GET
/storefront/v1/blog-categories

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

Response Body

OK

application/json
  1. response
items*array<>
nextCursor*string|null
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/blog-categories'
Example Response
{  "items": [    {      "name": "string",      "handle": "string",      "id": "string"    }  ],  "nextCursor": "string"}

List

GET
/storefront/v1/reviews

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
productId*string
rating?number
withPhotos?boolean
sort?string
Value in"recent""highest""lowest""photos"

Response Body

OK

application/json
  1. response
items*array<>
nextCursor*string|null
count*number
average*number|null
summary*
Example Request
curl -X GET 'https://api.devhelp.pk/storefront/v1/reviews?productId=string'
Example Response
{  "items": [    {      "displayName": "string",      "rating": 0,      "title": "string",      "body": "string",      "id": "string",      "productId": "string",      "verifiedPurchase": true,      "reply": "string",      "variantTitle": "string",      "fit": "small",      "city": "string",      "photos": [        {          "id": "string",          "url": "string",          "width": 0,          "height": 0        }      ],      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string",  "count": 0,  "average": 0,  "summary": {    "count": 0,    "average": 0,    "histogram": [      0    ],    "fit": {      "small": 0,      "true": 0,      "large": 0    },    "withPhotos": 0  }}

Submit

POST
/storefront/v1/reviews

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.

Request Body

application/json
  1. body
displayName*string
rating*number
title*string
body*string
orderId*string
orderLineId*string
token*string
fit?|null
showCity?boolean
photoIds?array<string>

Response Body

OK

application/json
  1. response
id*string
status*string
Value in"pending""approved"
Example Request
curl -X POST 'https://api.devhelp.pk/storefront/v1/reviews' \  -H 'Content-Type: application/json' \  -d '{  "displayName": "string",  "rating": 0,  "title": "string",  "body": "string",  "orderId": "string",  "orderLineId": "string",  "token": "string"}'
Example Response
{  "id": "string",  "status": "pending"}

Order

POST
/storefront/v1/reviews/order

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.

Request Body

application/json
  1. body
orderId*string
token*string

Response Body

OK

application/json
  1. response
orderId*string
orderNumber*number
city*string|null
displayName*string
optedOut*boolean
canPostpone*boolean
lines*array<>
Example Request
curl -X POST 'https://api.devhelp.pk/storefront/v1/reviews/order' \  -H 'Content-Type: application/json' \  -d '{  "orderId": "string",  "token": "string"}'
Example Response
{  "orderId": "string",  "orderNumber": 0,  "city": "string",  "displayName": "string",  "optedOut": true,  "canPostpone": true,  "lines": [    {      "id": "string",      "productTitle": "string",      "variantTitle": "string",      "imageUrl": "string",      "reviewable": true,      "askFit": true,      "photos": [        {          "id": "string",          "url": "string",          "width": 0,          "height": 0        }      ],      "review": {        "displayName": "string",        "rating": 0,        "title": "string",        "body": "string",        "status": "pending",        "fit": "small",        "showCity": true      }    }  ]}

Opt Out

POST
/storefront/v1/reviews/opt-out

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.

Request Body

application/json
  1. body
orderId*string
token*string

Response Body

OK

application/json
  1. response
updated*unknown
Example Request
curl -X POST 'https://api.devhelp.pk/storefront/v1/reviews/opt-out' \  -H 'Content-Type: application/json' \  -d '{  "orderId": "string",  "token": "string"}'
Example Response
{  "updated": true}

Postpone

POST
/storefront/v1/reviews/postpone

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.

Request Body

application/json
  1. body
orderId*string
token*string

Response Body

OK

application/json
  1. response
updated*unknown
Example Request
curl -X POST 'https://api.devhelp.pk/storefront/v1/reviews/postpone' \  -H 'Content-Type: application/json' \  -d '{  "orderId": "string",  "token": "string"}'
Example Response
{  "updated": true}

Reserve Photo

POST
/storefront/v1/reviews/photos

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.

Request Body

application/json
  1. body
orderId*string
token*string
orderLineId*string
contentType*string
Value in"image/jpeg""image/png""image/webp"
byteSize*number

Response Body

OK

application/json
  1. response
photoId*string
uploadUrl*string
contentType*string
Value in"image/jpeg""image/png""image/webp"
Example Request
curl -X POST 'https://api.devhelp.pk/storefront/v1/reviews/photos' \  -H 'Content-Type: application/json' \  -d '{  "orderId": "string",  "token": "string",  "orderLineId": "string",  "contentType": "image/jpeg",  "byteSize": 0}'
Example Response
{  "photoId": "string",  "uploadUrl": "string",  "contentType": "image/jpeg"}

Confirm Photo

POST
/storefront/v1/reviews/photos/confirm

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.

Request Body

application/json
  1. body
orderId*string
token*string
photoId*string

Response Body

OK

application/json
  1. response
id*string
url*string
width*number
height*number
Example Request
curl -X POST 'https://api.devhelp.pk/storefront/v1/reviews/photos/confirm' \  -H 'Content-Type: application/json' \  -d '{  "orderId": "string",  "token": "string",  "photoId": "string"}'
Example Response
{  "id": "string",  "url": "string",  "width": 0,  "height": 0}

Remove Photo

POST
/storefront/v1/reviews/photos/remove

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.

Request Body

application/json
  1. body
orderId*string
token*string
photoId*string

Response Body

OK

application/json
  1. response
updated*unknown
Example Request
curl -X POST 'https://api.devhelp.pk/storefront/v1/reviews/photos/remove' \  -H 'Content-Type: application/json' \  -d '{  "orderId": "string",  "token": "string",  "photoId": "string"}'
Example Response
{  "updated": true}

Submit

POST
/storefront/v1/messages

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.

Request Body

application/json
  1. body
name*string
email*string
phone*string
subject*string
body*string
consent*unknown

Response Body

OK

application/json
  1. response
received*unknown
Example Request
curl -X POST 'https://api.devhelp.pk/storefront/v1/messages' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "email": "string",  "phone": "string",  "subject": "string",  "body": "string",  "consent": true}'
Example Response
{  "received": true}
POST
/storefront/v1/engagement/newsletter

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.

Request Body

application/json
  1. body
email*string
form?string
Value in"newsletter""popup"
website?string

Response Body

OK

application/json
  1. response
subscribed*unknown
Example Request
curl -X POST 'https://api.devhelp.pk/storefront/v1/engagement/newsletter' \  -H 'Content-Type: application/json' \  -d '{  "email": "string"}'
Example Response
{  "subscribed": true}
POST
/storefront/v1/engagement/back-in-stock

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.

Request Body

application/json
  1. body
productId*string
variantId*string
email*string
website?string

Response Body

OK

application/json
  1. response
subscribed*unknown
Example Request
curl -X POST 'https://api.devhelp.pk/storefront/v1/engagement/back-in-stock' \  -H 'Content-Type: application/json' \  -d '{  "productId": "string",  "variantId": "string",  "email": "string"}'
Example Response
{  "subscribed": true}
POST
/storefront/v1/engagement/unsubscribe

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.

Request Body

application/json
  1. body
id*string
token*string

Response Body

OK

application/json
  1. response
unsubscribed*unknown
Example Request
curl -X POST 'https://api.devhelp.pk/storefront/v1/engagement/unsubscribe' \  -H 'Content-Type: application/json' \  -d '{  "id": "string",  "token": "string"}'
Example Response
{  "unsubscribed": true}
POST
/storefront/v1/engagement/email-unsubscribe

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.

Request Body

application/json
  1. body
token*string

Response Body

OK

application/json
  1. response
unsubscribed*unknown
Example Request
curl -X POST 'https://api.devhelp.pk/storefront/v1/engagement/email-unsubscribe' \  -H 'Content-Type: application/json' \  -d '{  "token": "string"}'
Example Response
{  "unsubscribed": true}
POST
/storefront/v1/engagement/click

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.

Request Body

application/json
  1. body
token*string
cartId?string
cartToken?string

Response Body

OK

application/json
  1. response
to*string
Example Request
curl -X POST 'https://api.devhelp.pk/storefront/v1/engagement/click' \  -H 'Content-Type: application/json' \  -d '{  "token": "string"}'
Example Response
{  "to": "string"}

On this page