Storefront — Orders
Look up shopper orders and complete online payment handoffs.
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
token*stringOK
application/json- response
confirmed*unknowncurl -X POST 'https://api.devhelp.pk/storefront/v1/orders/string/confirm' \ -H 'Content-Type: application/json' \ -d '{ "token": "string"}'{ "confirmed": 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*stringtoken*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*|nullcanRequestReceipt?booleanreceiptTo*string|nullstatusToken*string|nullcurl -X GET 'https://api.devhelp.pk/storefront/v1/orders/string?token=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" }, "canRequestReceipt": true, "receiptTo": "string", "statusToken": "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*stringapplication/json- body
token*stringemail*stringOK
application/json- response
queued*unknowncurl -X POST 'https://api.devhelp.pk/storefront/v1/orders/string/receipt' \ -H 'Content-Type: application/json' \ -d '{ "token": "string", "email": "string"}'{ "queued": 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*stringbookingId*stringapplication/json- body
token*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*|nullcanRequestReceipt?booleanreceiptTo*string|nullstatusToken*string|nullcurl -X POST 'https://api.devhelp.pk/storefront/v1/orders/string/bookings/string/cancel' \ -H 'Content-Type: application/json' \ -d '{ "token": "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" }, "canRequestReceipt": true, "receiptTo": "string", "statusToken": "string"}The new start must be free online now; the same person is kept when one was asked for.
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
token*stringstartsAt*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*|nullcanRequestReceipt?booleanreceiptTo*string|nullstatusToken*string|nullcurl -X POST 'https://api.devhelp.pk/storefront/v1/orders/string/bookings/string/reschedule' \ -H 'Content-Type: application/json' \ -d '{ "token": "string", "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" }, "canRequestReceipt": true, "receiptTo": "string", "statusToken": "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*stringapplication/json- body
token*stringOK
application/json- response
method*string"cod""test""safepay""stripe""alfalah""in_person""venue"state*string"not_required""awaiting""paid""failed""expired""refunded"testMode*booleandueAt*|nullcanRetry*booleancanSwitchToCod*booleancodTotalPaisa*number|nulldepositPaisa*numberadvance*|nullcurl -X POST 'https://api.devhelp.pk/storefront/v1/orders/string/payment/status' \ -H 'Content-Type: application/json' \ -d '{ "token": "string"}'{ "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 }}Requires an Idempotency-Key header. Refused once the order is paid, cancelled or past its payment deadline.
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
token*stringOK
application/json- response
kind*unknowncurl -X POST 'https://api.devhelp.pk/storefront/v1/orders/string/payment/retry' \ -H 'Content-Type: application/json' \ -d '{ "token": "string"}'{ "kind": "placed"}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
token*stringexpectedTotalPaisa*numberOK
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*|nullcurl -X POST 'https://api.devhelp.pk/storefront/v1/orders/string/payment/switch-to-cod' \ -H 'Content-Type: application/json' \ -d '{ "token": "string", "expectedTotalPaisa": 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" }}