Table of contents
ShaQ Express Public API Documentation
Welcome to the ShaQ Express Public API. This documentation provides partners and developers with the endpoints needed to seamlessly manage packages, consignments, and receive tracking updates.
| Info | Value |
|---|---|
| version | 1.0 |
| Dev Base Url | https://test-partner.shaqexpress.com/api/v1 |
Standard Headers
All requests made to the API should contain the following standard HTTP headers:
| Header | Type | Description |
|---|---|---|
Content-Type |
application/json |
Requires JSON requested bodies |
Accept |
application/json |
Expects JSON response bodies |
(Note: Protected endpoints will also require an Authorization: Bearer <token> header, which you acquire from logging in).
Package Statuses
Our system uses various statuses to track the lifecycle of a package. Below is the comprehensive list of statuses you may receive:
📦 Pending & Collection
pending: Package is yet to be received from Partnerreceived: Package has been received from Partner into main regional hubwarehouse_received: Package has been received at a regional warehouse for onward deliverycollected: Package has been collected from Partner by ShaQ Expressready_for_pickup: Package is ready for customer pickup
🚚 Transit & Dispatch
shipped: Package has been shipped by Partnerassigned: Package has been assigned to a Riderin_transit: Package is in transit to closest warehousedispatched: Package is en-route to be delivered
✅ Delivery Outcomes
confirmed: Customer has been called and delivery confirmeddelivered: Package was successfully delivered to customer
⚠️ Issues & Exceptions
not_delivered: Attempted delivery but couldn't complete itrescheduled: Package delivery rescheduled for new delivery attemptcustomer_hold: Delivery is on hold based on customer requestcustomer_unreachable: Delivery is on hold because customer is unreachablesuspected_scam: Delivery is on hold due to suspected scam
🔙 Returns
return_picked: Package has been picked up from the customer for return to partnerreturn_in_progress: Package is being prepared to be sent back to Partnerreturned_to_sender: Package has been sent back to Partnerreturn_to_central: Package is being returned to ShaQ Express central warehouse after multiple unsuccessful delivery to prepare for being returned to partner
API Endpoints
Login
Get authentication token for subsequent requests.
As a security measure the token is valid for 7 days after which a new one will have to be generated
using the /auth/login route.
Request
| Parameter | Type | Description |
|---|---|---|
identifier |
string |
required. |
secret |
string |
required. |
Response
200
{
"message": "Request successful",
"data": {
"token": "UtXdU9HODhjdmtTNkRtUWNsVlM4OWI1d2Z2TXVIanlkRk"
}
}
Get Packages
Get all packages
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Response
200
{
"message": "Request successful",
"data": {
"list": [
{
"partnerRef": "FGVHKJ567",
"trackingNumber": "20250410X51DIQ",
"customerName": "Kwaku Ananse",
"customerPhone1": "+233244100200",
"customerPhone2": null,
"destinationRegion": "Greater Accra",
"destinationCity": "Accra",
"status": "delivered",
"value": "300.00",
"amountToCollect": "300.00",
"date": "2025-04-10T11:15:00.000+00:00"
},
{
"partnerRef": "XYZABC123",
"trackingNumber": "20250410Y62EJR",
"customerName": "Ama Serwaa",
"customerPhone1": "+233244200300",
"customerPhone2": null,
"destinationRegion": "Ashanti",
"destinationCity": "Kumasi",
"status": "pending",
"value": "150.00",
"amountToCollect": "150.00",
"date": "2025-04-11T09:30:00.000+00:00"
}
],
"meta": {
"total": 2,
"perPage": 15,
"currentPage": 1,
"lastPage": 1
}
}
}
Get single Package
Get package details
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Response
200
{
"message": "Request successful",
"data": {
"partnerRef": "FGVHKJ567",
"trackingNumber": "20250410X51DIQ",
"customerName": "Kwaku Ananse",
"customerPhone1": "+233244100200",
"customerPhone2": null,
"altPhone": null,
"destinationRegion": "Greater Accra",
"destinationCity": "Accra",
"destinationAddressLine1": "UPSA Hall, Room 3",
"destinationAddressLine2": null,
"length": 0,
"height": 5,
"weight": 1.2,
"description": "iPhone 16 pro max black edge silver back casing",
"units": 1,
"type": "box",
"value": "300.00",
"amountToCollect": "300.00",
"paymentCollector": "shaq",
"paymentStatus": "unpaid",
"handling": "normal",
"specialInstructions": null,
"status": "not_delivered",
"statusDescription": "Attempted delivery but couldn't complete it.",
"latitude": null,
"longitude": null,
"proofPhotoUrl": "https://debtufr1vwh35.cloudfront.net/labels_test/label/8B73CE6D.png",
"receivedAt": "Jul 15 2025",
"isReplacement": false,
"action": null,
"items": [
{
"name": "iPhone 6",
"quantity": 1
},
{
"name": "iPhone 14 Pro",
"quantity": 2
}
],
"rescheduledDate": null,
"deliveredAt": null,
"eta": "2026-04-20 - 2026-04-22",
"maxEta": 5,
"deliveryAttempts": 1,
"fulfillmentStage": null,
"fulfillmentStatus": null,
"pickedAt": null,
"packedAt": null,
"cancelledAt": null,
"trackingHistory": [
{
"name": "not_delivered",
"description": "Attempted delivery but couldn't complete it.",
"date": "2025-07-16T09:00:00.000+00:00",
"comment": "Customer was unreachable upon arrival. Package rescheduled for 2nd delivery attempt."
},
{
"name": "dispatched",
"description": "Package is en-route to deliver.",
"date": "2025-07-15T15:45:00.000+00:00",
"comment": null
},
{
"name": "confirmed",
"description": "Customer has been called and delivery confirmed.",
"date": "2025-07-15T15:45:00.000+00:00",
"comment": null
},
{
"name": "received",
"description": "Package has been received from Partner.",
"date": "2025-07-15T15:38:00.000+00:00",
"comment": null
},
{
"name": "pending",
"description": "Package is yet to be received by Partner.",
"date": "2025-07-14T10:38:00.000+00:00",
"comment": null
}
],
"callLogs": [
{
"phone": "+233244100200",
"outcome": "answered",
"comment": "Customer confirmed delivery for tomorrow",
"date": "2025-07-15 14:30"
}
]
}
}
Delete pending Package
Delete a package. Only pending packages can be deleted
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Response
200
Cancel Order
Cancel a fulfillment order.
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Response
200
400
404
Create Single Package
Create a single package
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Request
| Parameter | Type | Description |
|---|---|---|
partner_ref |
string |
required. Must be unique. |
customer_name |
string |
required. |
customer_phone_1 |
string |
required. |
customer_phone_2 |
string |
optional. |
source_address_line_1 |
string |
required. |
source_address_line_2 |
string |
optional. |
destination_region |
string |
required if region_id is empty. |
destination_city |
string |
required. |
destination_address_line_1 |
string |
required. |
destination_address_line_2 |
string |
optional. |
destination_postal_code |
string |
optional. |
length |
decimal |
optional. |
height |
decimal |
optional. |
weight |
decimal |
optional. |
description |
string |
required. |
units |
number |
required. |
type |
string |
required . in parcel, box |
handling |
string |
required . in normal, fragile |
special_instructions |
string |
optional. |
latitude |
decimal |
optional. |
longitude |
decimal |
optional. |
value |
decimal |
required. |
amount_to_collect |
decimal |
optional. defaults to package value. |
items |
array |
required. {name, quantity} |
landmark |
string |
optional. |
region_id |
integer |
required if destination_region is empty. |
Response
200
{
"message": "Package created successfully",
"data": {
"partnerRef": "UNIQUE-REF-001",
"trackingNumber": "20250410X51DIQ",
"description": "iPhone 16 pro max black edge silver back casing",
"status": "pending",
"statusDescription": "Package is yet to be received from Partner",
"items": [
{ "name": "iPhone 6", "quantity": 1 },
{ "name": "iPhone 14 Pro", "quantity": 2 }
],
"tracking": [
{
"name": "pending",
"description": "Package is yet to be received from Partner",
"comment": null,
"date": "2025-04-10T11:15:00.000+00:00"
}
]
}
}
404
Create Bulk Packages
Create multiple packages
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Request
| Parameter | Type | Description |
|---|---|---|
packages |
array |
required. |
packages.*.partner_ref |
string |
required. |
packages.*.customer_name |
string |
required. |
packages.*.customer_phone_1 |
string |
required. |
packages.*.customer_phone_2 |
string |
optional. |
packages.*.source_address_line_1 |
string |
required. |
packages.*.source_address_line_2 |
string |
optional. |
packages.*.destination_region |
string |
required if region_id is empty. |
packages.*.destination_city |
string |
required. |
packages.*.destination_address_line_1 |
string |
required. |
packages.*.destination_address_line_2 |
string |
optional. |
packages.*.destination_postal_code |
string |
optional. |
packages.*.length |
decimal |
optional. |
packages.*.height |
decimal |
optional. |
packages.*.weight |
decimal |
optional. |
packages.*.description |
string |
required. |
packages.*.units |
number |
required. |
packages.*.type |
string |
required . in parcel, box |
packages.*.handling |
string |
required . in normal, fragile |
packages.*.special_instructions |
string |
optional. |
packages.*.latitude |
decimal |
optional. |
packages.*.longitude |
decimal |
optional. |
packages.*.value |
decimal |
required. |
packages.*.amount_to_collect |
decimal |
optional. defaults to package value. |
packages.*.items |
array |
required. {name, quantity} |
packages.*.landmark |
string |
optional. |
packages.*.region_id |
integer |
required if destination_region is empty. |
Response
200
{
"message": "Packages processed successfully",
"data": [
{
"partnerRef": "UNIQUE-REF-001",
"trackingNumber": "20250410X51DIQ",
"description": "iPhone 16 pro max black edge silver back casing",
"status": "pending",
"statusDescription": "Package is yet to be received from Partner",
"items": [
{ "name": "iPhone 6", "quantity": 1 },
{ "name": "iPhone 14 Pro", "quantity": 2 }
],
"tracking": [
{
"name": "pending",
"description": "Package is yet to be received from Partner",
"comment": null,
"date": "2025-04-10T11:15:00.000+00:00"
}
]
}
]
}
Create Consignment
Create a consignment that represents the physical shipment of packages that will be sent to ShaQ Express.
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Request
| Parameter | Type | Description |
|---|---|---|
reference |
string |
optional. Partner-supplied consignment key used as an idempotency key; if omitted, a reference is generated. |
shop_id |
number |
optional. Origin shop the consignment is collected from. Must be one of your enabled shops; omit it for a single-location account. |
packages |
array |
required. Accepts 1 to 500 package objects. |
packages.*.partner_ref |
string |
required. |
packages.*.customer_name |
string |
required. |
packages.*.customer_phone_1 |
string |
required. |
packages.*.customer_phone_2 |
string |
optional. |
packages.*.source_address_line_1 |
string |
required if shop_id is empty. |
packages.*.source_address_line_2 |
string |
optional. |
packages.*.destination_region |
string |
required if region_id is empty. |
packages.*.destination_city |
string |
required. |
packages.*.destination_address_line_1 |
string |
required. |
packages.*.destination_address_line_2 |
string |
optional. |
packages.*.destination_postal_code |
string |
optional. |
packages.*.length |
decimal |
optional. |
packages.*.height |
decimal |
optional. |
packages.*.weight |
decimal |
optional. |
packages.*.description |
string |
required. |
packages.*.units |
number |
required. |
packages.*.type |
string |
required . in parcel, box |
packages.*.handling |
string |
required . in normal, fragile |
packages.*.special_instructions |
string |
optional. |
packages.*.latitude |
decimal |
optional. |
packages.*.longitude |
decimal |
optional. |
packages.*.value |
decimal |
required. |
packages.*.amount_to_collect |
decimal |
optional. defaults to package value. |
packages.*.items |
array |
required. |
packages.*.landmark |
string |
optional. |
packages.*.region_id |
integer |
required if destination_region is empty. |
packages.*.include_label |
boolean |
optional. |
Note:
shop_idselects the origin shop the consignment is collected from. The shop must exist, belong to your account and be enabled — otherwise404 Shop not found or disabled. It must also already be matched to a branch by ShaQ Express operations, otherwise the request fails with422; that branch's warehouse is where every package in the consignment lands. A chosen shop seedssource_address_line_1/source_address_line_2for any package that did not supply its own. Whenshop_idis omitted, every package must carry its ownsource_address_line_1(422otherwise), and the consignment is created withshopId: null— the normal single-location case.
Response
200
{
"message": "Consignment created successfully",
"data": {
"id": 123,
"reference": "PAR-20260828093000",
"type": "delivery",
"status": "pending",
"shopId": 7,
"createdAt": "2026-08-28",
"totalPackages": 2,
"packages": [
{
"partnerRef": "qwertyui1a1aaqweqqaqx",
"trackingNumber": "C561819A",
"customerName": "Hema Mirpuri",
"customerPhone1": "+233244601165",
"customerPhone2": null,
"sourceAddressLine1": "Accra spintex basket junction",
"sourceAddressLine2": null,
"destinationRegion": "Greater Accra",
"destinationCity": "Tesano",
"destinationAddressLine1": "OPP total filling station Abeka tesano",
"destinationAddressLine2": null,
"destinationPostalCode": null,
"length": 0,
"height": 0,
"weight": 0,
"description": "Color Splicing Cotton Rope Storage Basket AB-026 - Beige Yellow+White",
"units": 7,
"type": "parcel",
"handling": "normal",
"specialInstructions": null,
"status": "pending",
"statusDescription": "Package is yet to be received by Partner",
"latitude": null,
"longitude": null,
"value": "1468.00",
"amountToCollect": "1468.00",
"originalAmountToCollect": null,
"paymentCollector": "shaq",
"paymentStatus": "unpaid",
"date": "2026-08-28 09:30",
"trackingUrl": "https://dev.tracking-website.pages.dev/packages/C561819A",
"items": [
{
"name": "14cm Alya Glass Cookie Holder - Transparent",
"quantity": 4
},
{
"name": "6 Pieces Nossa 21cm Cake Plate Set",
"quantity": 1
}
]
},
{
"partnerRef": "zxcvbnm2b2bbrwerrbrby",
"trackingNumber": "C561820B",
"customerName": "Kwaku Ananse",
"customerPhone1": "+233244100200",
"customerPhone2": null,
"sourceAddressLine1": "Accra spintex basket junction",
"sourceAddressLine2": null,
"destinationRegion": "Greater Accra",
"destinationCity": "Accra",
"destinationAddressLine1": "UPSA Hall, Room 3",
"destinationAddressLine2": null,
"destinationPostalCode": null,
"length": 0,
"height": 5,
"weight": 1.2,
"description": "iPhone 16 pro max black edge silver back casing",
"units": 1,
"type": "box",
"handling": "normal",
"specialInstructions": null,
"status": "pending",
"statusDescription": "Package is yet to be received by Partner",
"latitude": null,
"longitude": null,
"value": "1468.00",
"amountToCollect": "1468.00",
"originalAmountToCollect": null,
"paymentCollector": "shaq",
"paymentStatus": "unpaid",
"date": "2026-08-28 09:30",
"trackingUrl": "https://dev.tracking-website.pages.dev/packages/C561820B",
"items": [
{
"name": "iPhone 16 pro max",
"quantity": 1
}
]
}
]
}
}
Note: The response returns a summary of the created consignment (
id,reference,type,status,shopId,createdAt,totalPackages) together with the createdpackages.shopIdis the origin shop, and isnullfor a single-location partner.
Get single Consignment
Retrieve one of your consignments by reference, together with its packages. Returns the same shape as POST /consignments, or the legacy shape below for a reference that predates the durable records.
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Response
200
{
"message": "Request successful",
"data": {
"id": 124,
"reference": "SAAM-20260322053800",
"type": "delivery",
"status": "pending",
"shopId": 7,
"createdAt": "2026-08-28",
"totalPackages": 2,
"packages": [
{
"partnerRef": "qwertyui1a1aaqweqqaqx",
"trackingNumber": "C561819A",
"customerName": "Hema Mirpuri",
"customerPhone1": "+233244601165",
"customerPhone2": null,
"sourceAddressLine1": "Accra spintex basket junction",
"sourceAddressLine2": null,
"destinationRegion": "Greater Accra",
"destinationCity": "Tesano",
"destinationAddressLine1": "OPP total filling station Abeka tesano",
"destinationAddressLine2": null,
"destinationPostalCode": null,
"length": 0,
"height": 0,
"weight": 0,
"description": "Color Splicing Cotton Rope Storage Basket AB-026 - Beige Yellow+White",
"units": 7,
"type": "parcel",
"handling": "normal",
"specialInstructions": null,
"status": "pending",
"statusDescription": "Package is yet to be received by Partner",
"latitude": null,
"longitude": null,
"value": "1468.00",
"amountToCollect": "1468.00",
"originalAmountToCollect": null,
"paymentCollector": "shaq",
"paymentStatus": "unpaid",
"date": "2026-08-28 09:30",
"trackingUrl": "https://dev.tracking-website.pages.dev/packages/C561819A",
"items": [
{
"name": "14cm Alya Glass Cookie Holder - Transparent",
"quantity": 4
},
{
"name": "6 Pieces Nossa 21cm Cake Plate Set",
"quantity": 1
}
]
},
{
"partnerRef": "zxcvbnm2b2bbrwerrbrby",
"trackingNumber": "C561820B",
"customerName": "Kwaku Ananse",
"customerPhone1": "+233244100200",
"customerPhone2": null,
"sourceAddressLine1": "Accra spintex basket junction",
"sourceAddressLine2": null,
"destinationRegion": "Greater Accra",
"destinationCity": "Accra",
"destinationAddressLine1": "UPSA Hall, Room 3",
"destinationAddressLine2": null,
"destinationPostalCode": null,
"length": 0,
"height": 5,
"weight": 1.2,
"description": "iPhone 16 pro max black edge silver back casing",
"units": 1,
"type": "box",
"handling": "normal",
"specialInstructions": null,
"status": "pending",
"statusDescription": "Package is yet to be received by Partner",
"latitude": null,
"longitude": null,
"value": "1468.00",
"amountToCollect": "1468.00",
"originalAmountToCollect": null,
"paymentCollector": "shaq",
"paymentStatus": "unpaid",
"date": "2026-08-28 09:30",
"trackingUrl": "https://dev.tracking-website.pages.dev/packages/C561820B",
"items": [
{
"name": "iPhone 16 pro max",
"quantity": 1
}
]
}
]
}
}
Legacy consignments
A reference that predates the durable records — consignments created through the API before it landed, and every consignment uploaded by Excel — answers on the same endpoint with the older, richer shape below. It carries no partner or partnerName either.
200
{
"message": "Request successful",
"data": {
"id": 87,
"reference": "SAAM-20260115084500",
"status": "successful",
"type": "import",
"author": "Acme Ltd",
"authorName": "Acme Ltd",
"authorType": "partner",
"shopId": null,
"shop": null,
"recipientId": null,
"recipientName": null,
"driverId": null,
"driverName": null,
"vehicleNumber": null,
"receivedAt": null,
"path": "uploads/consignments/acme-20260115.xlsx",
"startsAt": null,
"endsAt": null,
"statuses": [],
"skippedRows": [],
"skippedCount": 0,
"failureReason": null,
"createdAt": "2026-01-15",
"totalPackages": 1,
"packages": [
{
"partnerRef": "legacy-upload-row-14",
"trackingNumber": "C561821C",
"customerName": "Kwaku Ananse",
"customerPhone1": "+233244100200",
"customerPhone2": null,
"sourceAddressLine1": "Accra spintex basket junction",
"sourceAddressLine2": null,
"destinationRegion": "Greater Accra",
"destinationCity": "Accra",
"destinationAddressLine1": "UPSA Hall, Room 3",
"destinationAddressLine2": null,
"destinationPostalCode": null,
"length": 0,
"height": 5,
"weight": 1.2,
"description": "iPhone 16 pro max black edge silver back casing",
"units": 1,
"type": "box",
"handling": "normal",
"specialInstructions": null,
"status": "pending",
"statusDescription": "Package is yet to be received by Partner",
"latitude": null,
"longitude": null,
"value": "1468.00",
"amountToCollect": "1468.00",
"originalAmountToCollect": null,
"paymentCollector": "shaq",
"paymentStatus": "unpaid",
"date": "2026-01-15 08:45",
"trackingUrl": "https://dev.tracking-website.pages.dev/packages/C561821C",
"items": [
{
"name": "iPhone 16 pro max",
"quantity": 1
}
]
}
]
}
}
Warning:
statusandtypedo not share a vocabulary across the two shapes. On the durable shape (the first example above),statusis a tracking status (pending,received, …) andtypeis your partner type (deliveryorfulfillment, and may benull). On the legacy shape,statusis an upload status (pending,processing,received,failed,successful,successful_with_errors,successful_with_duplicates) andtypeis always"import".pendingandreceivedappear in both with different meanings, so branch on the shape — the legacy one is the one carryingauthor,statusesandskippedRows— not on the status value alone.Note:
startsAtandendsAtcome from the upload's metadata. When there is none, the two keys are omitted from the response altogether rather than returned asnull— test for them withinrather than comparing tonull.
Group Packages into a Consignment
Group already-created packages into a consignment by referencing them with their partner_ref — no packages are created, only their consignment membership is set. Only pending packages that are not already in a consignment may be grouped. The reference doubles as an idempotency key: reusing an existing one appends the packages to that consignment; a new one creates a new consignment. Grouping never sets an origin shop, so shopId is null unless the consignment already existed with one.
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Request
| Parameter | Type | Description |
|---|---|---|
reference |
string |
Required. Your consignment key / idempotency key. |
partner_refs |
array |
Required. 1–500 unique partner_ref values of existing packages. |
Response
200
{
"message": "Consignment grouped successfully",
"data": {
"id": 1,
"reference": "GROUP-1",
"type": "delivery",
"status": "pending",
"shopId": null,
"createdAt": "2026-09-14",
"totalPackages": 3,
"packages": [
{ "partner_ref": "qwertyui1a1aaqweqqaqx", "tracking_number": "C561819A", "status": "pending" },
{ "partner_ref": "zxcvbnm2b2bbrwerrbrby", "tracking_number": "C561820B", "status": "pending" }
]
}
}
422 — one or more packages could not be grouped; nothing is created.
{
"message": "Some packages could not be grouped",
"data": {
"not_found": ["unknownref1"],
"not_pending": ["shippedref2"],
"already_grouped": ["groupedref3"],
"duplicates": ["dupref4"]
}
}
Remove a Package from a Consignment
Remove a single package from a consignment. Only the grouping is removed — the package itself is not deleted and its status is unchanged. Only a pending consignment can be modified.
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Response
200
{
"message": "Package removed from consignment",
"data": {
"id": 1,
"reference": "GROUP-1",
"type": "delivery",
"status": "pending",
"shopId": 7,
"createdAt": "2026-09-14",
"totalPackages": 1,
"packages": [
{ "partner_ref": "zxcvbnm2b2bbrwerrbrby", "tracking_number": "C561820B", "status": "pending" }
]
}
}
404
404
422
422
Delete a Consignment
Delete a consignment. Its grouping and membership rows are removed; the packages themselves are not deleted (they persist, un-grouped) and keep their status. Only a pending consignment can be deleted.
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Response
200
404
422
Update a Package
Update a specific package
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Request
| Parameter | Type | Description |
|---|---|---|
customer_name |
string |
optional. |
customer_phone_1 |
string |
optional. |
customer_phone_2 |
string |
optional. |
source_country_iso2 |
string |
optional. |
source_address_line_1 |
string |
optional. |
source_address_line_2 |
string |
optional. |
destination_region |
string |
optional. |
destination_city |
string |
optional. |
destination_address_line_1 |
string |
optional. |
destination_address_line_2 |
string |
optional. |
destination_postal_code |
string |
optional. |
length |
decimal |
optional. |
height |
decimal |
optional. |
weight |
decimal |
optional. |
description |
string |
optional. |
units |
number |
optional. |
type |
string |
optional . in parcel, box |
handling |
string |
optional . in normal, fragile |
special_instructions |
string |
optional. |
latitude |
decimal |
optional. |
longitude |
decimal |
optional. |
value |
decimal |
optional. |
amount_to_collect |
decimal |
optional. |
items |
array |
optional. |
Response
200
{
"message": "Request successful",
"data": {
"partnerRef": "FGVHKJ567",
"trackingNumber": "20250410X51DIQ",
"customerName": "Kwaku Ananse",
"customerPhone1": "+233244100200",
"customerPhone2": null,
"altPhone": null,
"destinationRegion": "Greater Accra",
"destinationCity": "Accra",
"destinationAddressLine1": "UPSA Hall, Room 3",
"destinationAddressLine2": null,
"length": 0,
"height": 5,
"weight": 1.2,
"description": "iPhone 16 pro max black edge silver back casing",
"units": 1,
"type": "box",
"value": "300.00",
"amountToCollect": "300.00",
"paymentCollector": "shaq",
"paymentStatus": "unpaid",
"handling": "normal",
"specialInstructions": null,
"status": "not_delivered",
"statusDescription": "Attempted delivery but couldn't complete it.",
"latitude": null,
"longitude": null,
"proofPhotoUrl": "https://debtufr1vwh35.cloudfront.net/labels_test/label/8B73CE6D.png",
"receivedAt": "Jul 15 2025",
"isReplacement": false,
"action": null,
"items": [
{
"name": "iPhone 6",
"quantity": 1
},
{
"name": "iPhone 14 Pro",
"quantity": 2
}
],
"rescheduledDate": null,
"deliveredAt": null,
"eta": "2026-04-20 - 2026-04-22",
"maxEta": 5,
"deliveryAttempts": 1,
"fulfillmentStage": null,
"fulfillmentStatus": null,
"pickedAt": null,
"packedAt": null,
"cancelledAt": null,
"trackingHistory": [
{
"name": "not_delivered",
"description": "Attempted delivery but couldn't complete it.",
"date": "2025-07-16T09:00:00.000+00:00",
"comment": "Customer was unreachable upon arrival. Package rescheduled for 2nd delivery attempt."
},
{
"name": "dispatched",
"description": "Package is en-route to deliver.",
"date": "2025-07-15T15:45:00.000+00:00",
"comment": null
}
],
"callLogs": null
}
}
Track Package
Get tracking statuses of a specific package
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Response
200
{
"message": "Package tracking",
"data": {
"partnerRef": "FGVHKJ567",
"trackingNumber": "20250410X51DIQ",
"description": "Kitchen cabinet",
"status": "shipped",
"statusDescription": "Package has been shipped by Partner.",
"items": [
{
"name": "iPhone 6",
"quantity": 1
},
{
"name": "iPhone 14 Pro",
"quantity": 2
}
],
"tracking": [
{
"name": "shipped",
"description": "Package has been shipped by Partner.",
"comment": null,
"date": "2025-04-10T15:17:00.000+00:00"
},
{
"name": "pending",
"description": "Package is yet to be shipped by Partner.",
"comment": null,
"date": "2025-04-10T15:16:00.000+00:00"
},
{
"name": "shipped",
"description": "Package has been shipped by Partner.",
"comment": null,
"date": "2025-04-10T15:15:00.000+00:00"
}
]
}
}
Get Inventory
Get the current stock level of every product on your account, ordered by product id.
Quantities are overall figures, summed across every warehouse and inventory type holding the product. on_hand (available plus reserved) is the quantity status is classified on; available is what is sellable right now — on_hand minus reserved.
You do not have to poll for changes: the inventory.stock_health_changed webhook is delivered to your configured webhook URL whenever a product crosses into a different stock health band.
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Query Parameters
| Parameter | Type | Description |
|---|---|---|
page |
integer |
Optional. The page to return. Defaults to 1 and is clamped to the range 1–1000000 |
limit |
integer |
Optional. Rows per page. Defaults to 15; 0 or a non-numeric value falls back to 15, any other value below 1 is raised to 1, and anything above 100 is capped at 100 |
Inventory Object
| Field | Type | Description |
|---|---|---|
sku |
string |
The product SKU |
name |
string |
Product name |
on_hand |
number |
Available plus reserved, summed across every warehouse and inventory type. This is the quantity status is classified on |
available |
number |
What is sellable right now — on_hand minus reserved |
reserved |
number |
Units physically in the warehouse but already committed to a fulfilment that has not been picked yet |
stockLevel |
number |
How full the SKU is against its target threshold, as a percentage from 0 to 100, rounded to two decimal places. 100 when no target threshold applies and the SKU is in stock |
status |
string |
The stock health band. One of healthy, low, critical, out_of_stock |
rule_source |
string |
Which thresholds produced status: partner (your own rule) or default (the global default). null when none applies |
Response
200
{
"message": "List of inventory levels",
"data": {
"list": [
{
"sku": "SHQ-ACC-TOTE-01",
"name": "Canvas Tote Bag",
"on_hand": 240,
"available": 200,
"reserved": 40,
"stockLevel": 80,
"status": "healthy",
"rule_source": "partner"
},
{
"sku": "SHQ-ACC-MUG-02",
"name": "Enamel Mug",
"on_hand": 12,
"available": 12,
"reserved": 0,
"stockLevel": 12.5,
"status": "critical",
"rule_source": "default"
},
{
"sku": "SHQ-ACC-CAP-03",
"name": "Baseball Cap",
"on_hand": 0,
"available": 0,
"reserved": 0,
"stockLevel": 0,
"status": "out_of_stock",
"rule_source": null
}
],
"meta": {
"total": 3,
"per_page": 15,
"current_page": 1,
"last_page": 1
}
}
}
401
Get single Inventory Item
Get the current stock level of a single product by its SKU. The object returned is the same Inventory Object as in the list above, and the same inventory.stock_health_changed webhook is delivered for this SKU whenever its health band changes.
A SKU that does not exist and a SKU that belongs to another partner both answer 404 Product not found. The response deliberately does not distinguish between the two.
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Response
200
{
"message": "Request successful",
"data": {
"sku": "SHQ-ACC-TOTE-01",
"name": "Canvas Tote Bag",
"on_hand": 240,
"available": 200,
"reserved": 40,
"stockLevel": 80,
"status": "healthy",
"rule_source": "partner"
}
}
404
401
Get Regions
Get all allowable regions
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Response
200
{
"message": "Request successful",
"data": [
{
"id": 16,
"name": "Western North"
},
{
"id": 15,
"name": "Ashanti"
}
]
}
Receive Updates Through Webhook
We will POST to your webhook URL whenever one of the tracked events listed below occurs on your account.
Envelope
Every webhook payload shares the same top-level envelope:
| Field | Type | Description |
|---|---|---|
event |
string |
The event type. See Webhook Events below. |
event_id |
string |
Unique UUID per delivery. Use for idempotency/deduplication. |
api_version |
string |
Payload version e.g. v1 |
occurred_at |
string |
ISO 8601 UTC timestamp of when the event occurred |
data |
object |
Event-specific payload. Shape varies by event — see below. |
Webhook Events
package.status_updated
Fired whenever a package status changes.
| Field | Type | Description |
|---|---|---|
tracking_number |
string |
ShaQ Express tracking number |
partner_ref |
string |
Your reference for the package |
status |
string |
The new status. See Package Statuses for values |
description |
string |
Human-readable description of the status |
comment |
string |
Additional context or comment. May be null |
meta |
object |
Extra data. Includes proof_url when status is delivered |
{
"event": "package.status_updated",
"event_id": "018e2b3c-7f4a-7c2d-9e1b-4a8f3d2c6b5a",
"api_version": "v1",
"occurred_at": "2025-05-29T10:30:00Z",
"data": {
"tracking_number": "20250410X51DIQ",
"partner_ref": "FGVHKJ567",
"status": "delivered",
"description": "Package was successfully delivered to customer",
"comment": null,
"meta": {
"proof_url": "https://example.com/proof.jpg"
}
}
}
package.amount_to_collect_updated
Fired when the amount to collect of a package is revised, always requested from and approved by Client.
| Field | Type | Description |
|---|---|---|
tracking_number |
string |
ShaQ Express tracking number |
partner_ref |
string |
Your reference for the package |
status |
string |
Package status at the time of revision. See Package Statuses for values |
meta.old_amount_to_collect |
number |
Previous amount to collect |
meta.new_amount_to_collect |
number |
Revised amount to collect |
meta.currency |
string |
Currency code e.g. GHS |
meta.reason |
string |
Reason for revision |
{
"event": "package.amount_to_collect_updated",
"event_id": "039g4d5e-9h6c-9e4f-1g3d-6c0h5f4e8d7c",
"api_version": "v1",
"occurred_at": "2025-05-29T09:00:00Z",
"data": {
"tracking_number": "20250410X51DIQ",
"partner_ref": "FGVHKJ567",
"status": "received",
"meta": {
"old_amount_to_collect": 25.0,
"new_amount_to_collect": 35.0,
"currency": "GHS",
"reason": "Items changed"
}
}
}
inventory.stock_health_changed
Fired when a product crosses into a different stock health band. This is an inventory event, not a package event, so it carries no tracking_number and no partner_ref.
| Field | Type | Description |
|---|---|---|
sku |
string |
The product SKU |
name |
string |
Product name |
health |
string |
The new health band. One of healthy, low, critical, out_of_stock |
previous_health |
string |
The band the product changed from. null the first time the SKU was ever classified |
on_hand_qty |
integer |
The quantity health was classified on — available plus reserved, summed across every warehouse |
rule_source |
string |
Which thresholds produced the classification: partner (your own rule) or default (the global default). May be null |
{
"event": "inventory.stock_health_changed",
"event_id": "0a7c91d4-2e58-4b36-9f0a-77c5b1e84d23",
"api_version": "v1",
"occurred_at": "2025-05-29T11:15:00Z",
"data": {
"sku": "SHQ-ACC-TOTE-01",
"name": "Kente Canvas Tote Bag",
"health": "critical",
"previous_health": "low",
"on_hand_qty": 3,
"rule_source": "partner"
}
}
How this event behaves
- Transitions only. At most one event per genuine change of band, per product. A SKU that is already
lowand drops further does not fire again; it fires only when it crosses into another band. - The grain is the product, not the warehouse.
healthis classified on on-hand quantity across every ShaQ Express warehouse, so moving stock between warehouses never fires the event. - Reservations do not fire it. Reserving stock moves units from available to reserved and leaves on-hand unchanged, so it cannot cross a threshold.
- Threshold changes do not fire it. If the thresholds themselves change, each SKU is re-reported on its next real stock movement rather than immediately.
- First observation. A product first seen as
healthyis recorded silently with no event. A product whose very first observation islow,criticalorout_of_stockdoes fire, withprevious_healthset tonull. - Delivery timing. Delivery is never instant: events are queued and drained by a scheduled job that runs every five minutes, so five minutes is a typical floor and not an upper bound. A large stock movement, or a slow endpoint on your side, can push a given event well past it, and an attempt that fails waits substantially longer — on the order of 30 minutes — before the next one. Do not build a time-bounded alert on this event; rely on
occurred_at, which is the authoritative record of when the change actually happened. - Only partners with a webhook URL configured receive this event.
previous_health is context, not a guarantee
previous_health is the band ShaQ Express last observed and recorded, which is not always the band you were last delivered. A transition is still recorded when no webhook URL is configured at the time, or when a delivery is given up on after exhausting its attempts — so a later event's previous_health may name a band you never received. Treat health as authoritative and do not assume these events form an unbroken chain.
consignment.status_updated
Fired when a consignment changes status. collected means a rider has picked the consignment up; received means the warehouse has taken it in.
| Field | Type | Description |
|---|---|---|
reference |
string |
The consignment reference. For a consignment created from a manifest you uploaded, this is that manifest's reference; otherwise it is generated by ShaQ Express, so do not assume you already hold the value |
status |
string |
The consignment's new status. One of collected, received |
{
"event": "consignment.status_updated",
"event_id": "1b9d5c7e-4a32-4f81-b6c0-2e8f41a97d65",
"api_version": "v1",
"occurred_at": "2026-11-02T09:35:00Z",
"data": {
"reference": "ACME-MANIFEST-0042",
"status": "collected"
}
}
How this event behaves
- Two statuses only.
collectedandreceivedare the only consignment status changes there are, so no other value is ever sent. - No actor. The payload does not identify who collected or received the consignment; that is not included.
- Ordering. This event arrives before the
package.status_updatedevents for the packages in the consignment, so do not treat it as a signal that every package has already been reported. - Delivery timing. Delivery is never instant: events are queued and drained by a scheduled job that runs every five minutes, so five minutes is a typical floor and not an upper bound, and an attempt that fails waits substantially longer — on the order of 30 minutes — before the next one. Rely on
occurred_at, which is the authoritative record of when the change actually happened. - At most once. A status change is recorded whether or not it reaches you: a delivery given up on after exhausting its attempts, or a change that occurs while no webhook URL is configured, is never replayed later. Treat
statusas the current state, not as a stream you can reconstruct.
Expected Response
Your endpoint must return a 2xx response to acknowledge receipt of the webhook. Any non-2xx response will be retried up to 3 times.
Webhook Requirements
To ensure reliable delivery and prevent webhook timeouts, please adhere to the following guidelines:
- Response Timeout: Your server must return a
2xxstatus code within 10 seconds of receiving the payload. - Asynchronous Processing: Acknowledge receipt of the webhook immediately, and process any database operations, business logic, or external notifications asynchronously (e.g., using a background queue/worker).
- Deduplication & Idempotency: Use the
event_idprovided in the payload envelope to ensure idempotency. Keep a log of processed event IDs and skip processing if the ID has already been seen. - Expect Duplicates: Your endpoint must be prepared to handle duplicate deliveries gracefully in case of network retries or transient connection issues.
Create Package Replacement
Create one or two packages to replace an existing package. The rule field determines how many packages are required and what action each must carry.
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Rules
| Rule | Packages Required | Actions Required |
|---|---|---|
deliver |
1 | action = deliver |
return |
1 | action = return |
return_deliver |
2 | One return, one deliver |
Request
| Parameter | Type | Description |
|---|---|---|
rule |
string |
Required. One of deliver, return, return_deliver |
packages |
array |
Required. 1–2 package objects. Must satisfy the rule constraints above |
Package Object
Each item in the packages array must conform to the following shape:
| Parameter | Type | Description |
|---|---|---|
action |
string |
Required. One of deliver, return. Must align with rule |
partner_ref |
string |
Required. Must be unique |
customer_name |
string |
Required |
customer_phone_1 |
string |
Required. Valid mobile number |
customer_phone_2 |
string |
Optional |
source_country_iso2 |
string |
Required. Valid ISO2 country code |
source_address_line_1 |
string |
Required |
source_address_line_2 |
string |
Optional |
destination_country_iso2 |
string |
Required. Valid ISO2 country code |
destination_region |
string |
Required if region_id is absent |
destination_city |
string |
Required |
destination_address_line_1 |
string |
Required |
destination_address_line_2 |
string |
Optional |
destination_postal_code |
string |
Optional |
landmark |
string |
Optional |
region_id |
integer |
Required if destination_region is absent |
length |
decimal |
Optional |
height |
decimal |
Optional |
weight |
decimal |
Optional |
description |
string |
Required |
units |
number |
Required |
type |
string |
Required. One of parcel, box |
value |
decimal |
Required. Minimum 0 |
amount_to_collect |
decimal |
Optional. Minimum 0 |
handling |
string |
Required. One of normal, fragile |
payment_collector |
string |
optional. in shaq, partner (This parameter can only be sent when ShaQ Express is the payment collector. It specifies who is responsible for collecting payment from the customer for the package and is intended for special cases where the partner handles the collection instead. If not provided, the default agreed payment collector configuration will be used.) |
items |
array |
Required. Array of { name: string, quantity: number }. Can be empty |
special_instructions |
string |
Optional |
latitude |
decimal |
Optional |
longitude |
decimal |
Optional |
Response
200
{
"message": "Package replacement created successfully",
"data": [
{
"partnerRef": "GH945214",
"trackingNumber": "9F0FD9D5",
"customerName": "Derrick Nti",
"customerPhone1": "+233549632604",
"customerPhone2": null,
"altPhone": null,
"destinationRegion": "Greater Accra",
"destinationCity": "Kwashieman",
"destinationAddressLine1": "23 Abiriw Street",
"destinationAddressLine2": null,
"length": 30,
"height": 20,
"weight": 5.5,
"description": "Test package",
"units": 1,
"type": "box",
"value": 20,
"amountToCollect": 20,
"paymentCollector": "shaq",
"paymentStatus": "unpaid",
"handling": "normal",
"specialInstructions": null,
"status": "pending",
"statusDescription": "Package is yet to be received by Partner",
"latitude": null,
"longitude": null,
"proofPhotoUrl": null,
"receivedAt": null,
"isReplacement": true,
"action": "deliver",
"items": [
{
"name": "Bluetooth",
"quantity": 3
}
],
"rescheduledDate": null,
"deliveredAt": null,
"eta": null,
"maxEta": null,
"deliveryAttempts": 0,
"fulfillmentStage": null,
"fulfillmentStatus": null,
"pickedAt": null,
"packedAt": null,
"cancelledAt": null,
"trackingHistory": [
{
"name": "pending",
"description": "Package is yet to be received by Partner",
"date": "2026-05-04T12:16:00.000+00:00",
"comment": null
}
],
"callLogs": null
},
{
"partnerRef": "GH545728",
"trackingNumber": "A797CA0A",
"customerName": "Kwabena Azaglo",
"customerPhone1": "+233549632604",
"customerPhone2": null,
"altPhone": null,
"destinationRegion": "Greater Accra",
"destinationCity": "Kwashieman",
"destinationAddressLine1": "23 Abiriw Street",
"destinationAddressLine2": null,
"length": 30,
"height": 20,
"weight": 5.5,
"description": "Test package",
"units": 1,
"type": "box",
"value": 20,
"amountToCollect": 20,
"paymentCollector": "shaq",
"paymentStatus": "unpaid",
"handling": "normal",
"specialInstructions": null,
"status": "pending",
"statusDescription": "Package is yet to be received by Partner",
"latitude": null,
"longitude": null,
"proofPhotoUrl": null,
"receivedAt": null,
"isReplacement": true,
"action": "return",
"items": [
{
"name": "Bluetooth",
"quantity": 3
}
],
"rescheduledDate": null,
"deliveredAt": null,
"eta": null,
"maxEta": null,
"deliveryAttempts": 0,
"fulfillmentStage": null,
"fulfillmentStatus": null,
"pickedAt": null,
"packedAt": null,
"cancelledAt": null,
"trackingHistory": [
{
"name": "pending",
"description": "Package is yet to be received by Partner",
"date": "2026-05-04T12:16:00.000+00:00",
"comment": null
}
],
"callLogs": null
}
]
}
Get Package Label
Get the label of a specific package
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization |
bearer |
Required. |
Response
200
{
"message": "Request successful",
"data": {
"type": "base64",
"media_type": "application/pdf",
"data": "JVBERi0xLjQKMSAw..."
}
}
202
404