Order Intake API — Developer Guide

Updated 10/27/202615 min read

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.json and so on), it works with Warehance as is. Change the base URL and credentials. Every field your integration reads today is still returned; Warehance adds fulfillment_status and per-parcel tracking (shipment_parcels) on top.
Sequence diagram: your platform creates the order, may edit it while it is unverified, the warehouse picks, packs and buys a label, and your platform polls the shipments feed and writes tracking to each order
The whole integration: you push orders and poll for shipments. Warehance never calls your platform.

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 status is unverified, 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:

ValueExampleHow you use it
Base URLhttps://app.warehance.com/api/v1/fulfillment-api/apiPrefix for every request
Usernameapi-1a2b3c4d5e6f7a8b@stores.warehance.comHTTP Basic username
API Key48 charactersHTTP Basic password
Store ID7f3c2a10-5b8e-4d21-9c6f-2e4a8b9d0c11The {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 401 right 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 401 until 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)
SituationResponse
No credentials, unknown username or wrong key401, empty body, WWW-Authenticate: Basic realm="API Authorization"
Your customer hasn't generated a key yet401 (as above)
Store deactivated in Warehance401 (as above)
Valid credentials but a different store's {store_id}404 {"errors": ["Please check your store number"]}
A 401 never has a JSON body. Check the status code before parsing, and don't retry a 401 in 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.
  • .json is optional. /orders/new.json and /orders/new are the same endpoint.
  • JSON in and out. Send Content-Type: application/json. Responses are JSON, except the empty 401.
  • 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_date is 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

FieldTypeDescription
idstringWarehance's order ID. Stays the same after the warehouse splits or merges the order.
order_numberstringYour order number. Unique per store and can't change.
fulfillment_statusstringWhere the order is in fulfillment: unfulfilled, in_progress, partially_fulfilled, fulfilled or cancelled. The same values as everywhere else in Warehance. See Order Lifecycle.
statusstringunverified, 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, countrystringThe ship-to address after verification. country is a two-letter code.
itemsarrayThe order's lines (Item objects). Deleted lines aren't included.
shipmentsarrayThe 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

FieldTypeDescription
idstringThe line's ID, a UUID Warehance issues when the line is created. Use it to update or delete the line.
skustringThe SKU you sent.
quantitynumberThe quantity you sent.
sku_idnumber or nullThe 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.

FieldTypeDescription
idstringWarehance's shipment ID.
order_numberstringThe order number of the (first) order it ships.
ordersarrayEvery order this shipment ships, as {"id", "order_number"}. More than one when the warehouse merged orders.
statusstringAlways shipped. A shipment only exists once a label is bought.
tracking_numberstring or nullThe first parcel's tracking number. Use shipment_parcels to get every one.
tracking_urlstring or nullThe first parcel's tracking page, when the carrier has one.
carrier_codestring or nullWarehance's lowercase carrier code, such as usps, ups, fedex or dhl_express.
service_codestring or nullWarehance's lowercase service code, such as usps_ground_advantage or ups_ground.
ship_datestringThe label date, YYYY-MM-DD.
ship_name … countrystringThe address the label was bought for.
shipment_parcelsarrayEvery parcel in the shipment (Parcel objects).

Parcel

FieldTypeDescription
idstringWarehance's parcel ID.
tracking_numberstringThis parcel's tracking number.
tracking_urlstringThis parcel's tracking page. Empty when the carrier has none.
weightnumberOunces.
length, width, heightnumberInches.
boxstringThe name of the box the warehouse packed it in, or Custom Box.
itemsarrayWhat'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 in items, with the bundle line's order_item_id and 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

State diagram of fulfillment_status: unfulfilled moves to in_progress when picked or batched, then to fulfilled when the label is bought; split orders pass through partially_fulfilled; unfulfilled can be cancelled by you or the warehouse; in_progress can be cancelled by the warehouse; an order can also go straight from unfulfilled to fulfilled
fulfillment_status, with the matching status value in each box. Only unverified orders accept edits.
fulfillment_statusMeaningstatus
unfulfilledReceived, nothing picked or shipped yet. Includes orders on hold or waiting for stock.unverified (or pending_shipment if split or merged)
in_progressBeing picked, or in a batch that hasn't shipped.pending_shipment
partially_fulfilledSome of it has shipped, the rest hasn't. Usually a split order.pending_shipment
fulfilledEverything has shipped.shipped
cancelledCancelled 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 from unfulfilled to fulfilled. Don't wait for in_progress.
  • Orders on hold stay unfulfilled. Address problems, unmapped SKUs, unmapped shipping services, missing stock and manual holds all keep the order unfulfilled (and editable) until the warehouse resolves them.
  • fulfilled doesn't always mean tracking. See Orders Fulfilled Without a Label.

