Token and store details

Check which store a Store API token belongs to, the store's type, and the scopes the token grants.

Call GET /discover to confirm which store a token belongs to, whether that store is live, a development store or a transfer store, and which scopes the token grants. Check three fields first: store_id (the store you meant to connect), store_type and scopes. For a development or transfer store, daily_limits lists its daily caps (store_api_requests, shop_api_requests, test_orders, carts_checkouts), each with limit, today's used and resets_at (midnight UTC); it is null for a live store.

Endpoints#

Discover connection

GET

Inspect the authenticated Store API connection.

Returns the store, its store type, the API version, the token's identity, and granted scopes resolved from your bearer token. Use this read-only request after installation or token rotation to check the connection. No resource scope is required. The token must be valid and the store must have an active or trialing subscription. The request uses the normal rate-limit allowance. A partner or developer organization can manage many stores, but a Store API token identifies one store: use the returned store_id to keep each store's cached data separate.

Response fields

The response is an object with success: true and a data object. The fields below describe data; the sample on the right shows an app token with a linked sales channel, and a Store Admin token's response is shown after the table.

Field Type Presence and meaning
api_version string Always present. The API version pinned to the credential, currently 2025-01.
token_type string Always present. app for both tpat_ and tast_; store_admin for tsat_. The token's prefix is the only way to tell an installation token from a session token.
store_id string Always present. ID of the store this token can access.
store_name string Always present. The store's name from Settings > General.
store_country string Always present. The store's two-letter country code from Settings > General, or empty when the merchant has not set one. The store's address and phone are on its primary location.
store_timezone string Always present. The store's timezone identifier.
store_currency string Always present. The store's base currency code.
store_default_locale string Always present. The store's default locale code.
primary_domain string Always present and never empty. The store's primary domain, without a URL scheme.
plan_name string Always present. The connected store's plan name, for display only: plan names can change, so do not branch on it.
store_type string Always present. live for a store that serves real customers, dev for a development store, or transfer for a store a partner is building for a client. Development and transfer stores use smaller rate limits whatever their plan, and take test payments only; see Development and transfer stores. A development store is never billed, and a transfer store is not billed until the client takes ownership; app charges and usage on these stores are test only.
scopes array of strings Always present, including an empty array when there are no granted scopes. Check the scope catalog for implied read access.
app_id, app_name, app_slug string Present only for app tokens. The app's ID, display name, and slug.
installation_id string Present for an app token when an installation ID is available; otherwise omitted.
sales_channel_id, channel_type string Present for an app token when the corresponding sales-channel value is available; otherwise omitted.
token_name string Present only for store_admin tokens. The name given to the admin token.

A Store Admin token response contains token_name and omits the app, installation, and sales-channel fields:

{
  "success": true,
  "data": {
    "api_version": "2025-01",
    "token_type": "store_admin",
    "token_name": "Inventory sync",
    "store_id": "74e634ea-84ec-43b8-b66b-986214c2c5a3",
    "store_name": "Example Store",
    "store_country": "US",
    "store_timezone": "America/New_York",
    "store_currency": "USD",
    "store_default_locale": "en",
    "primary_domain": "shop.example.com",
    "plan_name": "Plus",
    "store_type": "live",
    "scopes": ["read_products", "write_products"]
  }
}

Conditional fields are omitted rather than returned as null. This response does not contain the credential itself. See Authentication, Rate limits, and Errors.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.