client_id and client_secret for a
short-lived token and send that token as a Bearer token in the Authorization header.
Get a token
The token is a signed JWT. Its lifetime is fixed when it is issued, so request a new token shortly before
expires_in elapses. Clock differences of up to 30 seconds are tolerated.
Use the token
Send it on every other request:Bearer.
Store access
An API account is linked to one or more stores. Endpoints that take astore_id only answer for stores the
account can access; asking for another store returns 401, the same as a bad token. If you integrate
several stores, use the same token and change store_id.
Unauthorized responses
All authentication failures return HTTP401 with this body:
Credentials belong to a company, not to a person. If a secret leaks, regenerate the credentials in the Cubbo
app: open Integrations and click Regenerate Credentials on your Open API integration. The current
credentials stop working immediately, so update your system right away.