Storefront — Customer Portal
Passwordless customer OTP authentication, sessions, profile, saved addresses, communication preferences, and self-serve order editing.
publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
application/json- body
channel?string"email""email""whatsapp""sms"identifier*stringOK
application/json- response
sent*unknownchannel*string"email""whatsapp""sms"maskedIdentifier*stringexpiresInSeconds*numbercooldownSeconds*numbercurl -X POST 'https://api.devhelp.pk/storefront/v1/account/auth/otp/request' \ -H 'Content-Type: application/json' \ -d '{ "identifier": "string"}'{ "sent": true, "channel": "email", "maskedIdentifier": "string", "expiresInSeconds": 0, "cooldownSeconds": 0}publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
application/json- body
channel?string"email""email""whatsapp""sms"identifier*stringcode*stringOK
application/json- response
token*stringexpiresAt*stringdate-timecustomer*curl -X POST 'https://api.devhelp.pk/storefront/v1/account/auth/otp/verify' \ -H 'Content-Type: application/json' \ -d '{ "identifier": "string", "code": "string"}'{ "token": "string", "expiresAt": "2019-08-24T14:15:22Z", "customer": { "id": "string", "email": "string", "phone": "string", "firstName": "string", "lastName": "string", "reviewRequestsOptedOut": true, "createdAt": "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.
OK
application/json- response
customer*sessionId*stringexpiresAt*stringdate-timecurl -X GET 'https://api.devhelp.pk/storefront/v1/account/session'{ "customer": { "id": "string", "email": "string", "phone": "string", "firstName": "string", "lastName": "string", "reviewRequestsOptedOut": true, "createdAt": "2019-08-24T14:15:22Z" }, "sessionId": "string", "expiresAt": "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.
OK
application/json- response
signedOut*unknowncurl -X POST 'https://api.devhelp.pk/storefront/v1/account/auth/logout'{ "signedOut": true}publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
application/json- body
keepCurrent?booleanfalseOK
application/json- response
revoked*numbercurl -X POST 'https://api.devhelp.pk/storefront/v1/account/auth/logout-all' \ -H 'Content-Type: application/json' \ -d '{}'{ "revoked": 0}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/account/sessions'{ "items": [ { "id": "string", "channel": "email", "identifier": "string", "userAgent": "string", "lastSeenAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "current": true } ]}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
revoked*unknowncurl -X DELETE 'https://api.devhelp.pk/storefront/v1/account/sessions/string'{ "revoked": true}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*stringemail*string|nullphone*string|nullfirstName*string|nulllastName*string|nullreviewRequestsOptedOut*booleancreatedAt*stringdate-timecurl -X GET 'https://api.devhelp.pk/storefront/v1/account/profile'{ "id": "string", "email": "string", "phone": "string", "firstName": "string", "lastName": "string", "reviewRequestsOptedOut": true, "createdAt": "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.
application/json- body
firstName?string|nulllastName?string|nullOK
application/json- response
id*stringemail*string|nullphone*string|nullfirstName*string|nulllastName*string|nullreviewRequestsOptedOut*booleancreatedAt*stringdate-timecurl -X PATCH 'https://api.devhelp.pk/storefront/v1/account/profile' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "email": "string", "phone": "string", "firstName": "string", "lastName": "string", "reviewRequestsOptedOut": true, "createdAt": "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.
application/json- body
channel?string"email""email""whatsapp""sms"identifier*stringOK
application/json- response
sent*unknownchannel*string"email""whatsapp""sms"maskedIdentifier*stringexpiresInSeconds*numbercooldownSeconds*numbercurl -X POST 'https://api.devhelp.pk/storefront/v1/account/profile/contact/request-otp' \ -H 'Content-Type: application/json' \ -d '{ "identifier": "string"}'{ "sent": true, "channel": "email", "maskedIdentifier": "string", "expiresInSeconds": 0, "cooldownSeconds": 0}publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
application/json- body
channel?string"email""email""whatsapp""sms"identifier*stringcode*stringOK
application/json- response
id*stringemail*string|nullphone*string|nullfirstName*string|nulllastName*string|nullreviewRequestsOptedOut*booleancreatedAt*stringdate-timecurl -X POST 'https://api.devhelp.pk/storefront/v1/account/profile/contact/verify-otp' \ -H 'Content-Type: application/json' \ -d '{ "identifier": "string", "code": "string"}'{ "id": "string", "email": "string", "phone": "string", "firstName": "string", "lastName": "string", "reviewRequestsOptedOut": true, "createdAt": "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.
OK
application/json- response
items*array<>curl -X GET 'https://api.devhelp.pk/storefront/v1/account/addresses'{ "items": [ { "id": "string", "line1": "string", "line2": "string", "city": "string", "province": "string", "postalCode": "string", "landmark": "string", "country": "AD", "recipientName": "string", "recipientPhone": "string", "isDefault": true, "createdAt": "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.
application/json- body
line1*stringline2?string|nullcity*stringprovince?string""postalCode?string""landmark?string|nullcountry?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"recipientName*stringrecipientPhone*stringisDefault?booleanfalseOK
application/json- response
id*stringline1*stringline2*string|nullcity*stringprovince*stringpostalCode*stringlandmark*string|nullcountry*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"recipientName*stringrecipientPhone*stringisDefault*booleancreatedAt*stringdate-timecurl -X POST 'https://api.devhelp.pk/storefront/v1/account/addresses' \ -H 'Content-Type: application/json' \ -d '{ "line1": "string", "city": "string", "recipientName": "string", "recipientPhone": "string"}'{ "id": "string", "line1": "string", "line2": "string", "city": "string", "province": "string", "postalCode": "string", "landmark": "string", "country": "AD", "recipientName": "string", "recipientPhone": "string", "isDefault": true, "createdAt": "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.
addressId*stringapplication/json- body
line1?stringline2?string|nullcity?stringprovince?stringpostalCode?stringlandmark?string|nullcountry?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"recipientName?stringrecipientPhone?stringisDefault?booleanOK
application/json- response
id*stringline1*stringline2*string|nullcity*stringprovince*stringpostalCode*stringlandmark*string|nullcountry*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"recipientName*stringrecipientPhone*stringisDefault*booleancreatedAt*stringdate-timecurl -X PATCH 'https://api.devhelp.pk/storefront/v1/account/addresses/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "line1": "string", "line2": "string", "city": "string", "province": "string", "postalCode": "string", "landmark": "string", "country": "AD", "recipientName": "string", "recipientPhone": "string", "isDefault": true, "createdAt": "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.
addressId*stringOK
application/json- response
deleted*unknowncurl -X DELETE 'https://api.devhelp.pk/storefront/v1/account/addresses/string'{ "deleted": true}publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
addressId*stringOK
application/json- response
id*stringline1*stringline2*string|nullcity*stringprovince*stringpostalCode*stringlandmark*string|nullcountry*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"recipientName*stringrecipientPhone*stringisDefault*booleancreatedAt*stringdate-timecurl -X POST 'https://api.devhelp.pk/storefront/v1/account/addresses/string/default'{ "id": "string", "line1": "string", "line2": "string", "city": "string", "province": "string", "postalCode": "string", "landmark": "string", "country": "AD", "recipientName": "string", "recipientPhone": "string", "isDefault": true, "createdAt": "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.
OK
application/json- response
email*whatsapp*sms*reviewRequests*curl -X GET 'https://api.devhelp.pk/storefront/v1/account/preferences'{ "email": { "address": "string", "marketing": "never" }, "whatsapp": { "available": true, "phone": "string", "transactional": "none", "marketing": "never" }, "sms": { "available": true, "phone": "string", "marketing": "never" }, "reviewRequests": { "optedOut": true }}publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
application/json- body
emailMarketing?booleanwhatsappTransactional?booleanwhatsappMarketing?booleansmsMarketing?booleanreviewRequestsOptOut?booleanOK
application/json- response
email*whatsapp*sms*reviewRequests*curl -X PUT 'https://api.devhelp.pk/storefront/v1/account/preferences' \ -H 'Content-Type: application/json' \ -d '{}'{ "email": { "address": "string", "marketing": "never" }, "whatsapp": { "available": true, "phone": "string", "transactional": "none", "marketing": "never" }, "sms": { "available": true, "phone": "string", "marketing": "never" }, "reviewRequests": { "optedOut": true }}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/account/back-in-stock'{ "items": [ { "id": "string", "productId": "string", "productTitle": "string", "productHandle": "string", "variantId": "string", "variantTitle": "string", "createdAt": "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
unsubscribed*unknowncurl -X DELETE 'https://api.devhelp.pk/storefront/v1/account/back-in-stock/string'{ "unsubscribed": true}publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
limit?number24cursor?stringOK
application/json- response
items*array<>nextCursor*string|nullcurl -X GET 'https://api.devhelp.pk/storefront/v1/account/orders'{ "items": [ { "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", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffName": "string", "status": "held", "quantity": 0, "checkCode": "string", "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", "shipments": [ { "id": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "lines": [ { "orderLineItemId": "string", "quantity": 0 } ] } ], "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" } } ], "nextCursor": "string"}publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
orderId*stringOK
application/json- response
id*stringorderNumber*numberinvoiceNumber*number|nullstatus*string"pending""confirmed""cancelled"paymentMethod*string"cod""test""safepay""stripe""alfalah""in_person""venue"paymentStatus*string"pending""collected""cancelled""partially_collected""partially_refunded""refunded"fulfillmentStatus*string"unfulfilled""partially_fulfilled""fulfilled"source*string"storefront""admin""pos"fulfilmentMethod*string"ship""in_person"email*string|nullphone*stringshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullshipments*array<>confirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullallowedActions*curl -X GET 'https://api.devhelp.pk/storefront/v1/account/orders/string'{ "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", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffName": "string", "status": "held", "quantity": 0, "checkCode": "string", "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", "shipments": [ { "id": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "lines": [ { "orderLineItemId": "string", "quantity": 0 } ] } ], "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" }, "allowedActions": { "canConfirmCod": true, "canEditDelivery": true, "canChangeCityProvince": true, "canEditNote": true, "canCancel": true, "canSwapVariant": true, "canEditItems": true, "canReorder": true, "deliveryEditUntil": "2019-08-24T14:15:22Z", "cancelUntil": "2019-08-24T14:15:22Z", "itemEditUntil": "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.
orderId*stringbookingId*stringOK
application/json- response
id*stringorderNumber*numberinvoiceNumber*number|nullstatus*string"pending""confirmed""cancelled"paymentMethod*string"cod""test""safepay""stripe""alfalah""in_person""venue"paymentStatus*string"pending""collected""cancelled""partially_collected""partially_refunded""refunded"fulfillmentStatus*string"unfulfilled""partially_fulfilled""fulfilled"source*string"storefront""admin""pos"fulfilmentMethod*string"ship""in_person"email*string|nullphone*stringshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullshipments*array<>confirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullallowedActions*curl -X POST 'https://api.devhelp.pk/storefront/v1/account/orders/string/bookings/string/cancel'{ "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", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffName": "string", "status": "held", "quantity": 0, "checkCode": "string", "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", "shipments": [ { "id": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "lines": [ { "orderLineItemId": "string", "quantity": 0 } ] } ], "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" }, "allowedActions": { "canConfirmCod": true, "canEditDelivery": true, "canChangeCityProvince": true, "canEditNote": true, "canCancel": true, "canSwapVariant": true, "canEditItems": true, "canReorder": true, "deliveryEditUntil": "2019-08-24T14:15:22Z", "cancelUntil": "2019-08-24T14:15:22Z", "itemEditUntil": "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.
orderId*stringbookingId*stringapplication/json- body
startsAt*stringdate-timeOK
application/json- response
id*stringorderNumber*numberinvoiceNumber*number|nullstatus*string"pending""confirmed""cancelled"paymentMethod*string"cod""test""safepay""stripe""alfalah""in_person""venue"paymentStatus*string"pending""collected""cancelled""partially_collected""partially_refunded""refunded"fulfillmentStatus*string"unfulfilled""partially_fulfilled""fulfilled"source*string"storefront""admin""pos"fulfilmentMethod*string"ship""in_person"email*string|nullphone*stringshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullshipments*array<>confirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullallowedActions*curl -X POST 'https://api.devhelp.pk/storefront/v1/account/orders/string/bookings/string/reschedule' \ -H 'Content-Type: application/json' \ -d '{ "startsAt": "2019-08-24T14:15:22Z"}'{ "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", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffName": "string", "status": "held", "quantity": 0, "checkCode": "string", "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", "shipments": [ { "id": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "lines": [ { "orderLineItemId": "string", "quantity": 0 } ] } ], "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" }, "allowedActions": { "canConfirmCod": true, "canEditDelivery": true, "canChangeCityProvince": true, "canEditNote": true, "canCancel": true, "canSwapVariant": true, "canEditItems": true, "canReorder": true, "deliveryEditUntil": "2019-08-24T14:15:22Z", "cancelUntil": "2019-08-24T14:15:22Z", "itemEditUntil": "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.
orderId*stringOK
application/json- response
id*stringorderNumber*numberinvoiceNumber*number|nullstatus*string"pending""confirmed""cancelled"paymentMethod*string"cod""test""safepay""stripe""alfalah""in_person""venue"paymentStatus*string"pending""collected""cancelled""partially_collected""partially_refunded""refunded"fulfillmentStatus*string"unfulfilled""partially_fulfilled""fulfilled"source*string"storefront""admin""pos"fulfilmentMethod*string"ship""in_person"email*string|nullphone*stringshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullshipments*array<>confirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullallowedActions*curl -X POST 'https://api.devhelp.pk/storefront/v1/account/orders/string/confirm'{ "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", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffName": "string", "status": "held", "quantity": 0, "checkCode": "string", "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", "shipments": [ { "id": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "lines": [ { "orderLineItemId": "string", "quantity": 0 } ] } ], "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" }, "allowedActions": { "canConfirmCod": true, "canEditDelivery": true, "canChangeCityProvince": true, "canEditNote": true, "canCancel": true, "canSwapVariant": true, "canEditItems": true, "canReorder": true, "deliveryEditUntil": "2019-08-24T14:15:22Z", "cancelUntil": "2019-08-24T14:15:22Z", "itemEditUntil": "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.
orderId*stringapplication/json- body
phone*stringrecipientName*stringrecipientPhone*stringline1*stringline2?string|nullcity*stringprovince?string""postalCode?string""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"landmark?string|nullOK
application/json- response
id*stringorderNumber*numberinvoiceNumber*number|nullstatus*string"pending""confirmed""cancelled"paymentMethod*string"cod""test""safepay""stripe""alfalah""in_person""venue"paymentStatus*string"pending""collected""cancelled""partially_collected""partially_refunded""refunded"fulfillmentStatus*string"unfulfilled""partially_fulfilled""fulfilled"source*string"storefront""admin""pos"fulfilmentMethod*string"ship""in_person"email*string|nullphone*stringshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullshipments*array<>confirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullallowedActions*curl -X PATCH 'https://api.devhelp.pk/storefront/v1/account/orders/string/delivery' \ -H 'Content-Type: application/json' \ -d '{ "phone": "string", "recipientName": "string", "recipientPhone": "string", "line1": "string", "city": "string"}'{ "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", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffName": "string", "status": "held", "quantity": 0, "checkCode": "string", "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", "shipments": [ { "id": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "lines": [ { "orderLineItemId": "string", "quantity": 0 } ] } ], "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" }, "allowedActions": { "canConfirmCod": true, "canEditDelivery": true, "canChangeCityProvince": true, "canEditNote": true, "canCancel": true, "canSwapVariant": true, "canEditItems": true, "canReorder": true, "deliveryEditUntil": "2019-08-24T14:15:22Z", "cancelUntil": "2019-08-24T14:15:22Z", "itemEditUntil": "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.
orderId*stringapplication/json- body
note*string|nullOK
application/json- response
id*stringorderNumber*numberinvoiceNumber*number|nullstatus*string"pending""confirmed""cancelled"paymentMethod*string"cod""test""safepay""stripe""alfalah""in_person""venue"paymentStatus*string"pending""collected""cancelled""partially_collected""partially_refunded""refunded"fulfillmentStatus*string"unfulfilled""partially_fulfilled""fulfilled"source*string"storefront""admin""pos"fulfilmentMethod*string"ship""in_person"email*string|nullphone*stringshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullshipments*array<>confirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullallowedActions*curl -X PATCH 'https://api.devhelp.pk/storefront/v1/account/orders/string/note' \ -H 'Content-Type: application/json' \ -d '{ "note": "string"}'{ "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", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffName": "string", "status": "held", "quantity": 0, "checkCode": "string", "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", "shipments": [ { "id": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "lines": [ { "orderLineItemId": "string", "quantity": 0 } ] } ], "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" }, "allowedActions": { "canConfirmCod": true, "canEditDelivery": true, "canChangeCityProvince": true, "canEditNote": true, "canCancel": true, "canSwapVariant": true, "canEditItems": true, "canReorder": true, "deliveryEditUntil": "2019-08-24T14:15:22Z", "cancelUntil": "2019-08-24T14:15:22Z", "itemEditUntil": "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.
orderId*stringapplication/json- body
reason?stringOK
application/json- response
id*stringorderNumber*numberinvoiceNumber*number|nullstatus*string"pending""confirmed""cancelled"paymentMethod*string"cod""test""safepay""stripe""alfalah""in_person""venue"paymentStatus*string"pending""collected""cancelled""partially_collected""partially_refunded""refunded"fulfillmentStatus*string"unfulfilled""partially_fulfilled""fulfilled"source*string"storefront""admin""pos"fulfilmentMethod*string"ship""in_person"email*string|nullphone*stringshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullshipments*array<>confirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullallowedActions*curl -X POST 'https://api.devhelp.pk/storefront/v1/account/orders/string/cancel' \ -H 'Content-Type: application/json' \ -d '{}'{ "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", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffName": "string", "status": "held", "quantity": 0, "checkCode": "string", "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", "shipments": [ { "id": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "lines": [ { "orderLineItemId": "string", "quantity": 0 } ] } ], "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" }, "allowedActions": { "canConfirmCod": true, "canEditDelivery": true, "canChangeCityProvince": true, "canEditNote": true, "canCancel": true, "canSwapVariant": true, "canEditItems": true, "canReorder": true, "deliveryEditUntil": "2019-08-24T14:15:22Z", "cancelUntil": "2019-08-24T14:15:22Z", "itemEditUntil": "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.
orderId*stringOK
application/json- response
cartId*stringtoken*stringaddedCount*numberunavailable*array<string>curl -X POST 'https://api.devhelp.pk/storefront/v1/account/orders/string/reorder'{ "cartId": "string", "token": "string", "addedCount": 0, "unavailable": [ "string" ]}publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
orderId*stringlineId*stringOK
application/json- response
items*array<>curl -X GET 'https://api.devhelp.pk/storefront/v1/account/orders/string/lines/string/swap-options'{ "items": [ { "variantId": "string", "title": "string", "sku": "string", "pricePaisa": 0, "available": true } ]}publishableKeyx-api-key<token>Storefront publishable API key (dh_pk_live_…). Safe for browser requests from allowed origins. Also accepted as Authorization: Bearer.
orderId*stringlineId*stringapplication/json- body
newVariantId*stringOK
application/json- response
id*stringorderNumber*numberinvoiceNumber*number|nullstatus*string"pending""confirmed""cancelled"paymentMethod*string"cod""test""safepay""stripe""alfalah""in_person""venue"paymentStatus*string"pending""collected""cancelled""partially_collected""partially_refunded""refunded"fulfillmentStatus*string"unfulfilled""partially_fulfilled""fulfilled"source*string"storefront""admin""pos"fulfilmentMethod*string"ship""in_person"email*string|nullphone*stringshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullshipments*array<>confirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullallowedActions*curl -X POST 'https://api.devhelp.pk/storefront/v1/account/orders/string/lines/string/swap-variant' \ -H 'Content-Type: application/json' \ -d '{ "newVariantId": "string"}'{ "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", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffName": "string", "status": "held", "quantity": 0, "checkCode": "string", "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", "shipments": [ { "id": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "lines": [ { "orderLineItemId": "string", "quantity": 0 } ] } ], "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" }, "allowedActions": { "canConfirmCod": true, "canEditDelivery": true, "canChangeCityProvince": true, "canEditNote": true, "canCancel": true, "canSwapVariant": true, "canEditItems": true, "canReorder": true, "deliveryEditUntil": "2019-08-24T14:15:22Z", "cancelUntil": "2019-08-24T14:15:22Z", "itemEditUntil": "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.
orderId*stringapplication/json- body
lines*array<>OK
application/json- response
id*stringorderNumber*numberinvoiceNumber*number|nullstatus*string"pending""confirmed""cancelled"paymentMethod*string"cod""test""safepay""stripe""alfalah""in_person""venue"paymentStatus*string"pending""collected""cancelled""partially_collected""partially_refunded""refunded"fulfillmentStatus*string"unfulfilled""partially_fulfilled""fulfilled"source*string"storefront""admin""pos"fulfilmentMethod*string"ship""in_person"email*string|nullphone*stringshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullshipments*array<>confirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullallowedActions*curl -X POST 'https://api.devhelp.pk/storefront/v1/account/orders/string/edit-items' \ -H 'Content-Type: application/json' \ -d '{ "lines": [ { "variantId": "string", "quantity": 0 } ]}'{ "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", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffName": "string", "status": "held", "quantity": 0, "checkCode": "string", "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", "shipments": [ { "id": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "lines": [ { "orderLineItemId": "string", "quantity": 0 } ] } ], "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" }, "allowedActions": { "canConfirmCod": true, "canEditDelivery": true, "canChangeCityProvince": true, "canEditNote": true, "canCancel": true, "canSwapVariant": true, "canEditItems": true, "canReorder": true, "deliveryEditUntil": "2019-08-24T14:15:22Z", "cancelUntil": "2019-08-24T14:15:22Z", "itemEditUntil": "2019-08-24T14:15:22Z" }}