API Integration with Token

Token-based integration is a method for connecting third-party services or your own systems to the seller portal. A token is a digital key used to authenticate and authorise API requests.

API integration architecture overview
API integration architecture overview

When to use token integration

Use token integration when you need to:

  • Automate order processing or inventory updates from your own software
  • Connect a third-party ERP, WMS, or accounting system to the portal
  • Build custom dashboards or reporting tools using live portal data
  • Enable a partner service to act on your behalf within defined scopes
Tip: For information about what the API is and why sellers need it, read the separate API overview article.

How it works

The integration flow consists of three stages:

  1. Token generation — you create a token in the portal with the required scopes.
  2. Token delivery — you pass the token to your application or third-party service.
  3. API calls — the application uses the token as a Bearer credential in the HTTP Authorization header.
Token lifecycle diagram
Token lifecycle diagram
StepActorActionResult
1SellerCreates token in portal settingsToken string issued
2SellerCopies token to application configApp authenticated
3ApplicationSends API request with Authorization headerData returned or action performed
4PortalValidates token and logs requestAudit trail created

Choosing a token type

The portal offers four token types. Choose based on your use case and required level of access.

Personal token

Tied to your individual seller account. Grants full access to all API endpoints your account is authorised for. Use this for personal scripts or testing only — never share it.

Important: If your personal token is compromised, revoke it immediately from the Settings → API Tokens page. All active sessions using the token will be terminated.

Service token

Scoped to specific API groups (e.g. Orders only, Products only). Ideal for sharing with third-party integrators — they only get access to what they need, nothing more.

Token scopes configuration screen
Token scopes configuration screen
Note: Service tokens do not expire automatically. Set a manual expiration date for any token shared with an external provider, and rotate tokens every 90 days as a security best practice.

Security rules

  • Never hardcode tokens in source code — use environment variables or a secrets manager.
  • Rotate tokens every 90 days or immediately after a suspected compromise.
  • Grant only the minimum necessary scopes for each token.
  • Monitor the API access log under Settings → API Logs for unexpected activity.
  • Do not transmit tokens over unencrypted (HTTP) connections.

Troubleshooting

ErrorCodeCauseResolution
Unauthorized401Token missing or malformedCheck Authorization header format
Forbidden403Token lacks required scopeRegenerate token with correct scopes
Token expired401Token past expiration dateGenerate a new token
Rate limit exceeded429Too many requests per minuteImplement exponential backoff

See also

Recommended articles