Endpoints

All paths start with {base_url}/stores/{store_id}.

Method and pathDoes
POST /orders/new.jsonCreate an order
GET /orders/{id}.jsonGet an order
GET /orders.jsonList orders
PUT /orders/{id}/update.jsonUpdate order fields
DELETE /orders/{id}.jsonCancel an order
GET /orders/{id}/items.jsonList an order's items
GET /orders/{id}/items/{item_id}.jsonGet one item
POST /orders/{id}/items/add.jsonAdd an item
PUT /orders/{id}/items/{item_id}.jsonChange an item's quantity
DELETE /orders/{id}/items/{item_id}.jsonDelete an item
GET /orders/{id}/shipments.jsonList an order's shipments
GET /shipments.jsonList shipments (the tracking feed)
GET /shipments/{shipment_id}.jsonGet one shipment
On every /orders/{id} endpoint, an order_number query 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}
    ]
  }
}
FieldRequiredNotes
order_numberYesUnique per store. Can't be changed or reused, even after the order is cancelled.
ship_nameYesRecipient's full name.
address1Yes
cityYes
countryYesTwo-letter code (US) recommended. A country name also works.
state, postal_codeNoSend them wherever the country uses them, or the order is held for an address check.
address2, phone, emailNoMany carriers require a phone number for international shipments.
requested_shipping_serviceNoYour shipping service name, such as Standard. See Shipping Services.
order_dateNoRFC 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.
itemsNoEach 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 get 200 OK with 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 returns 404. 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=10001

Returns 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
ParameterNotes
pageStarts at 1. A page past the end returns an empty list.
per_pageDefault 25, maximum 500.
updated_at_start, updated_at_endRFC 3339. Orders changed in that window, including changes made by the warehouse (picking, shipping, cancelling, splitting, merging).
order_numberOnly 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}.json

Returns 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

