The Orders API gives you programmatic access to your Sellfern orders, enabling automation of status management, note-taking, and reporting. All endpoints require a valid bearer token; write operations additionally require the appropriate scope on the token.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/orders
List orders with optional filters. Results are paginated. Required scope:orders:read
Query parameters
Full-text search across order fields such as order number and customer name.
Filter by order status. Accepted values:
New, Pending Cost, In Production, Shipped, Complete, Cancelled.Filter by store ID.
Return only orders created after this datetime (ISO 8601, e.g.
2026-01-01T00:00:00Z).Return only orders created before this datetime (ISO 8601).
IANA timezone used to interpret date filters (e.g.
America/New_York). Defaults to UTC.Filter by supplier ID.
When
true, return only orders that have line items with missing SKUs.When
true, return only orders that have line items with missing design files.Sort expression in
field:direction format (e.g. created_at:desc).Page number (1-indexed).
Number of results per page.
Example
GET /api/v2/orders/:id
Get full details for a single order, including line items. Required scope:orders:read
Path parameters
The numeric order ID.
Example
PATCH /api/v2/orders/:id/status
Update the status of a single order. Required scope:orders:status:write
Path parameters
The numeric order ID.
Body parameters
The new order status. Accepted values:
New, Pending Cost, In Production, Shipped, Complete, Cancelled.Example
You can pass an
Idempotency-Key header to safely retry this request without risk of applying the status change twice.POST /api/v2/orders/bulk-status
Update the status of multiple orders in a single call. Required scope:orders:status:write
Query parameters
When
true, validates and previews the per-order results without saving any changes.Body parameters
Array of update objects. Each object must include
orderId (integer) and status (string).Example
POST /api/v2/orders/:id/notes
Append a note to an order. Notes are stored with the timestamp and author of the API token. Required scope:orders:write
Path parameters
The numeric order ID.
Body parameters
The text content of the note.
Example
Common errors
| Status | Meaning |
|---|---|
401 Unauthorized | Token is missing or invalid. |
403 missing_scope | Token does not have the required scope for this endpoint. |
404 Not Found | No order exists with the given ID, or the order does not belong to your organization. |
