The API uses OAuth2 bearer tokens.
- Combine your client ID and secret as
client_id:secretand encode the result in base64. - Call
POST /api/oauth/v1/retailer/tokenwith that value in anAuthorization: Basic <base64>header. You do not need a username or a password. - Send the
access_tokenfrom the response on every other request, in anAuthorization: Bearer <access_token>header. - The token expires after
expires_inseconds. Request a new one with therefresh_token(grant typerefresh_token), or simply request a new token as in step 2.
A missing, invalid or expired token is answered with 401.
The token is linked to your partner account. All product endpoints only show and change your own products; you never have to send your partner code yourself.