RequestBodyResponse
GET /orders/{id}/items.json200 {"items": [...]}
GET /orders/{id}/items/{item_id}.json200 {"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}.json200 {"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 sku returns 400 {"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 unverified returns 403.

Shipments

RequestResponse
GET /orders/{id}/shipments.json200 {"shipments": [...]} for one order. Empty until a label is bought.
GET /shipments.json200 {"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}.json200 {"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-level tracking_number is only the first box's. If your platform can store several tracking numbers per order, read them from shipment_parcels.
  • Which line is in which box. Each parcel's items lists 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_url or 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:

Two panels. Split: your order 1001 produces Shipment A with two parcels and Shipment B with one parcel; the order is partially_fulfilled after A ships and fulfilled once B ships, with the same id and order number. Merge: your orders 1002 and 1003 both point to Shipment C, whose orders list contains both
Split and merged orders keep their id and order number. Read shipments per order, and orders per shipment.
  • Your order keeps its id and order_number. Both still work, and the order list still has one entry per order number.
  • Split orders list every shipment made so far. fulfillment_status is partially_fulfilled until the last part ships, then fulfilled. The order's items don't change.
  • Merged orders each list the shared shipment, and its orders lists 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, status is pending_shipment and edits and cancels return 403, 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_id is 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_id is null. 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_service with an update works only while it's unverified.

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:

ReasonWhat fixes it
The address couldn't be verifiedYou send a corrected address with PUT …/update.json, or your customer fixes it
A SKU isn't mapped to a productYour customer maps it
A shipping service name isn't mappedYour customer maps it
Not enough stockThe 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 a 409 after 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, 409 and 5xx with exponential backoff. Don't retry 400, 403 or 404 unchanged.
  • Include the request ID. A 500 response has a request_id. Log it, and include it when you report a problem to your customer.

Recommended Integration

  1. Create each order once it's final (paid, approved, past any cancellation window your platform has). Store the returned order id and item ids. If the request times out, send it again.
  2. Send changes only while unverified. If an edit or cancel returns 403, the warehouse has started. Contact your customer instead of retrying.
  3. Poll the shipments feed on a schedule, as shown below.
  4. Write tracking for every order in each shipment's orders, with every parcel's tracking number if your platform supports more than one.
  5. Close out orders when fulfillment_status is fulfilled or cancelled. To check specific orders, use GET /orders.json?order_number=… or GET /orders/{id}.json. Don't page through every order.
  6. Watch for authentication failures. A 401 means the key was rotated or the store deactivated. Alert your customer and pause the store's sync, rather than retrying.
Flowchart: every 15 to 60 minutes, set since to the start of the last successful poll minus 5 minutes, request the shipments feed page by page, skip shipment IDs already processed, save every parcel's tracking for each order in the shipment's orders, then save the poll start time
A tracking poll. The overlap and the processed-ID check make sure no shipment is missed or written twice.
  • 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; its updated_at changes 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

AreaWhat to handle
DuplicatesSending 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 numbersA number is stored as text: 10001 and "10001" are the same order.
AddressesResponses return the verified address, which can differ from what you sent.
Before a labelOrders with no label have "shipments": [].
Several shipmentsAn order can have more than one shipment (split, partial or replacement).
Several boxesA shipment can have several parcels, each with its own tracking number.
Merged ordersA shipment can belong to several of your orders.
Voided labelsThe voided shipment disappears. A replacement label is a new shipment with a new id.
No labelAn order can be fulfilled with no shipments (shipped without a Warehance label).
Skipped statesAn order can go straight from unfulfilled to fulfilled.
Warehouse cancelsThe warehouse can cancel an order at any point before it ships. You'll see cancelled when you poll.
Split or mergedThese orders can't be edited, even while still unfulfilled.
ItemsDeleted lines disappear from responses. A line's SKU can't change. sku_id can be null while your customer maps a SKU.
Unknown shipmentGET /shipments/{id}.json returns 200 with {"shipment": null}.
Error shapesAn unknown order returns {"error": "..."} (a string). A bad updated_at returns {"errors": "..."} (a string). Everything else returns {"errors": [...]} (a list).
Error codesValidation errors return 404 on create and 400 on updates.

Errors

StatusBodyMeaningWhat to do
401emptyNo or wrong credentials, no key yet, or store deactivatedCheck 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 credentialsUse the store ID that goes with this username.
404{"errors": [...]} from createMissing or invalid fields, malformed JSON, or the store's import filterFix what's listed and send again.
404{"error": "could not find order"}No order with that ID or order_number in this storeCheck the ID, or use ?order_number=.
404{"errors": ["could not find item"]}No such line on the order, or it was deletedRe-read the order's items.
400{"errors": [...]}Invalid update, such as a SKU change or a quantity below 1Fix the request.
400{"errors": "supplied updated time is invalid"}updated_at_start or updated_at_end isn't RFC 3339Use a format like 2026-10-26T14:30:00Z.
403{"errors": ["Order can no longer be modified"]}The order isn't unverified any moreDon't retry. Contact your customer.
409{"errors": ["Order is being updated, try again"]}Another change to this order is in progressRetry after a short wait.
500{"error": "...", "request_id": "..."}Unexpected errorRetry 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:

  1. Create an order and read it back by id and by ?order_number=.
  2. Send the same order again and confirm you get 200 and no duplicate.
  3. Update the address, add a line, change a quantity and delete a line while unverified.
  4. Cancel an unverified order.
  5. Have your customer ship an order in one box, then one in two boxes, and confirm your poll picks up every tracking number.
  6. Have your customer split an order and merge two orders, and confirm tracking lands on the right orders.
  7. Have your customer mark an order shipped without a label, and confirm your platform closes it without tracking.
  8. Try an edit after the warehouse has started and confirm you handle 403.
  9. Have your customer regenerate the key and confirm your platform alerts on 401 and 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_service names 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. 401 and repeated 5xx responses 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.

Still need help?

Can't find what you're looking for? Our support team is happy to help.

Contact Support