The Fulfillment API exposes the fulfillment queue and supplier assignment so automation agents and workflows can manage order production status without manual intervention. Read access lets you inspect which orders need action; write access lets you assign suppliers in bulk.Documentation Index
Fetch the complete documentation index at: https://docs.sellfern.com/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/v2/fulfillment/queue
List orders that are currently awaiting a fulfillment action. You can filter the queue by status, supplier, or store, and paginate through large result sets. Required scope:fulfillment:read
Query parameters
Filter by fulfillment status. Accepted values:
New, In Production. Omit to return all queue items.Filter by a specific supplier ID.
Page number (1-indexed).
Number of results per page.
Example
POST /api/v2/fulfillment/assign
Assign a supplier to one or more orders for fulfillment. After a successful assignment, the affected orders move to the supplier’s production queue. Required scope:fulfillment:write
Query parameters
When
true, validates and previews the per-order assignment results without saving any changes. Use this to check for errors before committing.Headers
Optional key for safely retrying the same assignment request. If you send the same key a second time, the API returns the original result rather than executing the assignment again.
Body parameters
Array of numeric order IDs to assign.
The ID of the supplier to assign to these orders.
Example
Fulfillment statuses
Orders move through fulfillment statuses in sequence. Understanding these transitions helps you filter the queue and trigger the right actions.| Status | Meaning |
|---|---|
Pending Cost | Order has been imported but costs have not been assigned yet. It cannot be sent to production until costs are resolved. |
New | Costs are assigned and the order is ready for supplier assignment. This is the primary queue state you act on via the API. |
In Production | The order has been assigned to a supplier and production has begun. |
Shipped | The order has left the supplier and tracking information is available. |
Complete | The order has been delivered and the lifecycle is closed. |
- Marking an order as “Ready” (resolving its costs) moves it from
Pending CosttoNew. - Calling
POST /api/v2/fulfillment/assignmoves orders fromNewtoIn Productiononce a supplier is assigned. - Updating an order’s status to
ShippedviaPATCH /api/v2/orders/:id/statusmoves it out of the production queue.
