The Sellfern API lets you automate workflows, build integrations, and query business data programmatically using standard HTTP requests and JSON. You can list and update orders, pull revenue and profit summaries, manage the fulfillment queue, and register webhook endpoints — all from scripts, agents, or third-party platforms.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.
Base URL
All API requests are made to the following base URL:Quick start
Create an API token in Settings → API Tokens, then make your first request:API versioning
All endpoints documented here are versioned under/api/v2/. The version prefix appears in every path:
Request format
- GET requests — pass filters and options as query string parameters.
- POST and PATCH requests — send a JSON body and include the
Content-Type: application/jsonheader. - Idempotency — write endpoints (
POST,PATCH) accept an optionalIdempotency-Keyheader. Send the same key on retries to prevent duplicate operations.
Response format
Every response includes asuccess boolean. Successful responses wrap the result in a data field. Error responses include an error object with a code and message.
Rate limiting
All API requests are subject to rate limiting enforced per token. When you exceed the limit, the API returns429 Too Many Requests. Slow down and retry after a brief pause. You can also set a dailyQuota when creating a token to cap its daily call volume.
OpenAPI spec
The machine-readable OpenAPI specification is available at:/api-docs.
Resources
Orders
List, filter, and update orders. Perform bulk status updates and add notes.
Analytics
Query revenue, COGS, gross profit, and margin summaries by period or store.
Fulfillment
Retrieve the fulfillment queue and assign suppliers to orders.
Webhooks
Register and manage webhook endpoints to receive real-time event notifications.
Every API token is scoped to specific capabilities. A token without the required scope returns
403 missing_scope. See the Authentication and Scopes pages for details on creating tokens and choosing the right scopes.