Admin — Fulfillments & Shipping
Fulfillments, courier handovers, delivery problems, claims, shipping zones, and COD remittances.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
limit?number24cursor?stringtype?string"own_delivery""offline_courier"q?stringOK
application/json- response
items*array<>nextCursor*string|nullcurl -X GET 'https://api.devhelp.pk/admin/v1/delivery-services'{ "items": [ { "name": "string", "type": "own_delivery", "phone": "string", "website": "string", "instructions": "string", "id": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "string"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
name*stringtype*string"own_delivery""offline_courier"phone*string|nullwebsite*string|nullinstructions*string|nullOK
application/json- response
name*stringtype*string"own_delivery""offline_courier"phone*string|nullwebsite*string|nullinstructions*string|nullid*stringcreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X POST 'https://api.devhelp.pk/admin/v1/delivery-services' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "type": "own_delivery", "phone": "string", "website": "string", "instructions": "string"}'{ "name": "string", "type": "own_delivery", "phone": "string", "website": "string", "instructions": "string", "id": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Every active delivery service's id, name and instructions, alphabetical. Bounded at 500.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
items*array<>curl -X GET 'https://api.devhelp.pk/admin/v1/delivery-services/choices'{ "items": [ { "id": "string", "name": "string", "instructions": "string" } ]}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
name*stringtype*string"own_delivery""offline_courier"phone*string|nullwebsite*string|nullinstructions*string|nullid*stringcreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X GET 'https://api.devhelp.pk/admin/v1/delivery-services/string'{ "name": "string", "type": "own_delivery", "phone": "string", "website": "string", "instructions": "string", "id": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
updated*unknowncurl -X DELETE 'https://api.devhelp.pk/admin/v1/delivery-services/string'{ "updated": true}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
name*stringtype*string"own_delivery""offline_courier"phone*string|nullwebsite*string|nullinstructions*string|nullOK
application/json- response
name*stringtype*string"own_delivery""offline_courier"phone*string|nullwebsite*string|nullinstructions*string|nullid*stringcreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X PUT 'https://api.devhelp.pk/admin/v1/delivery-services/string' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "type": "own_delivery", "phone": "string", "website": "string", "instructions": "string"}'{ "name": "string", "type": "own_delivery", "phone": "string", "website": "string", "instructions": "string", "id": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
[index: integer]?curl -X GET 'https://api.devhelp.pk/admin/v1/courier-payments/ledger/balances'[ { "courierName": "string", "owedPaisa": 0, "underClaimPaisa": 0, "settledPaisa": 0, "shortPaisa": 0, "payments": [ { "id": "string", "remainingPaisa": 0, "underClaimPaisa": 0 } ] }]secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
courierName*stringfulfillmentId?stringfrom?stringto?stringOK
application/json- response
openingPaisa*numberclosingPaisa*numberentries*array<>curl -X GET 'https://api.devhelp.pk/admin/v1/courier-payments/ledger/statement?courierName=string'{ "openingPaisa": 0, "closingPaisa": 0, "entries": [ { "id": "string", "courierName": "string", "kind": "string", "fulfillmentId": "string", "remittanceId": "string", "claimId": "string", "duePaisa": 0, "receivedPaisa": 0, "claimedPaisa": 0, "writtenOffPaisa": 0, "note": "string", "createdAt": "2019-08-24T14:15:22Z", "orderId": "string", "orderNumber": 0, "trackingNumber": "string", "handoverId": "string", "runningBalancePaisa": 0 } ]}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
couriers*array<>unpaidAfterDays*numbercurl -X GET 'https://api.devhelp.pk/admin/v1/courier-payments/awaiting/summary'{ "couriers": [ { "courierName": "string", "parcels": 0, "cashPaisa": 0, "overdueParcels": 0, "overdueCashPaisa": 0 } ], "unpaidAfterDays": 0}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
limit?number24cursor?stringcourierName?stringoverdue?booleanq?stringOK
application/json- response
items*array<>nextCursor*string|nullcurl -X GET 'https://api.devhelp.pk/admin/v1/courier-payments/awaiting'{ "items": [ { "id": "string", "courierName": "string", "deliveryServiceId": "string", "trackingNumber": "string", "cashPaisa": 0, "deliveredAt": "2019-08-24T14:15:22Z", "overdue": true, "order": { "id": "string", "orderNumber": 0, "recipientName": "string", "city": "string", "province": "string" } } ], "nextCursor": "string"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
limit?number24cursor?stringOK
application/json- response
items*array<>nextCursor*string|nullcurl -X GET 'https://api.devhelp.pk/admin/v1/courier-payments'{ "items": [ { "id": "string", "courierName": "string", "deliveryServiceId": "string", "receivedOn": "string", "reference": "string", "amountPaisa": 0, "deductions": [ { "kind": "delivery_charges", "label": "string", "amountPaisa": 0 } ], "parcelCount": 0, "parcelsCashPaisa": 0, "differencePaisa": 0, "claims": [ { "id": "string", "kind": "lost", "claimedPaisa": 0, "claimBy": "2019-08-24T14:15:22Z", "status": "open", "paidPaisa": 0, "note": "string", "resolvedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ], "note": "string", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "string"}Lists the delivered parcels it covers, each settled once; a parcel already covered, not delivered, collecting nothing or carried by the store's own delivery service is refused. Requires an Idempotency-Key header.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
deliveryServiceId?string|nullcourierName*stringreceivedOn*stringreference?stringamountPaisa*numberdeductions?array<>[]parcelIds*array<string>note?stringOK
application/json- response
id*stringcourierName*stringdeliveryServiceId*string|nullreceivedOn*stringreference*string|nullamountPaisa*numberdeductions*array<>parcelCount*numberparcelsCashPaisa*numberdifferencePaisa*numberclaims*array<>note*string|nullactorType*string"customer""staff""api_key""system"createdAt*stringdate-timeparcels*array<>curl -X POST 'https://api.devhelp.pk/admin/v1/courier-payments' \ -H 'Content-Type: application/json' \ -d '{ "courierName": "string", "receivedOn": "string", "amountPaisa": 0, "parcelIds": [ "string" ]}'{ "id": "string", "courierName": "string", "deliveryServiceId": "string", "receivedOn": "string", "reference": "string", "amountPaisa": 0, "deductions": [ { "kind": "delivery_charges", "label": "string", "amountPaisa": 0 } ], "parcelCount": 0, "parcelsCashPaisa": 0, "differencePaisa": 0, "claims": [ { "id": "string", "kind": "lost", "claimedPaisa": 0, "claimBy": "2019-08-24T14:15:22Z", "status": "open", "paidPaisa": 0, "note": "string", "resolvedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ], "note": "string", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z", "parcels": [ { "id": "string", "trackingNumber": "string", "cashPaisa": 0, "order": { "id": "string", "orderNumber": 0 } } ]}Retires the payment; its parcels wait for a courier payment again. Order money is unchanged.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringcurl -X POST 'https://api.devhelp.pk/admin/v1/courier-payments/string/void'{ "id": "string"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringcourierName*stringdeliveryServiceId*string|nullreceivedOn*stringreference*string|nullamountPaisa*numberdeductions*array<>parcelCount*numberparcelsCashPaisa*numberdifferencePaisa*numberclaims*array<>note*string|nullactorType*string"customer""staff""api_key""system"createdAt*stringdate-timeparcels*array<>curl -X GET 'https://api.devhelp.pk/admin/v1/courier-payments/string'{ "id": "string", "courierName": "string", "deliveryServiceId": "string", "receivedOn": "string", "reference": "string", "amountPaisa": 0, "deductions": [ { "kind": "delivery_charges", "label": "string", "amountPaisa": 0 } ], "parcelCount": 0, "parcelsCashPaisa": 0, "differencePaisa": 0, "claims": [ { "id": "string", "kind": "lost", "claimedPaisa": 0, "claimBy": "2019-08-24T14:15:22Z", "status": "open", "paidPaisa": 0, "note": "string", "resolvedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ], "note": "string", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z", "parcels": [ { "id": "string", "trackingNumber": "string", "cashPaisa": 0, "order": { "id": "string", "orderNumber": 0 } } ]}Commits the parcel's reservations and takes its units off the shelf. A courier name is required.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
deliveryServiceId?string|nulltrackingUrl?string|nullcourierName?stringtrackingNumber?stringcodAmountPaisa?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*string|nullshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullconfirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullcustomerId*string|nullrisk*|nullcollectedPaisa*numberrefundedPaisa*numberfulfillments*array<>returns*array<>cashRefunds*array<>events*array<>payments*array<>cancelReasonCode*|nullexchangeOfOrderId*string|nullconfirmation*inStore*|nullcurl -X POST 'https://api.devhelp.pk/admin/v1/fulfillments/string/dispatch' \ -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", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0, "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", "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" }, "customerId": "string", "risk": { "orderCount": 0, "deliveredCount": 0, "rtoCount": 0, "cancelledCount": 0, "returnedCount": 0, "rtoRate": 0 }, "collectedPaisa": 0, "refundedPaisa": 0, "fulfillments": [ { "id": "string", "deliveryServiceId": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "handoverId": "string", "codAmountPaisa": 0, "collectedPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restockedQuantity": 0, "damagedQuantity": 0 } ], "packedAt": "2019-08-24T14:15:22Z", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "rtoAt": "2019-08-24T14:15:22Z", "receivedAt": "2019-08-24T14:15:22Z", "cancelledAt": "2019-08-24T14:15:22Z", "lostAt": "2019-08-24T14:15:22Z", "replaced": true, "attempts": [ { "id": "string", "number": 0, "reason": "buyer_unavailable", "note": "string", "respondBy": "2019-08-24T14:15:22Z", "instruction": "retry", "instructedAt": "2019-08-24T14:15:22Z", "retryPhone": "string", "retryAddressLine": "string", "retryLandmark": "string", "disputed": true, "disputeNote": "string", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "claims": [ { "id": "string", "kind": "lost", "claimedPaisa": 0, "claimBy": "2019-08-24T14:15:22Z", "status": "open", "paidPaisa": 0, "note": "string", "resolvedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ] } ], "returns": [ { "exchangeOrderId": "string", "id": "string", "reason": "string", "refundPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restock": true } ], "atRegister": { "locationId": "string", "registerId": "string", "receiptNumber": "string", "refunds": [ { "kind": "cash", "name": "string", "amountPaisa": 0, "reference": "string" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }, "createdAt": "2019-08-24T14:15:22Z" } ], "cashRefunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "events": [ { "id": "string", "type": "placed", "fromStatus": "pending", "toStatus": "pending", "actorType": "customer", "actorId": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "payments": [ { "id": "string", "provider": "cod", "providerLabel": "string", "mode": "test", "providerRef": "string", "status": "created", "amountPaisa": 0, "capturedPaisa": 0, "refundedPaisa": 0, "currency": "string", "expiresAt": "2019-08-24T14:15:22Z", "failureMessage": "string", "cardBrand": "string", "cardLast4": "string", "refundRequired": true, "refunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "status": "pending", "failureMessage": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "cancelReasonCode": "buyer_cancelled", "exchangeOfOrderId": "string", "confirmation": { "hold": { "reason": "advance_payment", "note": "string", "heldAt": "2019-08-24T14:15:22Z" }, "contacts": [ { "id": "string", "channel": "call", "outcome": "confirmed", "note": "string", "followUpAt": "2019-08-24T14:15:22Z", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "attempts": 0, "unanswered": 0, "lastOutcome": "confirmed", "lastContactAt": "2019-08-24T14:15:22Z", "followUpAt": "2019-08-24T14:15:22Z", "risk": { "tier": "low", "reasons": [ { "code": "past_rto", "count": 0, "rate": 0 } ], "network": { "level": "caution", "reason": "flagged_by_devhelp" }, "deliveredHere": true, "suggestedAdvancePaisa": 0 }, "report": { "id": "string", "reason": "fake_order", "note": "string", "reportedAt": "2019-08-24T14:15:22Z" } }, "inStore": { "locationId": "string", "locationName": "string", "registerId": "string", "registerName": "string", "receiptNumber": "string", "cashRoundingPaisa": 0, "payments": [ { "id": "string", "kind": "cash", "name": "string", "amountPaisa": 0, "tenderedPaisa": 0, "changePaisa": 0, "reference": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
collectedPaisa?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*string|nullshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullconfirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullcustomerId*string|nullrisk*|nullcollectedPaisa*numberrefundedPaisa*numberfulfillments*array<>returns*array<>cashRefunds*array<>events*array<>payments*array<>cancelReasonCode*|nullexchangeOfOrderId*string|nullconfirmation*inStore*|nullcurl -X POST 'https://api.devhelp.pk/admin/v1/fulfillments/string/deliver' \ -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", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0, "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", "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" }, "customerId": "string", "risk": { "orderCount": 0, "deliveredCount": 0, "rtoCount": 0, "cancelledCount": 0, "returnedCount": 0, "rtoRate": 0 }, "collectedPaisa": 0, "refundedPaisa": 0, "fulfillments": [ { "id": "string", "deliveryServiceId": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "handoverId": "string", "codAmountPaisa": 0, "collectedPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restockedQuantity": 0, "damagedQuantity": 0 } ], "packedAt": "2019-08-24T14:15:22Z", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "rtoAt": "2019-08-24T14:15:22Z", "receivedAt": "2019-08-24T14:15:22Z", "cancelledAt": "2019-08-24T14:15:22Z", "lostAt": "2019-08-24T14:15:22Z", "replaced": true, "attempts": [ { "id": "string", "number": 0, "reason": "buyer_unavailable", "note": "string", "respondBy": "2019-08-24T14:15:22Z", "instruction": "retry", "instructedAt": "2019-08-24T14:15:22Z", "retryPhone": "string", "retryAddressLine": "string", "retryLandmark": "string", "disputed": true, "disputeNote": "string", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "claims": [ { "id": "string", "kind": "lost", "claimedPaisa": 0, "claimBy": "2019-08-24T14:15:22Z", "status": "open", "paidPaisa": 0, "note": "string", "resolvedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ] } ], "returns": [ { "exchangeOrderId": "string", "id": "string", "reason": "string", "refundPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restock": true } ], "atRegister": { "locationId": "string", "registerId": "string", "receiptNumber": "string", "refunds": [ { "kind": "cash", "name": "string", "amountPaisa": 0, "reference": "string" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }, "createdAt": "2019-08-24T14:15:22Z" } ], "cashRefunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "events": [ { "id": "string", "type": "placed", "fromStatus": "pending", "toStatus": "pending", "actorType": "customer", "actorId": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "payments": [ { "id": "string", "provider": "cod", "providerLabel": "string", "mode": "test", "providerRef": "string", "status": "created", "amountPaisa": 0, "capturedPaisa": 0, "refundedPaisa": 0, "currency": "string", "expiresAt": "2019-08-24T14:15:22Z", "failureMessage": "string", "cardBrand": "string", "cardLast4": "string", "refundRequired": true, "refunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "status": "pending", "failureMessage": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "cancelReasonCode": "buyer_cancelled", "exchangeOfOrderId": "string", "confirmation": { "hold": { "reason": "advance_payment", "note": "string", "heldAt": "2019-08-24T14:15:22Z" }, "contacts": [ { "id": "string", "channel": "call", "outcome": "confirmed", "note": "string", "followUpAt": "2019-08-24T14:15:22Z", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "attempts": 0, "unanswered": 0, "lastOutcome": "confirmed", "lastContactAt": "2019-08-24T14:15:22Z", "followUpAt": "2019-08-24T14:15:22Z", "risk": { "tier": "low", "reasons": [ { "code": "past_rto", "count": 0, "rate": 0 } ], "network": { "level": "caution", "reason": "flagged_by_devhelp" }, "deliveredHere": true, "suggestedAdvancePaisa": 0 }, "report": { "id": "string", "reason": "fake_order", "note": "string", "reportedAt": "2019-08-24T14:15:22Z" } }, "inStore": { "locationId": "string", "locationName": "string", "registerId": "string", "registerName": "string", "receiptNumber": "string", "cashRoundingPaisa": 0, "payments": [ { "id": "string", "kind": "cash", "name": "string", "amountPaisa": 0, "tenderedPaisa": 0, "changePaisa": 0, "reference": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }}Return to origin. Nothing is restocked yet: receive the parcel to decide what goes back on the shelf. Counts against the customer's RTO record.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*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*string|nullshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullconfirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullcustomerId*string|nullrisk*|nullcollectedPaisa*numberrefundedPaisa*numberfulfillments*array<>returns*array<>cashRefunds*array<>events*array<>payments*array<>cancelReasonCode*|nullexchangeOfOrderId*string|nullconfirmation*inStore*|nullcurl -X POST 'https://api.devhelp.pk/admin/v1/fulfillments/string/rto' \ -H 'Content-Type: application/json' \ -d '{ "reason": "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", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0, "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", "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" }, "customerId": "string", "risk": { "orderCount": 0, "deliveredCount": 0, "rtoCount": 0, "cancelledCount": 0, "returnedCount": 0, "rtoRate": 0 }, "collectedPaisa": 0, "refundedPaisa": 0, "fulfillments": [ { "id": "string", "deliveryServiceId": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "handoverId": "string", "codAmountPaisa": 0, "collectedPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restockedQuantity": 0, "damagedQuantity": 0 } ], "packedAt": "2019-08-24T14:15:22Z", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "rtoAt": "2019-08-24T14:15:22Z", "receivedAt": "2019-08-24T14:15:22Z", "cancelledAt": "2019-08-24T14:15:22Z", "lostAt": "2019-08-24T14:15:22Z", "replaced": true, "attempts": [ { "id": "string", "number": 0, "reason": "buyer_unavailable", "note": "string", "respondBy": "2019-08-24T14:15:22Z", "instruction": "retry", "instructedAt": "2019-08-24T14:15:22Z", "retryPhone": "string", "retryAddressLine": "string", "retryLandmark": "string", "disputed": true, "disputeNote": "string", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "claims": [ { "id": "string", "kind": "lost", "claimedPaisa": 0, "claimBy": "2019-08-24T14:15:22Z", "status": "open", "paidPaisa": 0, "note": "string", "resolvedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ] } ], "returns": [ { "exchangeOrderId": "string", "id": "string", "reason": "string", "refundPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restock": true } ], "atRegister": { "locationId": "string", "registerId": "string", "receiptNumber": "string", "refunds": [ { "kind": "cash", "name": "string", "amountPaisa": 0, "reference": "string" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }, "createdAt": "2019-08-24T14:15:22Z" } ], "cashRefunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "events": [ { "id": "string", "type": "placed", "fromStatus": "pending", "toStatus": "pending", "actorType": "customer", "actorId": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "payments": [ { "id": "string", "provider": "cod", "providerLabel": "string", "mode": "test", "providerRef": "string", "status": "created", "amountPaisa": 0, "capturedPaisa": 0, "refundedPaisa": 0, "currency": "string", "expiresAt": "2019-08-24T14:15:22Z", "failureMessage": "string", "cardBrand": "string", "cardLast4": "string", "refundRequired": true, "refunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "status": "pending", "failureMessage": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "cancelReasonCode": "buyer_cancelled", "exchangeOfOrderId": "string", "confirmation": { "hold": { "reason": "advance_payment", "note": "string", "heldAt": "2019-08-24T14:15:22Z" }, "contacts": [ { "id": "string", "channel": "call", "outcome": "confirmed", "note": "string", "followUpAt": "2019-08-24T14:15:22Z", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "attempts": 0, "unanswered": 0, "lastOutcome": "confirmed", "lastContactAt": "2019-08-24T14:15:22Z", "followUpAt": "2019-08-24T14:15:22Z", "risk": { "tier": "low", "reasons": [ { "code": "past_rto", "count": 0, "rate": 0 } ], "network": { "level": "caution", "reason": "flagged_by_devhelp" }, "deliveredHere": true, "suggestedAdvancePaisa": 0 }, "report": { "id": "string", "reason": "fake_order", "note": "string", "reportedAt": "2019-08-24T14:15:22Z" } }, "inStore": { "locationId": "string", "locationName": "string", "registerId": "string", "registerName": "string", "receiptNumber": "string", "cashRoundingPaisa": 0, "payments": [ { "id": "string", "kind": "cash", "name": "string", "amountPaisa": 0, "tenderedPaisa": 0, "changePaisa": 0, "reference": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }}For every line, restocked plus damaged must equal the quantity in the parcel.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*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*string|nullshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullconfirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullcustomerId*string|nullrisk*|nullcollectedPaisa*numberrefundedPaisa*numberfulfillments*array<>returns*array<>cashRefunds*array<>events*array<>payments*array<>cancelReasonCode*|nullexchangeOfOrderId*string|nullconfirmation*inStore*|nullcurl -X POST 'https://api.devhelp.pk/admin/v1/fulfillments/string/receive' \ -H 'Content-Type: application/json' \ -d '{ "lines": [ { "fulfillmentLineId": "string", "restockedQuantity": 0, "damagedQuantity": 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", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0, "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", "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" }, "customerId": "string", "risk": { "orderCount": 0, "deliveredCount": 0, "rtoCount": 0, "cancelledCount": 0, "returnedCount": 0, "rtoRate": 0 }, "collectedPaisa": 0, "refundedPaisa": 0, "fulfillments": [ { "id": "string", "deliveryServiceId": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "handoverId": "string", "codAmountPaisa": 0, "collectedPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restockedQuantity": 0, "damagedQuantity": 0 } ], "packedAt": "2019-08-24T14:15:22Z", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "rtoAt": "2019-08-24T14:15:22Z", "receivedAt": "2019-08-24T14:15:22Z", "cancelledAt": "2019-08-24T14:15:22Z", "lostAt": "2019-08-24T14:15:22Z", "replaced": true, "attempts": [ { "id": "string", "number": 0, "reason": "buyer_unavailable", "note": "string", "respondBy": "2019-08-24T14:15:22Z", "instruction": "retry", "instructedAt": "2019-08-24T14:15:22Z", "retryPhone": "string", "retryAddressLine": "string", "retryLandmark": "string", "disputed": true, "disputeNote": "string", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "claims": [ { "id": "string", "kind": "lost", "claimedPaisa": 0, "claimBy": "2019-08-24T14:15:22Z", "status": "open", "paidPaisa": 0, "note": "string", "resolvedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ] } ], "returns": [ { "exchangeOrderId": "string", "id": "string", "reason": "string", "refundPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restock": true } ], "atRegister": { "locationId": "string", "registerId": "string", "receiptNumber": "string", "refunds": [ { "kind": "cash", "name": "string", "amountPaisa": 0, "reference": "string" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }, "createdAt": "2019-08-24T14:15:22Z" } ], "cashRefunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "events": [ { "id": "string", "type": "placed", "fromStatus": "pending", "toStatus": "pending", "actorType": "customer", "actorId": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "payments": [ { "id": "string", "provider": "cod", "providerLabel": "string", "mode": "test", "providerRef": "string", "status": "created", "amountPaisa": 0, "capturedPaisa": 0, "refundedPaisa": 0, "currency": "string", "expiresAt": "2019-08-24T14:15:22Z", "failureMessage": "string", "cardBrand": "string", "cardLast4": "string", "refundRequired": true, "refunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "status": "pending", "failureMessage": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "cancelReasonCode": "buyer_cancelled", "exchangeOfOrderId": "string", "confirmation": { "hold": { "reason": "advance_payment", "note": "string", "heldAt": "2019-08-24T14:15:22Z" }, "contacts": [ { "id": "string", "channel": "call", "outcome": "confirmed", "note": "string", "followUpAt": "2019-08-24T14:15:22Z", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "attempts": 0, "unanswered": 0, "lastOutcome": "confirmed", "lastContactAt": "2019-08-24T14:15:22Z", "followUpAt": "2019-08-24T14:15:22Z", "risk": { "tier": "low", "reasons": [ { "code": "past_rto", "count": 0, "rate": 0 } ], "network": { "level": "caution", "reason": "flagged_by_devhelp" }, "deliveredHere": true, "suggestedAdvancePaisa": 0 }, "report": { "id": "string", "reason": "fake_order", "note": "string", "reportedAt": "2019-08-24T14:15:22Z" } }, "inStore": { "locationId": "string", "locationName": "string", "registerId": "string", "registerName": "string", "receiptNumber": "string", "cashRoundingPaisa": 0, "payments": [ { "id": "string", "kind": "cash", "name": "string", "amountPaisa": 0, "tenderedPaisa": 0, "changePaisa": 0, "reference": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }}Its lines become available to pack again; stock stays reserved.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
note?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*string|nullshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullconfirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullcustomerId*string|nullrisk*|nullcollectedPaisa*numberrefundedPaisa*numberfulfillments*array<>returns*array<>cashRefunds*array<>events*array<>payments*array<>cancelReasonCode*|nullexchangeOfOrderId*string|nullconfirmation*inStore*|nullcurl -X POST 'https://api.devhelp.pk/admin/v1/fulfillments/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", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0, "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", "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" }, "customerId": "string", "risk": { "orderCount": 0, "deliveredCount": 0, "rtoCount": 0, "cancelledCount": 0, "returnedCount": 0, "rtoRate": 0 }, "collectedPaisa": 0, "refundedPaisa": 0, "fulfillments": [ { "id": "string", "deliveryServiceId": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "handoverId": "string", "codAmountPaisa": 0, "collectedPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restockedQuantity": 0, "damagedQuantity": 0 } ], "packedAt": "2019-08-24T14:15:22Z", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "rtoAt": "2019-08-24T14:15:22Z", "receivedAt": "2019-08-24T14:15:22Z", "cancelledAt": "2019-08-24T14:15:22Z", "lostAt": "2019-08-24T14:15:22Z", "replaced": true, "attempts": [ { "id": "string", "number": 0, "reason": "buyer_unavailable", "note": "string", "respondBy": "2019-08-24T14:15:22Z", "instruction": "retry", "instructedAt": "2019-08-24T14:15:22Z", "retryPhone": "string", "retryAddressLine": "string", "retryLandmark": "string", "disputed": true, "disputeNote": "string", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "claims": [ { "id": "string", "kind": "lost", "claimedPaisa": 0, "claimBy": "2019-08-24T14:15:22Z", "status": "open", "paidPaisa": 0, "note": "string", "resolvedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ] } ], "returns": [ { "exchangeOrderId": "string", "id": "string", "reason": "string", "refundPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restock": true } ], "atRegister": { "locationId": "string", "registerId": "string", "receiptNumber": "string", "refunds": [ { "kind": "cash", "name": "string", "amountPaisa": 0, "reference": "string" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }, "createdAt": "2019-08-24T14:15:22Z" } ], "cashRefunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "events": [ { "id": "string", "type": "placed", "fromStatus": "pending", "toStatus": "pending", "actorType": "customer", "actorId": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "payments": [ { "id": "string", "provider": "cod", "providerLabel": "string", "mode": "test", "providerRef": "string", "status": "created", "amountPaisa": 0, "capturedPaisa": 0, "refundedPaisa": 0, "currency": "string", "expiresAt": "2019-08-24T14:15:22Z", "failureMessage": "string", "cardBrand": "string", "cardLast4": "string", "refundRequired": true, "refunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "status": "pending", "failureMessage": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "cancelReasonCode": "buyer_cancelled", "exchangeOfOrderId": "string", "confirmation": { "hold": { "reason": "advance_payment", "note": "string", "heldAt": "2019-08-24T14:15:22Z" }, "contacts": [ { "id": "string", "channel": "call", "outcome": "confirmed", "note": "string", "followUpAt": "2019-08-24T14:15:22Z", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "attempts": 0, "unanswered": 0, "lastOutcome": "confirmed", "lastContactAt": "2019-08-24T14:15:22Z", "followUpAt": "2019-08-24T14:15:22Z", "risk": { "tier": "low", "reasons": [ { "code": "past_rto", "count": 0, "rate": 0 } ], "network": { "level": "caution", "reason": "flagged_by_devhelp" }, "deliveredHere": true, "suggestedAdvancePaisa": 0 }, "report": { "id": "string", "reason": "fake_order", "note": "string", "reportedAt": "2019-08-24T14:15:22Z" } }, "inStore": { "locationId": "string", "locationName": "string", "registerId": "string", "registerName": "string", "receiptNumber": "string", "cashRoundingPaisa": 0, "payments": [ { "id": "string", "kind": "cash", "name": "string", "amountPaisa": 0, "tenderedPaisa": 0, "changePaisa": 0, "reference": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }}Parcels across orders, oldest first: packed (waiting for a courier), with-courier (dispatched), needs-attention (dispatched with no delivery or return recorded for the store's no-news days) or all.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
limit?number24cursor?stringview?string"packed""packed""with-courier""needs-answer""needs-attention""all"q?stringdeliveryServiceId?stringcourierName?stringpackedFrom?stringpackedTo?stringOK
application/json- response
items*array<>nextCursor*string|nullcurl -X GET 'https://api.devhelp.pk/admin/v1/fulfillments'{ "items": [ { "id": "string", "status": "packed", "courierName": "string", "deliveryServiceId": "string", "trackingNumber": "string", "trackingUrl": "string", "codAmountPaisa": 0, "collectedPaisa": 0, "pieces": 0, "packedAt": "2019-08-24T14:15:22Z", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "handover": { "id": "string", "number": 0 }, "lastAttempt": { "number": 0, "reason": "buyer_unavailable", "respondBy": "2019-08-24T14:15:22Z", "answered": true }, "order": { "id": "string", "orderNumber": 0, "recipientName": "string", "phone": "string", "city": "string", "province": "string", "onHold": true } } ], "nextCursor": "string"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
OK
application/json- response
packed*numberwithCourier*numberneedsAttention*numberneedsAnswer*numbercurl -X GET 'https://api.devhelp.pk/admin/v1/fulfillments/counts'{ "packed": 0, "withCourier": 0, "needsAttention": 0, "needsAnswer": 0}A dispatched parcel only, and only while its last attempt has been answered. The attempt is numbered and waits for an answer (Needs answer).
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
reason*string"buyer_unavailable""refused""address_problem""phone_off""deliver_later""other"note?stringrespondBy?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*string|nullshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullconfirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullcustomerId*string|nullrisk*|nullcollectedPaisa*numberrefundedPaisa*numberfulfillments*array<>returns*array<>cashRefunds*array<>events*array<>payments*array<>cancelReasonCode*|nullexchangeOfOrderId*string|nullconfirmation*inStore*|nullcurl -X POST 'https://api.devhelp.pk/admin/v1/fulfillments/string/attempts' \ -H 'Content-Type: application/json' \ -d '{ "reason": "buyer_unavailable"}'{ "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", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0, "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", "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" }, "customerId": "string", "risk": { "orderCount": 0, "deliveredCount": 0, "rtoCount": 0, "cancelledCount": 0, "returnedCount": 0, "rtoRate": 0 }, "collectedPaisa": 0, "refundedPaisa": 0, "fulfillments": [ { "id": "string", "deliveryServiceId": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "handoverId": "string", "codAmountPaisa": 0, "collectedPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restockedQuantity": 0, "damagedQuantity": 0 } ], "packedAt": "2019-08-24T14:15:22Z", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "rtoAt": "2019-08-24T14:15:22Z", "receivedAt": "2019-08-24T14:15:22Z", "cancelledAt": "2019-08-24T14:15:22Z", "lostAt": "2019-08-24T14:15:22Z", "replaced": true, "attempts": [ { "id": "string", "number": 0, "reason": "buyer_unavailable", "note": "string", "respondBy": "2019-08-24T14:15:22Z", "instruction": "retry", "instructedAt": "2019-08-24T14:15:22Z", "retryPhone": "string", "retryAddressLine": "string", "retryLandmark": "string", "disputed": true, "disputeNote": "string", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "claims": [ { "id": "string", "kind": "lost", "claimedPaisa": 0, "claimBy": "2019-08-24T14:15:22Z", "status": "open", "paidPaisa": 0, "note": "string", "resolvedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ] } ], "returns": [ { "exchangeOrderId": "string", "id": "string", "reason": "string", "refundPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restock": true } ], "atRegister": { "locationId": "string", "registerId": "string", "receiptNumber": "string", "refunds": [ { "kind": "cash", "name": "string", "amountPaisa": 0, "reference": "string" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }, "createdAt": "2019-08-24T14:15:22Z" } ], "cashRefunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "events": [ { "id": "string", "type": "placed", "fromStatus": "pending", "toStatus": "pending", "actorType": "customer", "actorId": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "payments": [ { "id": "string", "provider": "cod", "providerLabel": "string", "mode": "test", "providerRef": "string", "status": "created", "amountPaisa": 0, "capturedPaisa": 0, "refundedPaisa": 0, "currency": "string", "expiresAt": "2019-08-24T14:15:22Z", "failureMessage": "string", "cardBrand": "string", "cardLast4": "string", "refundRequired": true, "refunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "status": "pending", "failureMessage": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "cancelReasonCode": "buyer_cancelled", "exchangeOfOrderId": "string", "confirmation": { "hold": { "reason": "advance_payment", "note": "string", "heldAt": "2019-08-24T14:15:22Z" }, "contacts": [ { "id": "string", "channel": "call", "outcome": "confirmed", "note": "string", "followUpAt": "2019-08-24T14:15:22Z", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "attempts": 0, "unanswered": 0, "lastOutcome": "confirmed", "lastContactAt": "2019-08-24T14:15:22Z", "followUpAt": "2019-08-24T14:15:22Z", "risk": { "tier": "low", "reasons": [ { "code": "past_rto", "count": 0, "rate": 0 } ], "network": { "level": "caution", "reason": "flagged_by_devhelp" }, "deliveredHere": true, "suggestedAdvancePaisa": 0 }, "report": { "id": "string", "reason": "fake_order", "note": "string", "reportedAt": "2019-08-24T14:15:22Z" } }, "inStore": { "locationId": "string", "locationName": "string", "registerId": "string", "registerName": "string", "receiptNumber": "string", "cashRoundingPaisa": 0, "payments": [ { "id": "string", "kind": "cash", "name": "string", "amountPaisa": 0, "tenderedPaisa": 0, "changePaisa": 0, "reference": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }}retry records the instruction to try again, optionally with a new phone, address line or landmark kept on the attempt (the order's address is unchanged). return sends the parcel back through the same path as marking it returning. The merchant passes the instruction to the courier.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
instruction*unknown|unknownphone?stringaddressLine?stringlandmark?stringnote?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*string|nullshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullconfirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullcustomerId*string|nullrisk*|nullcollectedPaisa*numberrefundedPaisa*numberfulfillments*array<>returns*array<>cashRefunds*array<>events*array<>payments*array<>cancelReasonCode*|nullexchangeOfOrderId*string|nullconfirmation*inStore*|nullcurl -X POST 'https://api.devhelp.pk/admin/v1/fulfillments/string/instruction' \ -H 'Content-Type: application/json' \ -d '{ "instruction": "retry"}'{ "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", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0, "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", "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" }, "customerId": "string", "risk": { "orderCount": 0, "deliveredCount": 0, "rtoCount": 0, "cancelledCount": 0, "returnedCount": 0, "rtoRate": 0 }, "collectedPaisa": 0, "refundedPaisa": 0, "fulfillments": [ { "id": "string", "deliveryServiceId": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "handoverId": "string", "codAmountPaisa": 0, "collectedPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restockedQuantity": 0, "damagedQuantity": 0 } ], "packedAt": "2019-08-24T14:15:22Z", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "rtoAt": "2019-08-24T14:15:22Z", "receivedAt": "2019-08-24T14:15:22Z", "cancelledAt": "2019-08-24T14:15:22Z", "lostAt": "2019-08-24T14:15:22Z", "replaced": true, "attempts": [ { "id": "string", "number": 0, "reason": "buyer_unavailable", "note": "string", "respondBy": "2019-08-24T14:15:22Z", "instruction": "retry", "instructedAt": "2019-08-24T14:15:22Z", "retryPhone": "string", "retryAddressLine": "string", "retryLandmark": "string", "disputed": true, "disputeNote": "string", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "claims": [ { "id": "string", "kind": "lost", "claimedPaisa": 0, "claimBy": "2019-08-24T14:15:22Z", "status": "open", "paidPaisa": 0, "note": "string", "resolvedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ] } ], "returns": [ { "exchangeOrderId": "string", "id": "string", "reason": "string", "refundPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restock": true } ], "atRegister": { "locationId": "string", "registerId": "string", "receiptNumber": "string", "refunds": [ { "kind": "cash", "name": "string", "amountPaisa": 0, "reference": "string" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }, "createdAt": "2019-08-24T14:15:22Z" } ], "cashRefunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "events": [ { "id": "string", "type": "placed", "fromStatus": "pending", "toStatus": "pending", "actorType": "customer", "actorId": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "payments": [ { "id": "string", "provider": "cod", "providerLabel": "string", "mode": "test", "providerRef": "string", "status": "created", "amountPaisa": 0, "capturedPaisa": 0, "refundedPaisa": 0, "currency": "string", "expiresAt": "2019-08-24T14:15:22Z", "failureMessage": "string", "cardBrand": "string", "cardLast4": "string", "refundRequired": true, "refunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "status": "pending", "failureMessage": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "cancelReasonCode": "buyer_cancelled", "exchangeOfOrderId": "string", "confirmation": { "hold": { "reason": "advance_payment", "note": "string", "heldAt": "2019-08-24T14:15:22Z" }, "contacts": [ { "id": "string", "channel": "call", "outcome": "confirmed", "note": "string", "followUpAt": "2019-08-24T14:15:22Z", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "attempts": 0, "unanswered": 0, "lastOutcome": "confirmed", "lastContactAt": "2019-08-24T14:15:22Z", "followUpAt": "2019-08-24T14:15:22Z", "risk": { "tier": "low", "reasons": [ { "code": "past_rto", "count": 0, "rate": 0 } ], "network": { "level": "caution", "reason": "flagged_by_devhelp" }, "deliveredHere": true, "suggestedAdvancePaisa": 0 }, "report": { "id": "string", "reason": "fake_order", "note": "string", "reportedAt": "2019-08-24T14:15:22Z" } }, "inStore": { "locationId": "string", "locationName": "string", "registerId": "string", "registerName": "string", "receiptNumber": "string", "cashRoundingPaisa": 0, "payments": [ { "id": "string", "kind": "cash", "name": "string", "amountPaisa": 0, "tenderedPaisa": 0, "changePaisa": 0, "reference": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }}The buyer says nobody came. Kept with a note, for the courier's record.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringnumber*numberapplication/json- body
note*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*string|nullshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullconfirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullcustomerId*string|nullrisk*|nullcollectedPaisa*numberrefundedPaisa*numberfulfillments*array<>returns*array<>cashRefunds*array<>events*array<>payments*array<>cancelReasonCode*|nullexchangeOfOrderId*string|nullconfirmation*inStore*|nullcurl -X POST 'https://api.devhelp.pk/admin/v1/fulfillments/string/attempts/0/dispute' \ -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", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0, "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", "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" }, "customerId": "string", "risk": { "orderCount": 0, "deliveredCount": 0, "rtoCount": 0, "cancelledCount": 0, "returnedCount": 0, "rtoRate": 0 }, "collectedPaisa": 0, "refundedPaisa": 0, "fulfillments": [ { "id": "string", "deliveryServiceId": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "handoverId": "string", "codAmountPaisa": 0, "collectedPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restockedQuantity": 0, "damagedQuantity": 0 } ], "packedAt": "2019-08-24T14:15:22Z", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "rtoAt": "2019-08-24T14:15:22Z", "receivedAt": "2019-08-24T14:15:22Z", "cancelledAt": "2019-08-24T14:15:22Z", "lostAt": "2019-08-24T14:15:22Z", "replaced": true, "attempts": [ { "id": "string", "number": 0, "reason": "buyer_unavailable", "note": "string", "respondBy": "2019-08-24T14:15:22Z", "instruction": "retry", "instructedAt": "2019-08-24T14:15:22Z", "retryPhone": "string", "retryAddressLine": "string", "retryLandmark": "string", "disputed": true, "disputeNote": "string", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "claims": [ { "id": "string", "kind": "lost", "claimedPaisa": 0, "claimBy": "2019-08-24T14:15:22Z", "status": "open", "paidPaisa": 0, "note": "string", "resolvedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ] } ], "returns": [ { "exchangeOrderId": "string", "id": "string", "reason": "string", "refundPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restock": true } ], "atRegister": { "locationId": "string", "registerId": "string", "receiptNumber": "string", "refunds": [ { "kind": "cash", "name": "string", "amountPaisa": 0, "reference": "string" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }, "createdAt": "2019-08-24T14:15:22Z" } ], "cashRefunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "events": [ { "id": "string", "type": "placed", "fromStatus": "pending", "toStatus": "pending", "actorType": "customer", "actorId": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "payments": [ { "id": "string", "provider": "cod", "providerLabel": "string", "mode": "test", "providerRef": "string", "status": "created", "amountPaisa": 0, "capturedPaisa": 0, "refundedPaisa": 0, "currency": "string", "expiresAt": "2019-08-24T14:15:22Z", "failureMessage": "string", "cardBrand": "string", "cardLast4": "string", "refundRequired": true, "refunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "status": "pending", "failureMessage": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "cancelReasonCode": "buyer_cancelled", "exchangeOfOrderId": "string", "confirmation": { "hold": { "reason": "advance_payment", "note": "string", "heldAt": "2019-08-24T14:15:22Z" }, "contacts": [ { "id": "string", "channel": "call", "outcome": "confirmed", "note": "string", "followUpAt": "2019-08-24T14:15:22Z", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "attempts": 0, "unanswered": 0, "lastOutcome": "confirmed", "lastContactAt": "2019-08-24T14:15:22Z", "followUpAt": "2019-08-24T14:15:22Z", "risk": { "tier": "low", "reasons": [ { "code": "past_rto", "count": 0, "rate": 0 } ], "network": { "level": "caution", "reason": "flagged_by_devhelp" }, "deliveredHere": true, "suggestedAdvancePaisa": 0 }, "report": { "id": "string", "reason": "fake_order", "note": "string", "reportedAt": "2019-08-24T14:15:22Z" } }, "inStore": { "locationId": "string", "locationName": "string", "registerId": "string", "registerName": "string", "receiptNumber": "string", "cashRoundingPaisa": 0, "payments": [ { "id": "string", "kind": "cash", "name": "string", "amountPaisa": 0, "tenderedPaisa": 0, "changePaisa": 0, "reference": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }}From dispatched or returning. No cash is collected and nothing is restocked. By default stock is held for a replacement and the parcel's lines can be packed again; refused when there is not enough stock, in which case replace: false records the loss alone.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
note?stringreplace?booleantrueOK
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*string|nullshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullconfirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullcustomerId*string|nullrisk*|nullcollectedPaisa*numberrefundedPaisa*numberfulfillments*array<>returns*array<>cashRefunds*array<>events*array<>payments*array<>cancelReasonCode*|nullexchangeOfOrderId*string|nullconfirmation*inStore*|nullcurl -X POST 'https://api.devhelp.pk/admin/v1/fulfillments/string/lost' \ -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", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0, "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", "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" }, "customerId": "string", "risk": { "orderCount": 0, "deliveredCount": 0, "rtoCount": 0, "cancelledCount": 0, "returnedCount": 0, "rtoRate": 0 }, "collectedPaisa": 0, "refundedPaisa": 0, "fulfillments": [ { "id": "string", "deliveryServiceId": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "handoverId": "string", "codAmountPaisa": 0, "collectedPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restockedQuantity": 0, "damagedQuantity": 0 } ], "packedAt": "2019-08-24T14:15:22Z", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "rtoAt": "2019-08-24T14:15:22Z", "receivedAt": "2019-08-24T14:15:22Z", "cancelledAt": "2019-08-24T14:15:22Z", "lostAt": "2019-08-24T14:15:22Z", "replaced": true, "attempts": [ { "id": "string", "number": 0, "reason": "buyer_unavailable", "note": "string", "respondBy": "2019-08-24T14:15:22Z", "instruction": "retry", "instructedAt": "2019-08-24T14:15:22Z", "retryPhone": "string", "retryAddressLine": "string", "retryLandmark": "string", "disputed": true, "disputeNote": "string", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "claims": [ { "id": "string", "kind": "lost", "claimedPaisa": 0, "claimBy": "2019-08-24T14:15:22Z", "status": "open", "paidPaisa": 0, "note": "string", "resolvedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ] } ], "returns": [ { "exchangeOrderId": "string", "id": "string", "reason": "string", "refundPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restock": true } ], "atRegister": { "locationId": "string", "registerId": "string", "receiptNumber": "string", "refunds": [ { "kind": "cash", "name": "string", "amountPaisa": 0, "reference": "string" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }, "createdAt": "2019-08-24T14:15:22Z" } ], "cashRefunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "events": [ { "id": "string", "type": "placed", "fromStatus": "pending", "toStatus": "pending", "actorType": "customer", "actorId": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "payments": [ { "id": "string", "provider": "cod", "providerLabel": "string", "mode": "test", "providerRef": "string", "status": "created", "amountPaisa": 0, "capturedPaisa": 0, "refundedPaisa": 0, "currency": "string", "expiresAt": "2019-08-24T14:15:22Z", "failureMessage": "string", "cardBrand": "string", "cardLast4": "string", "refundRequired": true, "refunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "status": "pending", "failureMessage": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "cancelReasonCode": "buyer_cancelled", "exchangeOfOrderId": "string", "confirmation": { "hold": { "reason": "advance_payment", "note": "string", "heldAt": "2019-08-24T14:15:22Z" }, "contacts": [ { "id": "string", "channel": "call", "outcome": "confirmed", "note": "string", "followUpAt": "2019-08-24T14:15:22Z", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "attempts": 0, "unanswered": 0, "lastOutcome": "confirmed", "lastContactAt": "2019-08-24T14:15:22Z", "followUpAt": "2019-08-24T14:15:22Z", "risk": { "tier": "low", "reasons": [ { "code": "past_rto", "count": 0, "rate": 0 } ], "network": { "level": "caution", "reason": "flagged_by_devhelp" }, "deliveredHere": true, "suggestedAdvancePaisa": 0 }, "report": { "id": "string", "reason": "fake_order", "note": "string", "reportedAt": "2019-08-24T14:15:22Z" } }, "inStore": { "locationId": "string", "locationName": "string", "registerId": "string", "registerName": "string", "receiptNumber": "string", "cashRoundingPaisa": 0, "payments": [ { "id": "string", "kind": "cash", "name": "string", "amountPaisa": 0, "tenderedPaisa": 0, "changePaisa": 0, "reference": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }}For a lost parcel, or a damaged one that was delivered or came back. A record only: the order's money is unchanged when the claim is paid.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
kind*string"lost""damaged""other"claimedPaisa*numberclaimBy?stringdate-timenote?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*string|nullshippingAddress*|nullbillingAddress*|nullshippingRateName*string|nullshippingMinDays*number|nullshippingMaxDays*number|nulllines*array<>discounts*array<>sales*array<>totals*note*string|nullconfirmedAt*|nullcancelledAt*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timepayment*bookingPolicy*|nullcustomerId*string|nullrisk*|nullcollectedPaisa*numberrefundedPaisa*numberfulfillments*array<>returns*array<>cashRefunds*array<>events*array<>payments*array<>cancelReasonCode*|nullexchangeOfOrderId*string|nullconfirmation*inStore*|nullcurl -X POST 'https://api.devhelp.pk/admin/v1/fulfillments/string/claims' \ -H 'Content-Type: application/json' \ -d '{ "kind": "lost", "claimedPaisa": 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", "orderId": "string", "lineId": "string", "kind": "appointment", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "staffId": "string", "staffName": "string", "staffRequested": true, "resourceIds": [ "string" ], "status": "held", "quantity": 0, "arrivedQuantity": 0, "overbooked": true, "checkCode": "string", "version": 0, "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", "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" }, "customerId": "string", "risk": { "orderCount": 0, "deliveredCount": 0, "rtoCount": 0, "cancelledCount": 0, "returnedCount": 0, "rtoRate": 0 }, "collectedPaisa": 0, "refundedPaisa": 0, "fulfillments": [ { "id": "string", "deliveryServiceId": "string", "trackingUrl": "string", "status": "packed", "courierName": "string", "trackingNumber": "string", "handoverId": "string", "codAmountPaisa": 0, "collectedPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restockedQuantity": 0, "damagedQuantity": 0 } ], "packedAt": "2019-08-24T14:15:22Z", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "rtoAt": "2019-08-24T14:15:22Z", "receivedAt": "2019-08-24T14:15:22Z", "cancelledAt": "2019-08-24T14:15:22Z", "lostAt": "2019-08-24T14:15:22Z", "replaced": true, "attempts": [ { "id": "string", "number": 0, "reason": "buyer_unavailable", "note": "string", "respondBy": "2019-08-24T14:15:22Z", "instruction": "retry", "instructedAt": "2019-08-24T14:15:22Z", "retryPhone": "string", "retryAddressLine": "string", "retryLandmark": "string", "disputed": true, "disputeNote": "string", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "claims": [ { "id": "string", "kind": "lost", "claimedPaisa": 0, "claimBy": "2019-08-24T14:15:22Z", "status": "open", "paidPaisa": 0, "note": "string", "resolvedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ] } ], "returns": [ { "exchangeOrderId": "string", "id": "string", "reason": "string", "refundPaisa": 0, "note": "string", "lines": [ { "id": "string", "orderLineItemId": "string", "quantity": 0, "restock": true } ], "atRegister": { "locationId": "string", "registerId": "string", "receiptNumber": "string", "refunds": [ { "kind": "cash", "name": "string", "amountPaisa": 0, "reference": "string" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }, "createdAt": "2019-08-24T14:15:22Z" } ], "cashRefunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "events": [ { "id": "string", "type": "placed", "fromStatus": "pending", "toStatus": "pending", "actorType": "customer", "actorId": "string", "note": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "payments": [ { "id": "string", "provider": "cod", "providerLabel": "string", "mode": "test", "providerRef": "string", "status": "created", "amountPaisa": 0, "capturedPaisa": 0, "refundedPaisa": 0, "currency": "string", "expiresAt": "2019-08-24T14:15:22Z", "failureMessage": "string", "cardBrand": "string", "cardLast4": "string", "refundRequired": true, "refunds": [ { "id": "string", "amountPaisa": 0, "reason": "string", "status": "pending", "failureMessage": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "cancelReasonCode": "buyer_cancelled", "exchangeOfOrderId": "string", "confirmation": { "hold": { "reason": "advance_payment", "note": "string", "heldAt": "2019-08-24T14:15:22Z" }, "contacts": [ { "id": "string", "channel": "call", "outcome": "confirmed", "note": "string", "followUpAt": "2019-08-24T14:15:22Z", "actorType": "customer", "createdAt": "2019-08-24T14:15:22Z" } ], "attempts": 0, "unanswered": 0, "lastOutcome": "confirmed", "lastContactAt": "2019-08-24T14:15:22Z", "followUpAt": "2019-08-24T14:15:22Z", "risk": { "tier": "low", "reasons": [ { "code": "past_rto", "count": 0, "rate": 0 } ], "network": { "level": "caution", "reason": "flagged_by_devhelp" }, "deliveredHere": true, "suggestedAdvancePaisa": 0 }, "report": { "id": "string", "reason": "fake_order", "note": "string", "reportedAt": "2019-08-24T14:15:22Z" } }, "inStore": { "locationId": "string", "locationName": "string", "registerId": "string", "registerName": "string", "receiptNumber": "string", "cashRoundingPaisa": 0, "payments": [ { "id": "string", "kind": "cash", "name": "string", "amountPaisa": 0, "tenderedPaisa": 0, "changePaisa": 0, "reference": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "fiscal": { "status": "pending", "usin": "string", "posId": "string", "environment": "sandbox", "fbrInvoiceNumber": "string" } }}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
limit?number24cursor?stringstatus?string"open""paid""refused"q?stringcourierName?stringOK
application/json- response
items*array<>nextCursor*string|nullcurl -X GET 'https://api.devhelp.pk/admin/v1/claims'{ "items": [ { "id": "string", "kind": "lost", "claimedPaisa": 0, "claimBy": "2019-08-24T14:15:22Z", "status": "open", "paidPaisa": 0, "note": "string", "resolvedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "writtenOffPaisa": 0, "fulfillmentId": "string", "courierName": "string", "trackingNumber": "string", "order": { "id": "string", "orderNumber": 0 }, "carriedTo": { "id": "string", "status": "open" }, "carriedFrom": { "id": "string" } } ], "nextCursor": "string"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
rest?string"claim""write_off"status*string"open""paid""refused"paidPaisa?numbernote?stringOK
application/json- response
id*stringkind*string"lost""damaged""other"claimedPaisa*numberclaimBy*|nullstatus*string"open""paid""refused"paidPaisa*number|nullnote*string|nullresolvedAt*|nullcreatedAt*stringdate-timewrittenOffPaisa?numberfulfillmentId*stringcourierName*string|nulltrackingNumber*string|nullorder*carriedTo*|nullcarriedFrom*|nullcurl -X PATCH 'https://api.devhelp.pk/admin/v1/claims/string' \ -H 'Content-Type: application/json' \ -d '{ "status": "open"}'{ "id": "string", "kind": "lost", "claimedPaisa": 0, "claimBy": "2019-08-24T14:15:22Z", "status": "open", "paidPaisa": 0, "note": "string", "resolvedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "writtenOffPaisa": 0, "fulfillmentId": "string", "courierName": "string", "trackingNumber": "string", "order": { "id": "string", "orderNumber": 0 }, "carriedTo": { "id": "string", "status": "open" }, "carriedFrom": { "id": "string" }}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
limit?number24cursor?stringq?stringOK
application/json- response
items*array<>nextCursor*string|nullcurl -X GET 'https://api.devhelp.pk/admin/v1/handovers'{ "items": [ { "id": "string", "number": 0, "courierName": "string", "deliveryServiceId": "string", "note": "string", "handedOverAt": "2019-08-24T14:15:22Z", "actorType": "customer", "parcelCount": 0, "pieces": 0, "codTotalPaisa": 0 } ], "nextCursor": "string"}Dispatches each parcel through the same path as a single dispatch, with the chosen delivery service or courier name and an optional tracking number per parcel, and records them as one numbered handover for the load sheet. A parcel already dispatched on its own, with the same courier and on no handover, is recorded on this one instead (its tracking number filled in if it had none). A parcel that cannot be dispatched (not packed, its order on hold) is left out and listed in failed; if none can be, nothing is recorded. Requires an Idempotency-Key header.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
deliveryServiceId?string|nullcourierName?stringnote?stringparcels*array<>OK
application/json- response
handover*failed*array<>curl -X POST 'https://api.devhelp.pk/admin/v1/handovers' \ -H 'Content-Type: application/json' \ -d '{ "parcels": [ { "id": "string" } ]}'{ "handover": { "id": "string", "number": 0, "courierName": "string", "deliveryServiceId": "string", "note": "string", "handedOverAt": "2019-08-24T14:15:22Z", "actorType": "customer", "parcelCount": 0, "pieces": 0, "codTotalPaisa": 0, "parcels": [ { "id": "string", "status": "packed", "courierName": "string", "deliveryServiceId": "string", "trackingNumber": "string", "trackingUrl": "string", "codAmountPaisa": 0, "collectedPaisa": 0, "pieces": 0, "packedAt": "2019-08-24T14:15:22Z", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "handover": { "id": "string", "number": 0 }, "lastAttempt": { "number": 0, "reason": "buyer_unavailable", "respondBy": "2019-08-24T14:15:22Z", "answered": true }, "order": { "id": "string", "orderNumber": 0, "recipientName": "string", "phone": "string", "city": "string", "province": "string", "onHold": true } } ] }, "failed": [ { "id": "string", "message": "string" } ]}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringnumber*numbercourierName*stringdeliveryServiceId*string|nullnote*string|nullhandedOverAt*stringdate-timeactorType*string"customer""staff""api_key""system"parcelCount*numberpieces*numbercodTotalPaisa*numberparcels*array<>curl -X GET 'https://api.devhelp.pk/admin/v1/handovers/string'{ "id": "string", "number": 0, "courierName": "string", "deliveryServiceId": "string", "note": "string", "handedOverAt": "2019-08-24T14:15:22Z", "actorType": "customer", "parcelCount": 0, "pieces": 0, "codTotalPaisa": 0, "parcels": [ { "id": "string", "status": "packed", "courierName": "string", "deliveryServiceId": "string", "trackingNumber": "string", "trackingUrl": "string", "codAmountPaisa": 0, "collectedPaisa": 0, "pieces": 0, "packedAt": "2019-08-24T14:15:22Z", "dispatchedAt": "2019-08-24T14:15:22Z", "deliveredAt": "2019-08-24T14:15:22Z", "handover": { "id": "string", "number": 0 }, "lastAttempt": { "number": 0, "reason": "buyer_unavailable", "respondBy": "2019-08-24T14:15:22Z", "answered": true }, "order": { "id": "string", "orderNumber": 0, "recipientName": "string", "phone": "string", "city": "string", "province": "string", "onHold": true } } ]}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
limit?number24cursor?stringOK
application/json- response
items*array<>nextCursor*string|nullcurl -X GET 'https://api.devhelp.pk/admin/v1/shipping/zones'{ "items": [ { "id": "string", "name": "string", "locations": [ { "id": "string", "matchType": "country", "mode": "include", "countryCode": "AD", "regionCode": "string", "cityName": "string", "cityNormalized": "string" } ], "priority": 0, "chargeTax": true, "customsNote": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "string"}Defines a delivery zone with country, region, or city include/exclude rules. Overlapping zones are allowed and resolved by specificity (city > region > country) and priority.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
name*stringlocations*array<>priority?number0chargeTax?booleantruecustomsNote?string|nullOK
application/json- response
id*stringname*stringlocations*array<>priority*numberchargeTax*booleancustomsNote*string|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X POST 'https://api.devhelp.pk/admin/v1/shipping/zones' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "locations": [ { "matchType": "country", "countryCode": "AD" } ]}'{ "id": "string", "name": "string", "locations": [ { "id": "string", "matchType": "country", "mode": "include", "countryCode": "AD", "regionCode": "string", "cityName": "string", "cityNormalized": "string" } ], "priority": 0, "chargeTax": true, "customsNote": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
name?stringlocations?array<>priority?numberchargeTax?booleancustomsNote?string|nullOK
application/json- response
id*stringname*stringlocations*array<>priority*numberchargeTax*booleancustomsNote*string|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X PATCH 'https://api.devhelp.pk/admin/v1/shipping/zones/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "name": "string", "locations": [ { "id": "string", "matchType": "country", "mode": "include", "countryCode": "AD", "regionCode": "string", "cityName": "string", "cityNormalized": "string" } ], "priority": 0, "chargeTax": true, "customsNote": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Retires the zone and its rates; nothing is removed.
secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringdeleted*unknowncurl -X DELETE 'https://api.devhelp.pk/admin/v1/shipping/zones/string'{ "id": "string", "deleted": true}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
limit?number24cursor?stringzoneId?stringOK
application/json- response
items*array<>nextCursor*string|nullcurl -X GET 'https://api.devhelp.pk/admin/v1/shipping/rates'{ "items": [ { "id": "string", "zoneId": "string", "name": "string", "pricePaisa": 0, "freeOverPaisa": 0, "minDays": 0, "maxDays": 0, "minWeightGrams": 0, "maxWeightGrams": 0, "position": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "string"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
application/json- body
name*stringpricePaisa*numberfreeOverPaisa?number|nullminDays?number|nullmaxDays?number|nullminWeightGrams?number|nullmaxWeightGrams?number|nullposition?number0zoneId*stringOK
application/json- response
id*stringzoneId*stringname*stringpricePaisa*numberfreeOverPaisa*number|nullminDays*number|nullmaxDays*number|nullminWeightGrams*number|nullmaxWeightGrams*number|nullposition*numbercreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X POST 'https://api.devhelp.pk/admin/v1/shipping/rates' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "pricePaisa": 0, "zoneId": "string"}'{ "id": "string", "zoneId": "string", "name": "string", "pricePaisa": 0, "freeOverPaisa": 0, "minDays": 0, "maxDays": 0, "minWeightGrams": 0, "maxWeightGrams": 0, "position": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringapplication/json- body
name?stringpricePaisa?numberfreeOverPaisa?number|nullminDays?number|nullmaxDays?number|nullminWeightGrams?number|nullmaxWeightGrams?number|nullposition?numberOK
application/json- response
id*stringzoneId*stringname*stringpricePaisa*numberfreeOverPaisa*number|nullminDays*number|nullmaxDays*number|nullminWeightGrams*number|nullmaxWeightGrams*number|nullposition*numbercreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X PATCH 'https://api.devhelp.pk/admin/v1/shipping/rates/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "zoneId": "string", "name": "string", "pricePaisa": 0, "freeOverPaisa": 0, "minDays": 0, "maxDays": 0, "minWeightGrams": 0, "maxWeightGrams": 0, "position": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}secretKeyx-api-key<token>Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.
id*stringOK
application/json- response
id*stringdeleted*unknowncurl -X DELETE 'https://api.devhelp.pk/admin/v1/shipping/rates/string'{ "id": "string", "deleted": true}