Accesses Token

Accesses Token

When you connect a store through EcartAPI, we encrypt the store's platform credentials and deliver a single unified access token. This token represents the encrypted access to that specific store integration—you use it as your Authorization: Bearer <token> for all API calls (see Store access token for how to obtain and save it).

Each platform uses a different authentication mechanism behind the scenes (OAuth2, API keys, fixed tokens, client credentials), but from your perspective you always work with one EcartAPI access token per connected store.


Token lifecycle

The lifetime of your EcartAPI access token depends entirely on the underlying ecommerce platform's own token. EcartAPI does not impose its own expiration—the token remains valid as long as the platform credentials behind it are valid.

  • Platforms with non-expiring tokens (e.g. Shopify, BigCommerce, Ecwid): Your EcartAPI access token remains valid indefinitely. No action is needed.
  • Platforms with expiring access tokens (e.g. Amazon, Mercado Libre, TikTok Shop): The platform's access token expires after a certain period. When this happens, EcartAPI automatically handles the renewal using the platform's refresh token—the next time you make an API request, EcartAPI exchanges the expired access token for a new valid one transparently. You will not see any change or interruption; this auto-refresh process is completely automatic.
  • Platforms with API keys (e.g. WooCommerce, PrestaShop, VTEX): These use static credentials that do not expire. Your EcartAPI access token remains valid as long as the API key on the platform side is active.

When does an EcartAPI access truly expire?

An EcartAPI access token only expires when both the platform's access token and its refresh token have expired. At that point, there is no way to exchange for a new valid access, and the store must be re-authorized by the end user through the integration flow.

For platforms where the refresh token has a limited lifespan shorter than 6 hours, EcartAPI proactively keeps the access alive by refreshing it before it expires. This prevents accidental invalidation on platforms with very short-lived refresh tokens—no action is required from you.

In summary: If your EcartAPI access token stops working, it means the platform's credentials have fully expired and cannot be renewed. The store owner will need to re-authorize the connection.


Platform token reference

The following table shows the approximate token behavior for each supported platform. Expiration times are estimates and may vary based on platform configuration.

#PlatformAuth TypeAccess TokenExpirationRefresh Token
1AliExpressAPI Key / Sign
2AllegroOAuth2~12h✅ (~3 months)
3AmazonOAuth2 (LWA)~1h
4BlingAPI Key
5BigCommerceFixed tokenNo expiration
6CdiscountAPI Key
7Claro ShopAPI Key
8CS-CartAPI Key
9EcartProprietary tokenVariable
10eBayOAuth2~2h✅ (~18 months)
11EcwidFixed tokenNo expiration
12EtsyOAuth2~1h
13FalabellaAPI Key
14Hybris (SAP)OAuth2Variable
15JumpsellerAPI Key
16KometiaProprietary tokenVariable
17LinioAPI Key
18LiverpoolAPI Key
19Loja IntegradaFixed tokenNo expiration
20Magento 1TokenNo expiration
21Magento 2TokenNo expiration*
22Mercado LibreOAuth2~6h✅ (~6 months)
23MiraviaOAuth2~2h
24MultivendeProprietary tokenVariable
25NopCommerceAPI Key
26OdooOAuth2Variable
27OpenCartAPI Key
28PrestaShopAPI Key
29PrestaShop 9API Key
30QuickBooksOAuth2~1h✅ (~100 days)
31SalesforceOAuth215m–12h
32SheinPrivate
33ShipHeroTokenNo expiration
34ShoplazzaFixed tokenNo expiration
35ShopifyFixed tokenNo expiration
36SquarespaceOAuth2Variable
37TemuPrivate
38Tienda NubeFixed tokenNo expiration
39TikTok ShopOAuth2~24h✅ (~1 year)
40TinyAPI Key
41TrayAPI Key
42UnicommerceAPI Key
43Vend (VendHQ)OAuth2~1h
44VerskisProprietary tokenVariable
45VTEXAPI Key
46WalmartClient Credentials~15 min
47WeeblyOAuth2Variable
48WooCommerceAPI Key
49WixOAuth2Variable
50YampiAPI Key
51Zoho InventoryOAuth2~1h

Note: Expiration times are approximate and may change based on platform updates or account configuration. Tokens marked with * may have configurable expiration on the platform side. Additionally, any token—including those marked as "No expiration"—may become invalid if the store owner changes their password, modifies app permissions, or any other action outside of EcartAPI occurs on the platform side. In that case, the store will need to be re-integrated.