# 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 /api/2025-01/discover`

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-api/inventory/locations). |
| `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](/store-api/getting-started/rate-limits) whatever their plan, and take test payments only; see [Development and transfer stores](/apps/apps/development-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:

```json
{
  "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](/store-api/getting-started/authentication), [Rate limits](/store-api/getting-started/rate-limits), and [Errors](/store-api/getting-started/errors).

```curl
curl 'https://api-store.tringify.com/api/2025-01/discover' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "success": true,
  "data": {
    "api_version": "2025-01",
    "token_type": "app",
    "app_id": "d6a26466-7903-4e2f-8fd7-7c59f3c8cd9a",
    "app_name": "Inventory Connector",
    "app_slug": "inventory-connector",
    "installation_id": "3ee258ba-805d-4f0d-b146-428a05fa195d",
    "sales_channel_id": "6e4f83bf-2583-412d-b276-a479538700b1",
    "channel_type": "marketplace",
    "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_locations",
      "write_locations"
    ]
  }
}
```

