---
updatedAt: 2026-11-21T23:54:46.000Z
agentTools:
  projectIndex: https://developer.warehance.com/llms.txt
---

# Create Order

Create an order. A new order returns `201` with `fulfillment_status` `unfulfilled`, `status` `unverified` and no shipments. Save the order `id` and each item `id` against your order and lines.

- **Idempotent on `order_number`.** If the store already has that order number, you get `200` with the existing order and nothing changes, even if the body is different or the order is cancelled. After a timeout, send the same request again. To change an order, use the update and item endpoints.
- **Unknown SKUs are accepted.** The order waits, `unfulfilled`, until your customer maps the SKU to one of their products. Until then the item's `sku_id` is `null`.
- **Validation errors return `404`**, with one message per problem. Malformed JSON also returns `404`. If your customer filters which orders this store accepts, a filtered order returns `404` `{"errors": ["Order was rejected by the store's import filter"]}`.
- The body can be wrapped (`{"order": {...}}`) or have the order's fields at the top level.


# OpenAPI definition

````json
{
  "openapi": "3.0.0",
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "info": {
    "title": "Warehance Order Intake API",
    "version": "1.0.0",
    "description": "The Order Intake API is for order platforms (checkouts, CRMs, call-center and subscription systems) that send orders to a brand or 3PL fulfilling on Warehance. Your platform pushes each order to Warehance, the warehouse picks, packs and ships it, and your platform polls for shipments and tracking numbers.\n\nIt's a different API from the main Warehance API, with its own base URL and its own credentials (one set per store).\n\nFor the full integration guide (lifecycle diagrams, split and merged orders, polling, testing and go-live checklists), see the [Order Intake API guides](https://developer.warehance.com/docs/order-intake-api). Building with a coding agent? Point it at [Building With an AI Agent](https://developer.warehance.com/docs/order-intake-ai-agents).\n\n## How It Works\n\n- **You push orders.** Warehance never pulls from your platform. Each new order is one `POST`.\n- **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.\n- **You poll for shipments.** Warehance doesn't send webhooks. Read `GET /shipments.json` with `updated_at_start` on a schedule and write the tracking numbers back to your orders.\n- **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, edits return `403`.\n- **One connection per store.** Each store your customer connects has its own credentials and store ID.\n\n## Authentication\n\nYour customer creates the connection in Warehance and sends you four values:\n\n| Value | Example | How you use it |\n|---|---|---|\n| Base URL | `https://app.warehance.com/api/v1/fulfillment-api/api` | Prefix for every request |\n| Username | `api-1a2b3c4d5e6f7a8b@stores.warehance.com` | HTTP Basic username |\n| API Key | 48 characters | HTTP Basic password |\n| Store ID | `7f3c2a10-5b8e-4d21-9c6f-2e4a8b9d0c11` | The `{store_id}` in every path |\n\nEvery request uses HTTP Basic authentication with the username and API key, and has the store ID in the path:\n\n```http\nGET /api/v1/fulfillment-api/api/stores/7f3c2a10-5b8e-4d21-9c6f-2e4a8b9d0c11/orders.json HTTP/1.1\nHost: app.warehance.com\nAuthorization: Basic base64(username:api_key)\n```\n\n- **No credentials, an unknown username, a wrong key, no key generated yet, or a deactivated store** return `401` with an empty `text/plain` body and `WWW-Authenticate: Basic realm=\"API Authorization\"`. Don't retry a `401` in a loop; alert your customer.\n- **Valid credentials with another store's `{store_id}`** return `404` `{\"errors\": [\"Please check your store number\"]}`.\n- **The API key is shown to your customer once.** When they regenerate it, the old key stops working immediately. The username and store ID don't change.\n\n## Conventions\n\n- **`.json` is optional.** `/orders/new.json` and `/orders/new` are the same endpoint.\n- **JSON in and out.** Send `Content-Type: application/json`. Responses are JSON, except the empty `401`.\n- **IDs are strings.** Order, item, shipment and parcel IDs are JSON strings, even when numeric. The exception is `sku_id`, Warehance's product ID, which is a number.\n- **Wrapped or flat bodies.** Wrap the body (`{\"order\": {...}}`, `{\"order_item\": {...}}`) or send the fields at the top level. Both work.\n- **Flexible types.** Text fields accept numbers (`\"order_number\": 10001`). Quantities accept numeric strings (`\"2\"`).\n- **Timestamps.** List filters take RFC 3339 (`2026-10-26T14:30:00Z`). `ship_date` is a plain date (`2026-10-27`).\n- **Addresses are verified.** Warehance standardizes the ship-to address, so it can come back different from what you sent. Treat the response as the address the warehouse will ship to.\n- **Look up by order number.** On every `/orders/{order_id}` endpoint, an `order_number` query parameter takes priority over `{order_id}`. If you only stored your own order number, call `/orders/0.json?order_number=10001`.\n\n## Pagination\n\n`GET /orders.json` and `GET /shipments.json` use cursor pagination, oldest first.\n\n1. Request the first page with your filters and `limit` (1–500, default 25). Don't send `cursor`.\n2. If the response has `has_next_page: true`, request the next page with `cursor` set to the response's `next_cursor`. Keep the same filters and `limit`.\n3. Repeat until `has_next_page` is `false`.\n\n```http\nGET /stores/{store_id}/shipments.json?updated_at_start=2026-10-26T14:00:00Z&limit=500\nGET /stores/{store_id}/shipments.json?updated_at_start=2026-10-26T14:00:00Z&limit=500&cursor=eyJ2Ijoy...\n```\n\nA cursor that isn't a `next_cursor` from this API returns `400` `{\"errors\": [\"supplied cursor is invalid\"]}`.\n\n## Order Status\n\n| `fulfillment_status` | Meaning | `status` |\n|---|---|---|\n| `unfulfilled` | Received, nothing picked or shipped yet. Includes orders on hold or waiting for stock. | `unverified` (or `pending_shipment` once split or merged) |\n| `in_progress` | Being picked, or in a batch that hasn't shipped. | `pending_shipment` |\n| `partially_fulfilled` | Some of it has shipped, the rest hasn't. Usually a split order. | `pending_shipment` |\n| `fulfilled` | Everything has shipped. | `shipped` |\n| `cancelled` | Cancelled by you or by the warehouse. | `cancelled` |\n\nUse `fulfillment_status` for fulfillment progress, and `status` `unverified` to know whether the order still accepts edits. An order can go straight from `unfulfilled` to `fulfilled`, and can be `fulfilled` with no shipments when the warehouse ships it without buying a label in Warehance.\n\n## Why an Order Isn't Shipping\n\nAn order on hold or waiting for stock stays `unfulfilled`. `not_ready_to_ship_types` says why: each flag is `true` while that reason applies, such as `address_hold` (the address failed verification), `has_unallocated_products` (not enough stock), `has_unmapped_products`, `shipping_method_not_mapped` or a hold like `fraud_hold`. Read it from Get Order or List Orders. A change to the flags also changes the order's `updated_at`, so your `updated_at_start` poll picks it up.\n\n## Errors\n\n| Status | Body | Meaning |\n|---|---|---|\n| `401` | empty | No or wrong credentials, no key yet, or the store is deactivated |\n| `404` | `{\"errors\": [\"Please check your store number\"]}` | `{store_id}` belongs to a different store than these credentials |\n| `404` | `{\"errors\": [...]}` from create | Missing or invalid fields, malformed JSON, or the store's import filter rejected the order |\n| `404` | `{\"error\": \"could not find order\"}` | No order with that ID or `order_number` in this store |\n| `404` | `{\"errors\": [\"could not find item\"]}` | No such line on the order, or it was deleted |\n| `400` | `{\"errors\": [...]}` | Invalid update, such as a SKU change or a quantity below 1 |\n| `400` | `{\"errors\": \"supplied updated time is invalid\"}` | `updated_at_start` or `updated_at_end` isn't RFC 3339 |\n| `400` | `{\"errors\": [\"supplied cursor is invalid\"]}` | `cursor` isn't a `next_cursor` from this API |\n| `403` | `{\"errors\": [\"Order can no longer be modified\"]}` | The order isn't `unverified` any more |\n| `409` | `{\"errors\": [\"Order is being updated, try again\"]}` | Another change to this order is in progress; retry after a short wait |\n| `500` | `{\"error\": \"...\", \"request_id\": \"...\"}` | Unexpected error; retry with backoff and share the `request_id` if it persists |\n\nNote the three error shapes: an unknown order is `{\"error\": \"...\"}` (a string), a bad `updated_at` is `{\"errors\": \"...\"}` (a string), and everything else is `{\"errors\": [...]}` (a list).\n"
  },
  "servers": [
    {
      "url": "https://app.warehance.com/api/v1/fulfillment-api/api",
      "description": "Production"
    },
    {
      "url": "https://staging.warehance.com/api/v1/fulfillment-api/api",
      "description": "Staging (only for stores created on staging.warehance.com)"
    }
  ],
  "security": [
    {
      "BasicAuthentication": []
    }
  ],
  "tags": [
    {
      "name": "Orders",
      "description": "Create, read, update and cancel the orders your platform sends"
    }
  ],
  "paths": {
    "/stores/{store_id}/orders/new.json": {
      "post": {
        "summary": "Create Order",
        "operationId": "createOrder",
        "description": "Create an order. A new order returns `201` with `fulfillment_status` `unfulfilled`, `status` `unverified` and no shipments. Save the order `id` and each item `id` against your order and lines.\n\n- **Idempotent on `order_number`.** If the store already has that order number, you get `200` with the existing order and nothing changes, even if the body is different or the order is cancelled. After a timeout, send the same request again. To change an order, use the update and item endpoints.\n- **Unknown SKUs are accepted.** The order waits, `unfulfilled`, until your customer maps the SKU to one of their products. Until then the item's `sku_id` is `null`.\n- **Validation errors return `404`**, with one message per problem. Malformed JSON also returns `404`. If your customer filters which orders this store accepts, a filtered order returns `404` `{\"errors\": [\"Order was rejected by the store's import filter\"]}`.\n- The body can be wrapped (`{\"order\": {...}}`) or have the order's fields at the top level.\n",
        "tags": [
          "Orders"
        ],
        "parameters": [
          {
            "name": "store_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "7f3c2a10-5b8e-4d21-9c6f-2e4a8b9d0c11"
            },
            "description": "The store ID your customer sent you with the credentials. It must belong to the same store as the username."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "order": {
                    "type": "object",
                    "required": [
                      "order_number",
                      "ship_name",
                      "address1",
                      "city",
                      "country"
                    ],
                    "properties": {
                      "order_number": {
                        "type": "string",
                        "example": "10001",
                        "description": "Your order number. Unique per store, and can't be changed or reused, even after the order is cancelled. Numbers are accepted and stored as text, so `10001` and `\"10001\"` are the same order.\n"
                      },
                      "order_date": {
                        "type": "string",
                        "example": "2026-10-26T14:30:00Z",
                        "description": "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 the order.\n"
                      },
                      "requested_shipping_service": {
                        "type": "string",
                        "example": "Standard",
                        "description": "The shipping option the shopper chose, such as `Standard` or `Expedited`. Your customer maps each name to one of their carrier services once; until a new name is mapped, its orders are held. Send a small, fixed set of names.\n"
                      },
                      "ship_name": {
                        "type": "string",
                        "example": "Jane Doe",
                        "description": "The recipient's full name."
                      },
                      "address1": {
                        "type": "string",
                        "example": "1600 SW 4th Ave"
                      },
                      "address2": {
                        "type": "string",
                        "example": "Suite 300"
                      },
                      "city": {
                        "type": "string",
                        "example": "Portland"
                      },
                      "state": {
                        "type": "string",
                        "example": "OR",
                        "description": "Send it wherever the country uses states, or the order is held for an address check."
                      },
                      "postal_code": {
                        "type": "string",
                        "example": "97201",
                        "description": "Send it wherever the country uses postal codes, or the order is held for an address check."
                      },
                      "country": {
                        "type": "string",
                        "example": "US",
                        "description": "A two-letter country code is recommended. A country name also works."
                      },
                      "phone": {
                        "type": "string",
                        "example": "555-010-0000",
                        "description": "Accepted but not returned. Many carriers require a phone number for international shipments."
                      },
                      "email": {
                        "type": "string",
                        "example": "jane@example.com",
                        "description": "Accepted but not returned."
                      },
                      "currency": {
                        "type": "string",
                        "example": "GBP",
                        "description": "Optional. The ISO 4217 code all the order's amounts and item prices are in. Defaults to `USD`. Can't be changed after the order is created."
                      },
                      "subtotal": {
                        "type": "number",
                        "minimum": 0,
                        "example": 25,
                        "description": "Optional. The order's subtotal. Send the amounts when the warehouse needs them for customs, such as for international shipments. Numeric strings are accepted. Each amount defaults to `0`."
                      },
                      "shipping_amount": {
                        "type": "number",
                        "minimum": 0,
                        "example": 4.99,
                        "description": "Optional. What the shopper paid for shipping."
                      },
                      "tax_amount": {
                        "type": "number",
                        "minimum": 0,
                        "example": 5,
                        "description": "Optional. The order's tax."
                      },
                      "discount_amount": {
                        "type": "number",
                        "example": 0,
                        "description": "Optional. The order's discount."
                      },
                      "total_amount": {
                        "type": "number",
                        "minimum": 0,
                        "example": 34.99,
                        "description": "Optional. The order's total."
                      },
                      "invoice_number": {
                        "type": "string",
                        "example": "INV-10001",
                        "description": "Optional. The commercial invoice number, stored and returned as sent."
                      },
                      "invoice_date": {
                        "type": "string",
                        "example": "2026-10-26",
                        "description": "Optional. The invoice date, stored and returned as sent."
                      },
                      "items": {
                        "type": "array",
                        "description": "The order's lines. Usually sent with the order, but lines can be added later.",
                        "items": {
                          "type": "object",
                          "required": [
                            "sku",
                            "quantity"
                          ],
                          "properties": {
                            "sku": {
                              "type": "string",
                              "example": "TEA-001",
                              "description": "The SKU as your customer's products use it. Unknown SKUs are accepted: the order waits, `unfulfilled`, until your customer maps the SKU to a product.\n"
                            },
                            "quantity": {
                              "type": "integer",
                              "minimum": 1,
                              "example": 2,
                              "description": "1 or more. Numeric strings (`\"2\"`) are accepted."
                            },
                            "price": {
                              "type": "number",
                              "minimum": 0,
                              "example": 12.5,
                              "description": "Optional. The unit price paid, in the order's `currency`. Used for customs values. Numeric strings (`\"12.50\"`) are accepted. Defaults to `0`."
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "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",
                  "currency": "USD",
                  "subtotal": 25,
                  "shipping_amount": 4.99,
                  "tax_amount": 0,
                  "discount_amount": 0,
                  "total_amount": 29.99,
                  "items": [
                    {
                      "sku": "TEA-001",
                      "quantity": 1,
                      "price": 12.5
                    },
                    {
                      "sku": "MUG-RED",
                      "quantity": 1,
                      "price": 12.5
                    }
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The store already has this order number. The existing order is returned unchanged.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "order": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "231185181985",
                          "description": "Warehance's order ID. Stays the same after the warehouse splits or merges the order."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "unverified",
                            "pending_shipment",
                            "shipped",
                            "cancelled"
                          ],
                          "example": "unverified",
                          "description": "A simpler summary than `fulfillment_status`. `unverified` is the only status that accepts edits and cancels.\n"
                        },
                        "fulfillment_status": {
                          "type": "string",
                          "enum": [
                            "unfulfilled",
                            "in_progress",
                            "partially_fulfilled",
                            "fulfilled",
                            "cancelled"
                          ],
                          "example": "unfulfilled",
                          "description": "Where the order is in fulfillment, with the same values as everywhere else in Warehance."
                        },
                        "not_ready_to_ship_types": {
                          "type": "object",
                          "description": "Why the order can't ship yet, with the same flags as the main Warehance API. Each flag is `true` while that reason applies. All `false` means nothing is blocking the order. A split or merged order reports a flag if any of the orders shipping it has it.\n",
                          "properties": {
                            "client_shipping_paused": {
                              "type": "boolean",
                              "example": false,
                              "description": "Your customer has paused shipping for all their orders.\n"
                            },
                            "order_cancelled": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is cancelled.\n"
                            },
                            "order_is_already_fulfilled": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order has already shipped.\n"
                            },
                            "order_hold_until_date_in_future": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is held until a future date.\n"
                            },
                            "fraud_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on fraud hold.\n"
                            },
                            "address_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The ship-to address failed verification, or the order is on address hold. Send a corrected address while the order is `unverified`, or your customer fixes it.\n"
                            },
                            "payment_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on payment hold.\n"
                            },
                            "warehouse_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on warehouse hold.\n"
                            },
                            "store_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on store hold.\n"
                            },
                            "shipping_method_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on shipping method hold.\n"
                            },
                            "allocation_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on allocation hold.\n"
                            },
                            "shipping_method_not_mapped": {
                              "type": "boolean",
                              "example": false,
                              "description": "Your customer hasn't mapped the order's `requested_shipping_service` to a carrier service yet.\n"
                            },
                            "has_unmapped_products": {
                              "type": "boolean",
                              "example": false,
                              "description": "A line's SKU isn't mapped to one of your customer's products yet.\n"
                            },
                            "has_unallocated_products": {
                              "type": "boolean",
                              "example": false,
                              "description": "Not enough stock: at least one line is backordered. Can be `true` for a few seconds right after an order is created, before stock is allocated.\n"
                            },
                            "client_not_active": {
                              "type": "boolean",
                              "example": false,
                              "description": "Your customer's account at the warehouse isn't active.\n"
                            },
                            "only_companion_products": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order has only companion products (such as inserts), which don't ship on their own.\n"
                            },
                            "operator_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on operator hold.\n"
                            },
                            "cs_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on customer service hold.\n"
                            },
                            "store_not_active": {
                              "type": "boolean",
                              "example": false,
                              "description": "The store isn't active.\n"
                            },
                            "custom_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on one of your customer's custom holds.\n"
                            },
                            "hospital_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The warehouse flagged the order during picking because of an inventory problem.\n"
                            }
                          }
                        },
                        "order_number": {
                          "type": "string",
                          "example": "10001"
                        },
                        "ship_name": {
                          "type": "string",
                          "example": "Jane Doe"
                        },
                        "address1": {
                          "type": "string",
                          "example": "1600 SW 4TH AVE",
                          "description": "The ship-to address after verification, which can differ from what you sent."
                        },
                        "address2": {
                          "type": "string",
                          "example": "Suite 300"
                        },
                        "city": {
                          "type": "string",
                          "example": "PORTLAND"
                        },
                        "state": {
                          "type": "string",
                          "example": "OR"
                        },
                        "postal_code": {
                          "type": "string",
                          "example": "97201"
                        },
                        "country": {
                          "type": "string",
                          "example": "US"
                        },
                        "currency": {
                          "type": "string",
                          "example": "USD",
                          "description": "The currency of the amounts and item prices. `USD` unless you sent another."
                        },
                        "subtotal": {
                          "type": "number",
                          "example": 25
                        },
                        "shipping_amount": {
                          "type": "number",
                          "example": 4.99
                        },
                        "tax_amount": {
                          "type": "number",
                          "example": 0
                        },
                        "discount_amount": {
                          "type": "number",
                          "example": 0
                        },
                        "total_amount": {
                          "type": "number",
                          "example": 29.99
                        },
                        "invoice_number": {
                          "type": "string",
                          "example": "INV-10001",
                          "description": "Empty when none was sent."
                        },
                        "invoice_date": {
                          "type": "string",
                          "example": "2026-10-26",
                          "description": "Empty when none was sent."
                        },
                        "shipments": {
                          "type": "array",
                          "description": "The order's shipments, oldest first. Empty until the warehouse buys a label. A merged shipment's parcels list only this order's lines.",
                          "items": {
                            "type": "object",
                            "description": "One label purchase. It can have several parcels, each with its own tracking number. A voided shipment disappears from every response; a replacement label is a new shipment with a new `id`.\n",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "231185181482"
                              },
                              "order_number": {
                                "type": "string",
                                "example": "10001",
                                "description": "The order number of the (first) order it ships."
                              },
                              "tracking_number": {
                                "type": "string",
                                "nullable": true,
                                "example": "9400111899223197428490",
                                "description": "The first parcel's tracking number. Read `shipment_parcels` for every one."
                              },
                              "tracking_url": {
                                "type": "string",
                                "nullable": true,
                                "example": "https://tools.usps.com/go/TrackConfirmAction?tLabels=9400111899223197428490",
                                "description": "The first parcel's tracking page, when the carrier has one."
                              },
                              "ship_name": {
                                "type": "string",
                                "example": "Jane Doe"
                              },
                              "address1": {
                                "type": "string",
                                "example": "1600 SW 4TH AVE"
                              },
                              "address2": {
                                "type": "string",
                                "example": "Suite 300"
                              },
                              "city": {
                                "type": "string",
                                "example": "PORTLAND"
                              },
                              "state": {
                                "type": "string",
                                "example": "OR"
                              },
                              "postal_code": {
                                "type": "string",
                                "example": "97201"
                              },
                              "country": {
                                "type": "string",
                                "example": "US"
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "shipped"
                                ],
                                "example": "shipped",
                                "description": "Always `shipped`. A shipment only exists once a label is bought."
                              },
                              "carrier_code": {
                                "type": "string",
                                "nullable": true,
                                "example": "usps",
                                "description": "Warehance's lowercase carrier code, such as `usps`, `ups`, `fedex` or `dhl_express`."
                              },
                              "service_code": {
                                "type": "string",
                                "nullable": true,
                                "example": "usps_ground_advantage",
                                "description": "Warehance's lowercase service code, such as `usps_ground_advantage` or `ups_ground`."
                              },
                              "ship_date": {
                                "type": "string",
                                "format": "date",
                                "nullable": true,
                                "example": "2026-10-27",
                                "description": "The label date."
                              },
                              "orders": {
                                "type": "array",
                                "description": "Every order this shipment ships. More than one when the warehouse merged orders; write the tracking to each.",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "example": "231185181985"
                                    },
                                    "order_number": {
                                      "type": "string",
                                      "example": "10001"
                                    }
                                  }
                                }
                              },
                              "shipment_parcels": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "description": "One box of a shipment, with its own tracking number. Same field names and meaning as the main Warehance API's shipment parcels.",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "example": "231185181484"
                                    },
                                    "tracking_number": {
                                      "type": "string",
                                      "example": "9400111899223197428490"
                                    },
                                    "tracking_url": {
                                      "type": "string",
                                      "example": "https://tools.usps.com/go/TrackConfirmAction?tLabels=9400111899223197428490",
                                      "description": "This parcel's tracking page. Empty when the carrier has none."
                                    },
                                    "weight": {
                                      "type": "number",
                                      "example": 12,
                                      "description": "Ounces."
                                    },
                                    "height": {
                                      "type": "number",
                                      "example": 6,
                                      "description": "Inches."
                                    },
                                    "width": {
                                      "type": "number",
                                      "example": 6,
                                      "description": "Inches."
                                    },
                                    "length": {
                                      "type": "number",
                                      "example": 6,
                                      "description": "Inches."
                                    },
                                    "box": {
                                      "type": "string",
                                      "example": "6x6x6 Box",
                                      "description": "The name of the box the warehouse packed it in, or `Custom Box`."
                                    },
                                    "items": {
                                      "type": "array",
                                      "description": "What's in this parcel.",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "quantity": {
                                            "type": "integer",
                                            "example": 1
                                          },
                                          "product": {
                                            "type": "object",
                                            "description": "The warehouse product shipped.",
                                            "properties": {
                                              "id": {
                                                "type": "integer",
                                                "example": 231185181506
                                              },
                                              "name": {
                                                "type": "string",
                                                "example": "Green Tea, 20 bags"
                                              },
                                              "sku": {
                                                "type": "string",
                                                "example": "TEA-001"
                                              }
                                            }
                                          },
                                          "order_item_id": {
                                            "type": "string",
                                            "example": "2bffbd71-f2c2-4e22-9ff6-d30009de3180",
                                            "description": "Your line's `id`. A bundle or kit line can appear as its components, each with the bundle line's `order_item_id`."
                                          },
                                          "sku": {
                                            "type": "string",
                                            "example": "TEA-001"
                                          },
                                          "lot": {
                                            "type": "object",
                                            "nullable": true,
                                            "description": "The lot shipped, or `null` when the product isn't lot-tracked.",
                                            "properties": {
                                              "id": {
                                                "type": "integer",
                                                "example": 231185190011
                                              },
                                              "lot_number": {
                                                "type": "string",
                                                "example": "L2026-10"
                                              },
                                              "expiration_date": {
                                                "type": "string",
                                                "format": "date-time",
                                                "example": "2028-10-01T00:00:00Z"
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "items": {
                          "type": "array",
                          "description": "The order's lines. Deleted lines aren't included.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "2bffbd71-f2c2-4e22-9ff6-d30009de3180",
                                "description": "The line's ID, a UUID Warehance issues when the line is created. Use it to update or delete the line."
                              },
                              "sku_id": {
                                "type": "integer",
                                "nullable": true,
                                "example": 231185181506,
                                "description": "The warehouse's product ID for this SKU. `null` while your customer still has to map your SKU to one of their products."
                              },
                              "quantity": {
                                "type": "integer",
                                "example": 1,
                                "description": "The quantity you sent."
                              },
                              "sku": {
                                "type": "string",
                                "example": "TEA-001",
                                "description": "The SKU you sent."
                              },
                              "price": {
                                "type": "number",
                                "example": 12.5,
                                "description": "The unit price you sent, in the order's `currency`. `0` when none was sent, and on a bundle's component lines."
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "201": {
            "description": "The order was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "order": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "231185181985",
                          "description": "Warehance's order ID. Stays the same after the warehouse splits or merges the order."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "unverified",
                            "pending_shipment",
                            "shipped",
                            "cancelled"
                          ],
                          "example": "unverified",
                          "description": "A simpler summary than `fulfillment_status`. `unverified` is the only status that accepts edits and cancels.\n"
                        },
                        "fulfillment_status": {
                          "type": "string",
                          "enum": [
                            "unfulfilled",
                            "in_progress",
                            "partially_fulfilled",
                            "fulfilled",
                            "cancelled"
                          ],
                          "example": "unfulfilled",
                          "description": "Where the order is in fulfillment, with the same values as everywhere else in Warehance."
                        },
                        "not_ready_to_ship_types": {
                          "type": "object",
                          "description": "Why the order can't ship yet, with the same flags as the main Warehance API. Each flag is `true` while that reason applies. All `false` means nothing is blocking the order. A split or merged order reports a flag if any of the orders shipping it has it.\n",
                          "properties": {
                            "client_shipping_paused": {
                              "type": "boolean",
                              "example": false,
                              "description": "Your customer has paused shipping for all their orders.\n"
                            },
                            "order_cancelled": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is cancelled.\n"
                            },
                            "order_is_already_fulfilled": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order has already shipped.\n"
                            },
                            "order_hold_until_date_in_future": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is held until a future date.\n"
                            },
                            "fraud_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on fraud hold.\n"
                            },
                            "address_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The ship-to address failed verification, or the order is on address hold. Send a corrected address while the order is `unverified`, or your customer fixes it.\n"
                            },
                            "payment_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on payment hold.\n"
                            },
                            "warehouse_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on warehouse hold.\n"
                            },
                            "store_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on store hold.\n"
                            },
                            "shipping_method_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on shipping method hold.\n"
                            },
                            "allocation_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on allocation hold.\n"
                            },
                            "shipping_method_not_mapped": {
                              "type": "boolean",
                              "example": false,
                              "description": "Your customer hasn't mapped the order's `requested_shipping_service` to a carrier service yet.\n"
                            },
                            "has_unmapped_products": {
                              "type": "boolean",
                              "example": false,
                              "description": "A line's SKU isn't mapped to one of your customer's products yet.\n"
                            },
                            "has_unallocated_products": {
                              "type": "boolean",
                              "example": false,
                              "description": "Not enough stock: at least one line is backordered. Can be `true` for a few seconds right after an order is created, before stock is allocated.\n"
                            },
                            "client_not_active": {
                              "type": "boolean",
                              "example": false,
                              "description": "Your customer's account at the warehouse isn't active.\n"
                            },
                            "only_companion_products": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order has only companion products (such as inserts), which don't ship on their own.\n"
                            },
                            "operator_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on operator hold.\n"
                            },
                            "cs_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on customer service hold.\n"
                            },
                            "store_not_active": {
                              "type": "boolean",
                              "example": false,
                              "description": "The store isn't active.\n"
                            },
                            "custom_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The order is on one of your customer's custom holds.\n"
                            },
                            "hospital_hold": {
                              "type": "boolean",
                              "example": false,
                              "description": "The warehouse flagged the order during picking because of an inventory problem.\n"
                            }
                          }
                        },
                        "order_number": {
                          "type": "string",
                          "example": "10001"
                        },
                        "ship_name": {
                          "type": "string",
                          "example": "Jane Doe"
                        },
                        "address1": {
                          "type": "string",
                          "example": "1600 SW 4TH AVE",
                          "description": "The ship-to address after verification, which can differ from what you sent."
                        },
                        "address2": {
                          "type": "string",
                          "example": "Suite 300"
                        },
                        "city": {
                          "type": "string",
                          "example": "PORTLAND"
                        },
                        "state": {
                          "type": "string",
                          "example": "OR"
                        },
                        "postal_code": {
                          "type": "string",
                          "example": "97201"
                        },
                        "country": {
                          "type": "string",
                          "example": "US"
                        },
                        "currency": {
                          "type": "string",
                          "example": "USD",
                          "description": "The currency of the amounts and item prices. `USD` unless you sent another."
                        },
                        "subtotal": {
                          "type": "number",
                          "example": 25
                        },
                        "shipping_amount": {
                          "type": "number",
                          "example": 4.99
                        },
                        "tax_amount": {
                          "type": "number",
                          "example": 0
                        },
                        "discount_amount": {
                          "type": "number",
                          "example": 0
                        },
                        "total_amount": {
                          "type": "number",
                          "example": 29.99
                        },
                        "invoice_number": {
                          "type": "string",
                          "example": "INV-10001",
                          "description": "Empty when none was sent."
                        },
                        "invoice_date": {
                          "type": "string",
                          "example": "2026-10-26",
                          "description": "Empty when none was sent."
                        },
                        "shipments": {
                          "type": "array",
                          "description": "The order's shipments, oldest first. Empty until the warehouse buys a label. A merged shipment's parcels list only this order's lines.",
                          "items": {
                            "type": "object",
                            "description": "One label purchase. It can have several parcels, each with its own tracking number. A voided shipment disappears from every response; a replacement label is a new shipment with a new `id`.\n",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "231185181482"
                              },
                              "order_number": {
                                "type": "string",
                                "example": "10001",
                                "description": "The order number of the (first) order it ships."
                              },
                              "tracking_number": {
                                "type": "string",
                                "nullable": true,
                                "example": "9400111899223197428490",
                                "description": "The first parcel's tracking number. Read `shipment_parcels` for every one."
                              },
                              "tracking_url": {
                                "type": "string",
                                "nullable": true,
                                "example": "https://tools.usps.com/go/TrackConfirmAction?tLabels=9400111899223197428490",
                                "description": "The first parcel's tracking page, when the carrier has one."
                              },
                              "ship_name": {
                                "type": "string",
                                "example": "Jane Doe"
                              },
                              "address1": {
                                "type": "string",
                                "example": "1600 SW 4TH AVE"
                              },
                              "address2": {
                                "type": "string",
                                "example": "Suite 300"
                              },
                              "city": {
                                "type": "string",
                                "example": "PORTLAND"
                              },
                              "state": {
                                "type": "string",
                                "example": "OR"
                              },
                              "postal_code": {
                                "type": "string",
                                "example": "97201"
                              },
                              "country": {
                                "type": "string",
                                "example": "US"
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "shipped"
                                ],
                                "example": "shipped",
                                "description": "Always `shipped`. A shipment only exists once a label is bought."
                              },
                              "carrier_code": {
                                "type": "string",
                                "nullable": true,
                                "example": "usps",
                                "description": "Warehance's lowercase carrier code, such as `usps`, `ups`, `fedex` or `dhl_express`."
                              },
                              "service_code": {
                                "type": "string",
                                "nullable": true,
                                "example": "usps_ground_advantage",
                                "description": "Warehance's lowercase service code, such as `usps_ground_advantage` or `ups_ground`."
                              },
                              "ship_date": {
                                "type": "string",
                                "format": "date",
                                "nullable": true,
                                "example": "2026-10-27",
                                "description": "The label date."
                              },
                              "orders": {
                                "type": "array",
                                "description": "Every order this shipment ships. More than one when the warehouse merged orders; write the tracking to each.",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "example": "231185181985"
                                    },
                                    "order_number": {
                                      "type": "string",
                                      "example": "10001"
                                    }
                                  }
                                }
                              },
                              "shipment_parcels": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "description": "One box of a shipment, with its own tracking number. Same field names and meaning as the main Warehance API's shipment parcels.",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "example": "231185181484"
                                    },
                                    "tracking_number": {
                                      "type": "string",
                                      "example": "9400111899223197428490"
                                    },
                                    "tracking_url": {
                                      "type": "string",
                                      "example": "https://tools.usps.com/go/TrackConfirmAction?tLabels=9400111899223197428490",
                                      "description": "This parcel's tracking page. Empty when the carrier has none."
                                    },
                                    "weight": {
                                      "type": "number",
                                      "example": 12,
                                      "description": "Ounces."
                                    },
                                    "height": {
                                      "type": "number",
                                      "example": 6,
                                      "description": "Inches."
                                    },
                                    "width": {
                                      "type": "number",
                                      "example": 6,
                                      "description": "Inches."
                                    },
                                    "length": {
                                      "type": "number",
                                      "example": 6,
                                      "description": "Inches."
                                    },
                                    "box": {
                                      "type": "string",
                                      "example": "6x6x6 Box",
                                      "description": "The name of the box the warehouse packed it in, or `Custom Box`."
                                    },
                                    "items": {
                                      "type": "array",
                                      "description": "What's in this parcel.",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "quantity": {
                                            "type": "integer",
                                            "example": 1
                                          },
                                          "product": {
                                            "type": "object",
                                            "description": "The warehouse product shipped.",
                                            "properties": {
                                              "id": {
                                                "type": "integer",
                                                "example": 231185181506
                                              },
                                              "name": {
                                                "type": "string",
                                                "example": "Green Tea, 20 bags"
                                              },
                                              "sku": {
                                                "type": "string",
                                                "example": "TEA-001"
                                              }
                                            }
                                          },
                                          "order_item_id": {
                                            "type": "string",
                                            "example": "2bffbd71-f2c2-4e22-9ff6-d30009de3180",
                                            "description": "Your line's `id`. A bundle or kit line can appear as its components, each with the bundle line's `order_item_id`."
                                          },
                                          "sku": {
                                            "type": "string",
                                            "example": "TEA-001"
                                          },
                                          "lot": {
                                            "type": "object",
                                            "nullable": true,
                                            "description": "The lot shipped, or `null` when the product isn't lot-tracked.",
                                            "properties": {
                                              "id": {
                                                "type": "integer",
                                                "example": 231185190011
                                              },
                                              "lot_number": {
                                                "type": "string",
                                                "example": "L2026-10"
                                              },
                                              "expiration_date": {
                                                "type": "string",
                                                "format": "date-time",
                                                "example": "2028-10-01T00:00:00Z"
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "items": {
                          "type": "array",
                          "description": "The order's lines. Deleted lines aren't included.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "2bffbd71-f2c2-4e22-9ff6-d30009de3180",
                                "description": "The line's ID, a UUID Warehance issues when the line is created. Use it to update or delete the line."
                              },
                              "sku_id": {
                                "type": "integer",
                                "nullable": true,
                                "example": 231185181506,
                                "description": "The warehouse's product ID for this SKU. `null` while your customer still has to map your SKU to one of their products."
                              },
                              "quantity": {
                                "type": "integer",
                                "example": 1,
                                "description": "The quantity you sent."
                              },
                              "sku": {
                                "type": "string",
                                "example": "TEA-001",
                                "description": "The SKU you sent."
                              },
                              "price": {
                                "type": "number",
                                "example": 12.5,
                                "description": "The unit price you sent, in the order's `currency`. `0` when none was sent, and on a bundle's component lines."
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "order": {
                    "id": "231185181985",
                    "status": "unverified",
                    "fulfillment_status": "unfulfilled",
                    "not_ready_to_ship_types": {
                      "client_shipping_paused": false,
                      "order_cancelled": false,
                      "order_is_already_fulfilled": false,
                      "order_hold_until_date_in_future": false,
                      "fraud_hold": false,
                      "address_hold": false,
                      "payment_hold": false,
                      "warehouse_hold": false,
                      "store_hold": false,
                      "shipping_method_hold": false,
                      "allocation_hold": false,
                      "shipping_method_not_mapped": false,
                      "has_unmapped_products": false,
                      "has_unallocated_products": false,
                      "client_not_active": false,
                      "only_companion_products": false,
                      "operator_hold": false,
                      "cs_hold": false,
                      "store_not_active": false,
                      "custom_hold": false,
                      "hospital_hold": false
                    },
                    "order_number": "10001",
                    "ship_name": "Jane Doe",
                    "address1": "1600 SW 4TH AVE",
                    "address2": "Suite 300",
                    "city": "PORTLAND",
                    "state": "OR",
                    "postal_code": "97201",
                    "country": "US",
                    "currency": "USD",
                    "subtotal": 25,
                    "shipping_amount": 4.99,
                    "tax_amount": 0,
                    "discount_amount": 0,
                    "total_amount": 29.99,
                    "invoice_number": "",
                    "invoice_date": "",
                    "shipments": [],
                    "items": [
                      {
                        "id": "2bffbd71-f2c2-4e22-9ff6-d30009de3180",
                        "sku_id": 231185181506,
                        "quantity": 1,
                        "sku": "TEA-001",
                        "price": 12.5
                      },
                      {
                        "id": "5e150770-2d25-4ecd-9a2c-40d58ced5715",
                        "sku_id": 231185181508,
                        "quantity": 1,
                        "sku": "MUG-RED",
                        "price": 12.5
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "No credentials, an unknown username, a wrong key, no key generated yet, or a deactivated store. The body is empty.\n",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string",
                  "example": "Basic realm=\"API Authorization\""
                }
              }
            },
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "example": ""
                }
              }
            }
          },
          "404": {
            "description": "Missing or invalid fields, malformed JSON, the store's import filter rejected the order, or `{store_id}` belongs to a different store.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "example": [
                        "Order can no longer be modified"
                      ]
                    }
                  }
                },
                "example": {
                  "errors": [
                    "ShipName is a required field",
                    "Address1 is a required field"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Another change to this order is in progress. Retry after a second or two.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "example": [
                        "Order can no longer be modified"
                      ]
                    }
                  }
                },
                "example": {
                  "errors": [
                    "Order is being updated, try again"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error. Retry with backoff, and share the `request_id` with your customer if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Internal Server Error"
                    },
                    "request_id": {
                      "type": "string",
                      "example": "7c82b8fc-a963-40f9-b7ee-f5565949ab15"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BasicAuthentication": {
        "type": "http",
        "scheme": "basic",
        "description": "HTTP Basic authentication. The username and API key come from your customer, who creates the store connection in Warehance. Each store has its own username, API key and store ID.\n"
      }
    }
  }
}
````