This guide is for developers at order platforms (checkouts, CRMs, call-center and subscription systems) connecting to a merchant or 3PL that fulfills on Warehance. Your platform sends each order to Warehance over HTTPS, the warehouse picks, packs and ships it, and your platform reads the shipments and tracking numbers back.
Throughout this guide, your customer is the brand or warehouse that uses Warehance and asked you to connect. They create the connection in their Warehance account and send you the credentials described below.
If your platform already sends orders to a fulfillment house through an API with these paths (/stores/{store_id}/orders/new.json,/shipments.jsonand so on), it works with Warehance as is. Change the base URL and credentials. Every field your integration reads today is still returned; Warehance addsfulfillment_statusand per-parcel tracking (shipment_parcels) on top.

How It Works
- You push orders. Warehance never pulls from your platform. Each new order is one
POST. - The warehouse fulfills them. The order lands in your customer's Warehance account like an order from any other sales channel. Their product mappings, holds, automation rules and warehouse routing all apply.
- You poll for shipments. Warehance doesn't send webhooks to your platform. Read new shipments on a schedule and write the tracking numbers back to your orders.
- You can change an order until work starts. While its
statusisunverified, you can edit the address, change items or cancel. Once the warehouse starts picking, batches, splits or merges the order, it's locked. - One connection per store. Each store your customer connects has its own credentials and store ID. A customer with three brands on your platform gives you three sets.
What You'll Get From Your Customer
Your customer creates the connection in Warehance and sends you four values:
| Value | Example | How you use it |
|---|---|---|
| Base URL | https://app.warehance.com/api/v1/fulfillment-api/api | Prefix for every request |
| Username | api-1a2b3c4d5e6f7a8b@stores.warehance.com | HTTP Basic username |
| API Key | 48 characters | HTTP Basic password |
| Store ID | 7f3c2a10-5b8e-4d21-9c6f-2e4a8b9d0c11 | The {store_id} in every path |
Things to know about these credentials:
- The API key is shown to your customer once. If it's lost, they generate a new one and send it to you. The old key stops working the moment they do, so store it in your secrets manager, not in a support ticket or email thread.
- Key rotation is immediate. When your customer regenerates the key, requests with the old key get
401right away. The username and store ID don't change. Build a way for your customer (or your support team) to update the key without redeploying. - Moving from another fulfillment house. Your customer can keep the store ID, username and API key your platform already sends. In that case the only change on your side is the base URL.
- Deactivated stores. If your customer deactivates the store in Warehance, every request gets
401until they reactivate it.
Quick Start
Create an order:
curl -u "$USERNAME:$API_KEY" \
-H "Content-Type: application/json" \
-X POST "$BASE_URL/stores/$STORE_ID/orders/new.json" \
-d '{"order": {"order_number": "10001", "ship_name": "Jane Doe",
"address1": "1600 SW 4th Ave", "city": "Portland", "state": "OR",
"postal_code": "97201", "country": "US",
"requested_shipping_service": "Standard",
"items": [{"sku": "TEA-001", "quantity": 2}]}}'Read new shipments:
curl -u "$USERNAME:$API_KEY" \
"$BASE_URL/stores/$STORE_ID/shipments.json?updated_at_start=2026-10-26T14:00:00Z&per_page=500"Authentication
Every request uses HTTP Basic authentication (the username and API key) and has the store ID in the path:
GET {base_url}/stores/{store_id}/orders.json
Authorization: Basic base64(username:api_key)| Situation | Response |
|---|---|
| No credentials, unknown username or wrong key | 401, empty body, WWW-Authenticate: Basic realm="API Authorization" |
| Your customer hasn't generated a key yet | 401 (as above) |
| Store deactivated in Warehance | 401 (as above) |
| Valid credentials but a different store's {store_id} | 404 {"errors": ["Please check your store number"]} |
A401never has a JSON body. Check the status code before parsing, and don't retry a401in a loop: the credentials won't fix themselves. Alert your customer instead.
Conventions
- HTTPS only. All requests go to the base URL your customer gave you.
.jsonis optional./orders/new.jsonand/orders/neware the same endpoint.- JSON in and out. Send
Content-Type: application/json. Responses are JSON, except the empty401. - IDs are strings. Order, item, shipment and parcel IDs are JSON strings, even when numeric. The one exception is
sku_id, Warehance's product ID, which is a number. - Wrapped or flat bodies. Wrap the body (
{"order": {...}},{"order_item": {...}}) or send the fields at the top level. Both work. - Flexible types. Text fields accept numbers (
"order_number": 10001). Quantities accept numeric strings ("2"). - Timestamps. Filters take RFC 3339 (
2026-10-26T14:30:00Z).ship_dateis a plain date (2026-10-27). - Addresses are verified. Warehance standardizes the ship-to address, so it can come back different from what you sent (for example,
1600 SW 4TH AVE). Treat the response as the address the warehouse will ship to.
Objects
Order
| Field | Type | Description |
|---|---|---|
| id | string | Warehance's order ID. Stays the same after the warehouse splits or merges the order. |
| order_number | string | Your order number. Unique per store and can't change. |
| fulfillment_status | string | Where the order is in fulfillment: unfulfilled, in_progress, partially_fulfilled, fulfilled or cancelled. The same values as everywhere else in Warehance. See Order Lifecycle. |
| status | string | unverified, pending_shipment, shipped or cancelled. Kept for platforms already built against it. unverified is the only state that accepts edits. |
| ship_name, address1, address2, city, state, postal_code, country | string | The ship-to address after verification. country is a two-letter code. |
| items | array | The order's lines (Item objects). Deleted lines aren't included. |
| shipments | array | The order's shipments (Shipment objects), oldest first. Empty until the warehouse buys a label. |
Phone, email and order date are accepted on create and update but aren't returned.
Item
| Field | Type | Description |
|---|---|---|
| id | string | The line's ID, a UUID Warehance issues when the line is created. Use it to update or delete the line. |
| sku | string | The SKU you sent. |
| quantity | number | The quantity you sent. |
| sku_id | number or null | The warehouse's product ID for this SKU. null while the warehouse still has to match your SKU to one of its products. |
Shipment
A shipment is one label purchase. It can have several parcels (boxes), each with its own tracking number.
| Field | Type | Description |
|---|---|---|
| id | string | Warehance's shipment ID. |
| order_number | string | The order number of the (first) order it ships. |
| orders | array | Every order this shipment ships, as {"id", "order_number"}. More than one when the warehouse merged orders. |
| status | string | Always shipped. A shipment only exists once a label is bought. |
| tracking_number | string or null | The first parcel's tracking number. Use shipment_parcels to get every one. |
| tracking_url | string or null | The first parcel's tracking page, when the carrier has one. |
| carrier_code | string or null | Warehance's lowercase carrier code, such as usps, ups, fedex or dhl_express. |
| service_code | string or null | Warehance's lowercase service code, such as usps_ground_advantage or ups_ground. |
| ship_date | string | The label date, YYYY-MM-DD. |
| ship_name … country | string | The address the label was bought for. |
| shipment_parcels | array | Every parcel in the shipment (Parcel objects). |
Parcel
| Field | Type | Description |
|---|---|---|
| id | string | Warehance's parcel ID. |
| tracking_number | string | This parcel's tracking number. |
| tracking_url | string | This parcel's tracking page. Empty when the carrier has none. |
| weight | number | Ounces. |
| length, width, height | number | Inches. |
| box | string | The name of the box the warehouse packed it in, or Custom Box. |
| items | array | What's in this parcel. Each entry has order_item_id (your line's id), sku, quantity, product (id, name and sku of the warehouse product) and lot (id, lot_number and expiration_date, or null when the product isn't lot-tracked). |
A bundle or kit line can show up as its components initems, with the bundle line'sorder_item_idand the component SKUs and quantities.
The parcel fields have the same names and meaning as in Warehance's public API, so code written for either reads both.
Order Lifecycle

| fulfillment_status | Meaning | status |
|---|---|---|
| unfulfilled | Received, nothing picked or shipped yet. Includes orders on hold or waiting for stock. | unverified (or pending_shipment if split or merged) |
| in_progress | Being picked, or in a batch that hasn't shipped. | pending_shipment |
| partially_fulfilled | Some of it has shipped, the rest hasn't. Usually a split order. | pending_shipment |
| fulfilled | Everything has shipped. | shipped |
| cancelled | Cancelled by you or by the warehouse. | cancelled |
When can you edit or cancel? Only while status is unverified. That means the order is unfulfilled, isn't cancelled, and the warehouse hasn't split or merged it. Every other state returns 403 {"errors": ["Order can no longer be modified"]} for edits and cancels.
Things that surprise people:
- An order can skip
in_progress. Some warehouses buy the label without a separate pick step, so the order goes straight fromunfulfilledtofulfilled. Don't wait forin_progress. - Orders on hold stay
unfulfilled. Address problems, unmapped SKUs, unmapped shipping services, missing stock and manual holds all keep the orderunfulfilled(and editable) until the warehouse resolves them. fulfilleddoesn't always mean tracking. See Orders Fulfilled Without a Label.
Endpoints
All paths start with {base_url}/stores/{store_id}.
| Method and path | Does |
|---|---|
| POST /orders/new.json | Create an order |
| GET /orders/{id}.json | Get an order |
| GET /orders.json | List orders |
| PUT /orders/{id}/update.json | Update order fields |
| DELETE /orders/{id}.json | Cancel an order |
| GET /orders/{id}/items.json | List an order's items |
| GET /orders/{id}/items/{item_id}.json | Get one item |
| POST /orders/{id}/items/add.json | Add an item |
| PUT /orders/{id}/items/{item_id}.json | Change an item's quantity |
| DELETE /orders/{id}/items/{item_id}.json | Delete an item |
| GET /orders/{id}/shipments.json | List an order's shipments |
| GET /shipments.json | List shipments (the tracking feed) |
| GET /shipments/{shipment_id}.json | Get one shipment |
On every/orders/{id}endpoint, anorder_numberquery parameter takes priority over{id}. If you only stored your own order number, call/orders/0.json?order_number=10001.
Create an order
POST /stores/{store_id}/orders/new.json{
"order": {
"order_number": "10001",
"order_date": "2026-10-26T14:30:00Z",
"requested_shipping_service": "Standard",
"ship_name": "Jane Doe",
"address1": "1600 SW 4th Ave",
"address2": "Suite 300",
"city": "Portland",
"state": "OR",
"postal_code": "97201",
"country": "US",
"phone": "555-010-0000",
"email": "jane@example.com",
"items": [
{"sku": "TEA-001", "quantity": 1},
{"sku": "MUG-RED", "quantity": 1}
]
}
}| Field | Required | Notes |
|---|---|---|
| order_number | Yes | Unique per store. Can't be changed or reused, even after the order is cancelled. |
| ship_name | Yes | Recipient's full name. |
| address1 | Yes | |
| city | Yes | |
| country | Yes | Two-letter code (US) recommended. A country name also works. |
| state, postal_code | No | Send them wherever the country uses them, or the order is held for an address check. |
| address2, phone, email | No | Many carriers require a phone number for international shipments. |
| requested_shipping_service | No | Your shipping service name, such as Standard. See Shipping Services. |
| order_date | No | RFC 3339, or 2026-10-26 14:30:00 -0700. Without a timezone it's read as UTC. Missing or unreadable means the time Warehance received it. |
| items | No | Each line is a sku (required) and a quantity (1 or more). Usually sent with the order, but you can add lines later. |
Response. A new order returns 201 Created with the order. Its fulfillment_status is unfulfilled, status is unverified, and shipments is empty:
{
"order": {
"id": "231185181985",
"status": "unverified",
"fulfillment_status": "unfulfilled",
"order_number": "10001",
"ship_name": "Jane Doe",
"address1": "1600 SW 4TH AVE",
"address2": "Suite 300",
"city": "PORTLAND",
"state": "OR",
"postal_code": "97201",
"country": "US",
"shipments": [],
"items": [
{"id": "2bffbd71-f2c2-4e22-9ff6-d30009de3180", "sku_id": 231185181506, "quantity": 1, "sku": "TEA-001"},
{"id": "5e150770-2d25-4ecd-9a2c-40d58ced5715", "sku_id": 231185181508, "quantity": 1, "sku": "MUG-RED"}
]
}
}Save the order id and each item id against your order and lines.
- Creating is idempotent on
order_number. If the store already has that order number, you get200 OKwith the existing order and nothing changes, even if the body is different. After a timeout, send the same request again. To change an existing order, use the update and item endpoints. - Validation errors return
404, with one message per problem:{"errors": ["...", "..."]}. Malformed JSON also returns404. This matches the API many platforms were originally built against. - Filtered orders. If your customer filters which orders this store accepts, a filtered order returns
404{"errors": ["Order was rejected by the store's import filter"]}.
Get an order
GET /stores/{store_id}/orders/{id}.json
GET /stores/{store_id}/orders/0.json?order_number=10001Returns 200 {"order": {...}}. An unknown order returns 404 {"error": "could not find order"}. Note the singular error key, a string.
List orders
GET /stores/{store_id}/orders.json?updated_at_start=2026-10-26T00:00:00Z&per_page=100&page=1| Parameter | Notes |
|---|---|
| page | Starts at 1. A page past the end returns an empty list. |
| per_page | Default 25, maximum 500. |
| updated_at_start, updated_at_end | RFC 3339. Orders changed in that window, including changes made by the warehouse (picking, shipping, cancelling, splitting, merging). |
| order_number | Only that order. |
Returns 200 {"total": 120, "pages": 2, "orders": [...]}, oldest order first, one entry per order number (a split order is still one entry). A malformed updated_at returns 400 {"errors": "supplied updated time is invalid"}; here errors is a string.
Update an order
PUT /stores/{store_id}/orders/{id}/update.json{"order": {"address1": "200 Main St", "address2": "", "city": "Beaverton", "postal_code": "97005"}}Only the fields you send change. You can update requested_shipping_service, ship_name, address1, address2, city, state, postal_code, country, phone, email and order_date. Send "" to clear a field. The order_number can't change. Warehance verifies a changed address again.
Returns 200 with the order. Returns 403 when the order isn't unverified, and 400 for invalid fields.
Cancel an order
DELETE /stores/{store_id}/orders/{id}.jsonReturns 200 with the order, now cancelled. You can cancel only while status is unverified. Otherwise, including when the order is already cancelled, you get 403. If the warehouse has already started and the order hasn't shipped, ask your customer to cancel it in Warehance. You'll see cancelled on your next poll.
Items
| Request | Body | Response |
|---|---|---|
| GET /orders/{id}/items.json | 200 {"items": [...]} | |
| GET /orders/{id}/items/{item_id}.json | 200 {"order_item": {...}} | |
| POST /orders/{id}/items/add.json | {"order_item": {"sku": "TEA-002", "quantity": 1}} | 201 {"order_item": {...}}, with the new line's id |
| PUT /orders/{id}/items/{item_id}.json | {"order_item": {"quantity": 4}} | 200 {"order_item": {...}} |
| DELETE /orders/{id}/items/{item_id}.json | 200 {"items": [...]}: the lines left |
- Only the quantity can change. A different SKU is a different line: delete it and add the new one. Sending another
skureturns400{"errors": ["Item sku can't be changed; delete the item and add a new one"]}. - Quantities are 1 or more. To remove a line, delete it.
- Deleted lines disappear. They're left out of every response, and requesting them returns
404{"errors": ["could not find item"]}. - Same SKU twice. Adding a SKU that's already on the order creates a second line. To change how many are ordered, update the existing line instead.
- Cancelling the whole order. Use
DELETE /orders/{id}.json, not delete every line. An order with no lines can't ship, but it isn't cancelled either. - The editing rule applies. Adding, changing or deleting a line on an order that isn't
unverifiedreturns403.
Shipments
| Request | Response |
|---|---|
| GET /orders/{id}/shipments.json | 200 {"shipments": [...]} for one order. Empty until a label is bought. |
| GET /shipments.json | 200 {"total", "pages", "shipments": [...]}, the store's shipments, oldest first. Takes the same page, per_page, updated_at_start, updated_at_end and order_number parameters as the order list. |
| GET /shipments/{shipment_id}.json | 200 {"shipment": {...}}. An unknown ID returns 200 with {"shipment": null}, not 404. |
A shipped order with two boxes looks like this:
{
"order": {
"id": "231185181985",
"status": "shipped",
"fulfillment_status": "fulfilled",
"order_number": "10001",
"ship_name": "Jane Doe",
"address1": "1600 SW 4TH AVE",
"address2": "Suite 300",
"city": "PORTLAND",
"state": "OR",
"postal_code": "97201",
"country": "US",
"shipments": [
{
"id": "231185181482",
"order_number": "10001",
"status": "shipped",
"tracking_number": "9400111899223197428490",
"tracking_url": "https://tools.usps.com/go/TrackConfirmAction?tLabels=9400111899223197428490",
"carrier_code": "usps",
"service_code": "usps_ground_advantage",
"ship_date": "2026-10-27",
"orders": [{"id": "231185181985", "order_number": "10001"}],
"ship_name": "Jane Doe",
"address1": "1600 SW 4TH AVE",
"address2": "Suite 300",
"city": "PORTLAND",
"state": "OR",
"postal_code": "97201",
"country": "US",
"shipment_parcels": [
{
"id": "231185181484",
"tracking_number": "9400111899223197428490",
"tracking_url": "https://tools.usps.com/go/TrackConfirmAction?tLabels=9400111899223197428490",
"weight": 12,
"height": 6,
"width": 6,
"length": 6,
"box": "6x6x6 Box",
"items": [
{
"quantity": 1,
"product": {"id": 231185181506, "name": "Green Tea, 20 bags", "sku": "TEA-001"},
"order_item_id": "2bffbd71-f2c2-4e22-9ff6-d30009de3180",
"sku": "TEA-001",
"lot": null
}
]
},
{
"id": "231185181485",
"tracking_number": "9400111899223197428506",
"tracking_url": "https://tools.usps.com/go/TrackConfirmAction?tLabels=9400111899223197428506",
"weight": 16,
"height": 6,
"width": 6,
"length": 6,
"box": "6x6x6 Box",
"items": [
{
"quantity": 1,
"product": {"id": 231185181508, "name": "Red Mug", "sku": "MUG-RED"},
"order_item_id": "5e150770-2d25-4ecd-9a2c-40d58ced5715",
"sku": "MUG-RED",
"lot": {"id": 231185190011, "lot_number": "L2026-10", "expiration_date": "2028-10-01T00:00:00Z"}
}
]
}
]
}
],
"items": [
{"id": "2bffbd71-f2c2-4e22-9ff6-d30009de3180", "sku_id": 231185181506, "quantity": 1, "sku": "TEA-001"},
{"id": "5e150770-2d25-4ecd-9a2c-40d58ced5715", "sku_id": 231185181508, "quantity": 1, "sku": "MUG-RED"}
]
}
}Shipments, Parcels and Tracking
- One shipment, many boxes. When the warehouse packs an order in several boxes, it's one shipment with several entries in
shipment_parcels, each with its own tracking number. The shipment-leveltracking_numberis only the first box's. If your platform can store several tracking numbers per order, read them fromshipment_parcels. - Which line is in which box. Each parcel's
itemslists the order lines (order_item_id) and quantities in that box, plus the lot shipped when the product is lot-tracked. Use it if your platform tracks line-level fulfillment. - One order, many shipments. An order can have more than one shipment: when it's split, when part of it ships later, or when the warehouse sends a replacement. Always handle a list.
- Voided labels. If the warehouse voids a label, that shipment disappears from every response. A replacement label shows up as a new shipment with a new
id. When you see a new shipment for an order you already have tracking for, re-read the order and store its current shipments. - Carrier and service codes are Warehance's own lowercase codes, the same on every shipment regardless of which carrier account the warehouse used. Map the ones your platform needs and fall back to showing the raw code.
- Delivery status isn't included. The API reports that an order shipped, not where the package is. Use
tracking_urlor the carrier to follow it.
Split and Merged Orders
The warehouse can split one of your orders into several shipments, for example to ship in-stock items first. It can also merge several of your orders to the same address into one shipment. Your view of the orders doesn't change:

- Your order keeps its
idandorder_number. Both still work, and the order list still has one entry per order number. - Split orders list every shipment made so far.
fulfillment_statusispartially_fulfilleduntil the last part ships, thenfulfilled. The order'sitemsdon't change. - Merged orders each list the shared shipment, and its
orderslists all of them. Write the same tracking to each order. Within an order (GET /orders/{id}), the shipment's parcels list only that order's lines;GET /shipments/{id}lists every line. - No more edits. Once split or merged,
statusispending_shipmentand edits and cancels return403, even though nothing has shipped yet.
Orders Fulfilled Without a Label
Sometimes a warehouse marks an order as shipped without buying a label in Warehance: local pickup, freight booked outside Warehance, or an order fulfilled by hand. The order becomes fulfilled (status shipped) with no shipments and no tracking number. Close the order on your side as fulfilled without tracking. Don't keep polling it for tracking that will never come.
SKUs and Products
- Send the SKU exactly as your customer's products use it. A matching SKU goes straight into fulfillment, and the item's
sku_idis the product it matched. - Unknown SKUs are accepted, never rejected. Depending on your customer's settings, Warehance either adds the SKU as a new product (with no stock yet), or holds the order until your customer maps your SKU to one of their products. Until it's mapped,
sku_idisnull. Either way the order waits,unfulfilled, until your customer resolves it. - Bundles and multi-packs. Your customer can map your SKU to a bundle or a multiple of a product. The warehouse picks the components; your line stays as you sent it.
- Share your SKU list with your customer before going live, so they can map SKUs ahead of the first order.
Shipping Services
requested_shipping_service is the shipping option your customer's shopper chose, such as Standard or Expedited. Your customer maps each service name your platform sends to one of their carrier services once. Until a new name is mapped, orders with it are held.
- Send a small, fixed set of names, not free text or prices.
- Tell your customer every name you might send so they can map them before launch.
- Changing an order's
requested_shipping_servicewith an update works only while it'sunverified.
Holds and Delays
An order can sit unfulfilled for reasons only your customer can resolve. None of these produce an API error; the order simply doesn't ship yet:
| Reason | What fixes it |
|---|---|
| The address couldn't be verified | You send a corrected address with PUT …/update.json, or your customer fixes it |
| A SKU isn't mapped to a product | Your customer maps it |
| A shipping service name isn't mapped | Your customer maps it |
| Not enough stock | The warehouse receives more stock |
| A manual or automated hold (fraud review, hold-until date and so on) | Your customer releases it |
If an order stays unfulfilled much longer than your customer's usual handling time, check with them before changing or cancelling it.
Concurrency and Retries
- One change at a time per order. If two requests change the same order at once, one can get
409{"errors": ["Order is being updated, try again"]}. Send changes to the same order in sequence, and retry a409after a second or two. - Parallel across orders is fine. Creating or reading different orders in parallel works. Keep it to a handful of concurrent requests per store.
- Retry safely. Creates are idempotent on
order_number, and reads have no side effects. Retry timeouts,409and5xxwith exponential backoff. Don't retry400,403or404unchanged. - Include the request ID. A
500response has arequest_id. Log it, and include it when you report a problem to your customer.
Recommended Integration
- Create each order once it's final (paid, approved, past any cancellation window your platform has). Store the returned order
idand itemids. If the request times out, send it again. - Send changes only while
unverified. If an edit or cancel returns403, the warehouse has started. Contact your customer instead of retrying. - Poll the shipments feed on a schedule, as shown below.
- Write tracking for every order in each shipment's
orders, with every parcel's tracking number if your platform supports more than one. - Close out orders when
fulfillment_statusisfulfilledorcancelled. To check specific orders, useGET /orders.json?order_number=…orGET /orders/{id}.json. Don't page through every order. - Watch for authentication failures. A
401means the key was rotated or the store deactivated. Alert your customer and pause the store's sync, rather than retrying.

- Overlap the window. Start each poll a few minutes before the last successful one started, so nothing is missed at the boundary.
- Deduplicate on shipment
id. A shipment can show up in more than one poll; itsupdated_atchanges when the warehouse updates it. - Read every page. Keep requesting while
page < pages. - Save the window only after success. If a poll fails halfway through, the next poll starts from the same point.
Edge Cases Checklist
| Area | What to handle |
|---|---|
| Duplicates | Sending an order number that already exists returns the existing order with 200, even if it's cancelled. Order numbers can't be reused in a store. |
| Order numbers | A number is stored as text: 10001 and "10001" are the same order. |
| Addresses | Responses return the verified address, which can differ from what you sent. |
| Before a label | Orders with no label have "shipments": []. |
| Several shipments | An order can have more than one shipment (split, partial or replacement). |
| Several boxes | A shipment can have several parcels, each with its own tracking number. |
| Merged orders | A shipment can belong to several of your orders. |
| Voided labels | The voided shipment disappears. A replacement label is a new shipment with a new id. |
| No label | An order can be fulfilled with no shipments (shipped without a Warehance label). |
| Skipped states | An order can go straight from unfulfilled to fulfilled. |
| Warehouse cancels | The warehouse can cancel an order at any point before it ships. You'll see cancelled when you poll. |
| Split or merged | These orders can't be edited, even while still unfulfilled. |
| Items | Deleted lines disappear from responses. A line's SKU can't change. sku_id can be null while your customer maps a SKU. |
| Unknown shipment | GET /shipments/{id}.json returns 200 with {"shipment": null}. |
| Error shapes | An unknown order returns {"error": "..."} (a string). A bad updated_at returns {"errors": "..."} (a string). Everything else returns {"errors": [...]} (a list). |
| Error codes | Validation errors return 404 on create and 400 on updates. |
Errors
| Status | Body | Meaning | What to do |
|---|---|---|---|
| 401 | empty | No or wrong credentials, no key yet, or store deactivated | Check the username and key. Ask your customer if they rotated the key or deactivated the store. Don't retry in a loop. |
| 404 | {"errors": ["Please check your store number"]} | {store_id} belongs to a different store than these credentials | Use the store ID that goes with this username. |
| 404 | {"errors": [...]} from create | Missing or invalid fields, malformed JSON, or the store's import filter | Fix what's listed and send again. |
| 404 | {"error": "could not find order"} | No order with that ID or order_number in this store | Check the ID, or use ?order_number=. |
| 404 | {"errors": ["could not find item"]} | No such line on the order, or it was deleted | Re-read the order's items. |
| 400 | {"errors": [...]} | Invalid update, such as a SKU change or a quantity below 1 | Fix the request. |
| 400 | {"errors": "supplied updated time is invalid"} | updated_at_start or updated_at_end isn't RFC 3339 | Use a format like 2026-10-26T14:30:00Z. |
| 403 | {"errors": ["Order can no longer be modified"]} | The order isn't unverified any more | Don't retry. Contact your customer. |
| 409 | {"errors": ["Order is being updated, try again"]} | Another change to this order is in progress | Retry after a short wait. |
| 500 | {"error": "...", "request_id": "..."} | Unexpected error | Retry with backoff. If it keeps happening, send the request_id to your customer. |
Testing Your Integration
Ask your customer for a test store: a separate store in their Warehance account with its own credentials. Then walk through these scenarios before going live:
- Create an order and read it back by
idand by?order_number=. - Send the same order again and confirm you get
200and no duplicate. - Update the address, add a line, change a quantity and delete a line while
unverified. - Cancel an
unverifiedorder. - Have your customer ship an order in one box, then one in two boxes, and confirm your poll picks up every tracking number.
- Have your customer split an order and merge two orders, and confirm tracking lands on the right orders.
- Have your customer mark an order shipped without a label, and confirm your platform closes it without tracking.
- Try an edit after the warehouse has started and confirm you handle
403. - Have your customer regenerate the key and confirm your platform alerts on
401and accepts the new key.
Go-Live Checklist
- Credentials. The base URL, username, API key and store ID for the live store are stored, and you can update the key without a deploy.
- SKUs. Your customer has your SKU list and has mapped any SKUs that differ from their product SKUs.
- Shipping services. Your customer has the list of
requested_shipping_servicenames you send and has mapped each one. - Polling. Your shipments poll runs on a schedule with an overlapping window and de-duplication on shipment
id. - Edge cases. Multi-parcel shipments, multiple shipments per order, merged orders and fulfilled-without-tracking orders are handled.
- Alerts.
401and repeated5xxresponses alert someone.
FAQ
Can Warehance push tracking to our platform instead of us polling?
Not through this API. Poll GET /shipments.json with updated_at_start.
Can we send orders for several stores with one set of credentials?
No. Each store your customer connects has its own username, API key and store ID.
Why is status different from fulfillment_status?status is the field many platforms already read from APIs with this shape, so it stays for them. fulfillment_status uses the same values as the rest of Warehance and is more precise. Use fulfillment_status for fulfillment progress, and status unverified to know whether the order still accepts edits.
Can we change the order number?
No. To replace an order, cancel it while it's unverified and create a new order with a new number.
What happens if we send an order before payment clears?
The warehouse may ship it straight away. Only send orders that are ready to fulfill, and cancel with DELETE while unverified if something changes.
Who do we contact when something looks wrong?
Your customer: the brand or warehouse that gave you the credentials. Include the store ID, order numbers, request times and any request_id.