1
Create an API key
In StockShift, open Settings > Access > API keys and press New API key. Name it after the system that will use it, tick
catalog:read and press Create key.Copy the key straight away. It is shown once and never again.2
List your items
Send the key as a bearer token. Paths are relative to
https://app.stockshift.io/api/v1, and requests and responses are JSON.3
Read the answer
A list comes back one page at a time, with a cursor for the next page:Send
next_cursor back as after to get the next page. The SDKs do this for you. See Pagination.Next
- Give each key only the scopes its job needs. Permissions and scopes explains the two checks every call passes.
- Branch on the
codeof an error, not its text. See Errors. - Rather than polling for changes, subscribe to webhooks.