Check the token
/meReturns the shop and the token that the request presents. Call it to check that a token works, and to see its scope and when it expires.
Request Headers
Response Headers
200, 401, 404, 429, default
The channel that served the request: unstable.
Value in
- "unstable"
200, 401, 404, 429, default
The id the server gave the request. A problem carries the same id as request_id. Quote it when you contact support.
uuid200, 404, 429, default
The shop's rate-limit policy, as draft-ietf-httpapi-ratelimit-headers defines it: its name, the requests it allows (q), and its window in seconds (w). Every shop has the policy "standard";q=120;w=60: 120 requests per 60 seconds, counted over all the shop's tokens. Sent with every response to a request that carries a valid token, and with a 429. The server leaves it out when it cannot read the shop's budget.
200, 404, 429, default
The shop's budget in the current window: the requests left (r), and the seconds until the window resets (t), as in "standard";r=117;t=42. Sent with RateLimit-Policy.
429
The number of seconds to wait until the shop's budget resets.
1 <= valueResponse Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/me" \ -H "Authorization: Bearer ff_shop_…"{ "result": { "shop": "string", "token": { "id": "string", "name": "string", "owner": "shop", "scope": "read", "expires_at": "2019-08-24T14:15:22Z" } }}Feinerfab API
Connect your shop's own software to Feinerfab.
List the orders GET
Returns the shop's orders one page at a time, the newest first unless `sort` says otherwise. Each order comes as a summary, without its lines, taxes, and payment and delivery methods: `getOrder` returns those, and they never change after checkout. A page holds `limit` orders. `next_cursor` leads to the next page and is `null` on the last page; `previous_cursor` leads to the page before and is `null` on the first page. Send a cursor back as `cursor`, with the same `sort` and `updated_since` as the first request; `limit` may change from page to page. A cursor sent with another `sort` is refused with 400 `invalid-request`. To keep another system in sync, list the orders with `sort=updated_at` and `updated_since`, and remember the latest `updated_at` you saw. On the next run, send `updated_since` one minute before that time: `updated_at` is the time a change started, so a change that was still being saved during your last run can have an earlier time than the orders you saw. The orders at that boundary come again, so update your copy by the order's `id`. The list includes orders in every status, drafts and cancelled orders too.