# Reference data

Shared lookup data for countries, languages, timezones, currencies, phone codes, number formats, address formats, and Store API scopes.

Use these endpoints for lookup data shared across stores. Collection endpoints return complete datasets without pagination. Endpoints that need a token take no query parameters. The scopes catalog, countries, languages, timezones, currencies, phone codes and number-format defaults are sent with `Cache-Control: public, max-age=86400`, so clients and shared caches can keep them for 24 hours. Address formats are sent with `Cache-Control: no-cache` and an `ETag` instead: revalidate with `If-None-Match` and reuse your copy when the response is `304 Not Modified`. The scopes catalog is public. All other endpoints require a valid Store API token for a store with an active or trialing subscription, but no resource scope is required. These requests count against the token's normal rate limit.

> Addresses, locations and tax, shipping and cash-on-delivery zones all use the same province codes: the `province.options[].code` values from GET /api/2025-01/reference/address-format/{countryCode}, for example IN-UP, US-NY, CA-ON, AU-NSW, JP-13 or AE-DU (ISO 3166-2, or CC-NAME where ISO assigns none). Address writes accept only a code (a retired code is saved as its current code), and reads return it with its name in `province_name`. Zone `subdivisions` accept only codes too, and reads return their names in `subdivisions_display`.

For phone formats, country and calling codes, country-specific lengths, and accepted and rejected examples, read [Phone numbers and country codes](/store-api/reference/phone-numbers).

For the address fields, each country's rules and the CSV columns, read [Addresses and postal rules](/store-api/reference/addresses).

## List scopes

`GET /api/2025-01/scopes`

Returns the complete requestable scope catalog grouped by category. Use it to choose app permissions or explain what each permission allows. During installation, merchants see the permissions requested by your app as localized, resource-level entries; related read and write access may be presented together.

This endpoint is **public** — no token required.

```curl
curl https://api-store.tringify.com/api/2025-01/scopes
```

Response:

```json
{
  "success": true,
  "data": {
    "scopes": [
      {
        "category": "Products",
        "description": "Products, variants, collections, categories, attributes, tags, vendors, brands, product filters, recommendations, sales channels, channel feeds and publications, and list-page SEO",
        "sort_order": 8,
        "scopes": [
          {
            "name": "read_products",
            "label": "Read",
            "resource_label": "Products",
            "description": "View products, variants, collections, categories, attributes, tags, vendors, brands, product filters, recommendations, sales channels, channel feeds and publications, and list-page SEO",
            "category": "Products",
            "sort_order": 1
          },
          {
            "name": "write_products",
            "label": "Write",
            "resource_label": "Products",
            "description": "Manage products, variants, collections, categories, attributes, tags, vendors, brands, product filters, recommendations, sales channels, channel feeds and publications, and list-page SEO",
            "category": "Products",
            "implies": [
              "read_products"
            ],
            "sort_order": 2
          }
        ]
      }
    ]
  }
}
```

## List countries

`GET /api/2025-01/reference/countries`

Each entry includes a two-letter Tringify country code, a three-letter code, name, capital, primary currency, recommended default locale, calling codes, and postal-code metadata. Most country codes follow current ISO 3166-1 values; a small number are retained for compatibility. Treat each returned code as an opaque identifier. Inclusion in this catalog does not by itself indicate selling, shipping, or payment availability. Responses are sent with `Cache-Control: public, max-age=86400`, so they can be kept for 24 hours.

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

Response:

```json
{
  "success": true,
  "data": {
    "countries": [
      {
        "code": "IN",
        "alpha3": "IND",
        "name": "India",
        "capital": "New Delhi",
        "currency": "INR",
        "default_locale": "en",
        "phone_codes": [
          "+91"
        ],
        "has_postal_code": true,
        "postal_code_format": "110001"
      },
      {
        "code": "US",
        "alpha3": "USA",
        "name": "United States",
        "capital": "Washington",
        "currency": "USD",
        "default_locale": "en",
        "phone_codes": [
          "+1"
        ],
        "has_postal_code": true,
        "postal_code_format": "12345"
      }
    ]
  }
}
```

## List languages

`GET /api/2025-01/reference/languages`

Each entry includes a BCP 47 language code, English name, native name, and `rtl` flag. Use the flag to lay out Arabic, Hebrew, Persian, Urdu, and other right-to-left languages correctly in locale selectors and translated experiences. Responses are sent with `Cache-Control: public, max-age=86400`, so they can be kept for 24 hours.

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

Response:

```json
{
  "success": true,
  "data": {
    "languages": [
      {
        "code": "en",
        "name": "English",
        "native_name": "English",
        "rtl": false
      },
      {
        "code": "es",
        "name": "Spanish",
        "native_name": "Español",
        "rtl": false
      },
      {
        "code": "pt-BR",
        "name": "Portuguese (Brazil)",
        "native_name": "Português (Brasil)",
        "rtl": false
      },
      {
        "code": "ar",
        "name": "Arabic",
        "native_name": "العربية",
        "rtl": true
      },
      {
        "code": "zh-TW",
        "name": "Chinese (Traditional)",
        "native_name": "繁體中文",
        "rtl": false
      }
    ]
  }
}
```

## List timezones

`GET /api/2025-01/reference/timezones`

Returns a sorted array of supported timezone identifiers: IANA timezone names such as `America/Los_Angeles`, `Asia/Kolkata` and `Europe/London`, plus `UTC` and a few IANA names without a region, such as `CET`, `EST5EDT` and `Factory`. Use the returned strings as opaque values in timezone selectors and API requests. Responses are sent with `Cache-Control: public, max-age=86400`, so they can be kept for 24 hours.

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

Response:

```json
{
  "success": true,
  "data": {
    "timezones": [
      "Africa/Cairo",
      "America/Los_Angeles",
      "America/New_York",
      "Asia/Kolkata",
      "Asia/Tokyo",
      "Europe/London",
      "UTC"
    ]
  }
}
```

## GET /api/2025-01/reference/currencies

`GET /api/2025-01/reference/currencies`

Returns each supported currency's ISO 4217 code, English name, display symbol, and `decimals`: the number of decimal places to show when displaying an amount. `decimals` is display precision only and can be lower than the precision an amount accepts (IDR is shown with 0 decimals, but amounts take 2); see [Money amounts](/store-api/reference/money) for each currency's accepted amount precision. Symbols are for display and may be shared by several currencies, so use `code` as the currency identifier. The list is ordered by code and is the same for every store. Responses are sent with `Cache-Control: public, max-age=86400`, so they can be kept for 24 hours.

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

Response:

```json
{
  "success": true,
  "data": {
    "currencies": [
      {
        "code": "AUD",
        "name": "Australian Dollar",
        "symbol": "$",
        "decimals": 2
      },
      {
        "code": "IDR",
        "name": "Indonesian Rupiah",
        "symbol": "Rp",
        "decimals": 0
      },
      {
        "code": "JPY",
        "name": "Japanese Yen",
        "symbol": "¥",
        "decimals": 0
      },
      {
        "code": "USD",
        "name": "US Dollar",
        "symbol": "$",
        "decimals": 2
      }
    ]
  }
}
```

## List phone codes

`GET /api/2025-01/reference/phone-codes`

Returns calling regions with country codes, dial codes, national examples, possible_lengths, min_national_digits, max_national_digits, and national_prefix. Use the complete allowed-length list, not just its bounds. See [Phone numbers and country codes](/store-api/reference/phone-numbers) for validation rules and examples.

```curl
curl https://api-store.tringify.com/api/2025-01/reference/phone-codes \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "phone_codes": [
      {
        "possible_lengths": [
          10
        ],
        "min_national_digits": 10,
        "max_national_digits": 10,
        "national_prefix": "0",
        "country_code": "IN",
        "country_name": "India",
        "dial_code": "+91",
        "dial_code_numeric": 91,
        "example_number": "81234 56789",
        "flag": "🇮🇳"
      },
      {
        "possible_lengths": [
          10
        ],
        "min_national_digits": 10,
        "max_national_digits": 10,
        "national_prefix": "1",
        "country_code": "US",
        "country_name": "United States",
        "dial_code": "+1",
        "dial_code_numeric": 1,
        "example_number": "(201) 555-0123",
        "flag": "🇺🇸"
      }
    ]
  },
  "success": true
}
```

## Get number format defaults

`GET /api/2025-01/reference/number-format-defaults/{countryCode}`

Returns decimal and thousands separators, currency-symbol placement and spacing, and digit grouping for the country's main language. `grouping_pattern` is `"3"` for standard thousands grouping and `"3,2"` for Indian lakh and crore grouping. A territory with no language of its own, such as Antarctica (AQ), gets English defaults. The country or region code is case-insensitive. Responses are sent with `Cache-Control: public, max-age=86400`, so they can be kept for 24 hours.

```curl
curl https://api-store.tringify.com/api/2025-01/reference/number-format-defaults/DE \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "success": true,
  "data": {
    "decimal_separator": ",",
    "thousands_separator": ".",
    "grouping_pattern": "3",
    "currency_symbol_position": "after",
    "currency_symbol_spacing": true
  }
}
```

## List address formats

`GET /api/2025-01/reference/address-format`

Returns every country's address form, ordered by country code. Labels, country names and province names are in English. The form has `country_code`, `country_name`, `layout` (the form rows in the country's writing order; fields on one row sit side by side), `required` (the fields an address in that country must have), `labels` (each field's label, such as PIN code in India or Prefecture in Japan), `province` (`kind` and `options`, each a `code` and `name`) or null when the country's addresses name no province, and `postal` (`kind`, `placeholder` (an example to show in the field), `pattern`, `max_length`, `input_mode` (`numeric` or `text`) and `required`) or null when the country has no postal codes. Show Country first, then the `layout` rows. Every customer address, order address, location and zone stores the `province.options[].code` (ISO 3166-2, such as IN-UP or JP-13, or CC-NAME where ISO assigns none); names are not accepted. Postal codes are saved in the country's standard written form (`sw1a1aa` becomes `SW1A 1AA`). Address formats can change, so responses are sent with `Cache-Control: no-cache` and an `ETag`: keep the copy, send its ETag in `If-None-Match`, and a `304 Not Modified` with no body means your copy is still current. See [Addresses and postal rules](/store-api/reference/addresses) for the address fields, validation errors and every country's rules.

```curl
curl https://api-store.tringify.com/api/2025-01/reference/address-format \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "success": true,
  "data": {
    "address_formats": [
      {
        "country_code": "AD",
        "country_name": "Andorra",
        "layout": [
          [
            "first_name",
            "last_name"
          ],
          [
            "company"
          ],
          [
            "address1"
          ],
          [
            "address2"
          ],
          [
            "postal_code",
            "city"
          ]
        ],
        "required": [
          "first_name",
          "last_name",
          "address1",
          "city",
          "country_code"
        ],
        "labels": {
          "address1": "Address",
          "address2": "Address line 2",
          "city": "City",
          "company": "Company",
          "country_code": "Country / Region",
          "first_name": "First name",
          "last_name": "Last name",
          "phone": "Phone",
          "postal_code": "Postal code"
        },
        "province": null,
        "postal": {
          "kind": "postal",
          "placeholder": "AD100",
          "pattern": "AD[1-7]0\\d",
          "max_length": 5,
          "input_mode": "text",
          "required": false
        }
      }
    ]
  }
}
```

## Get an address format

`GET /api/2025-01/reference/address-format/{countryCode}`

Returns one country's address form. Labels, country names and province names are in English. The form has `country_code`, `country_name`, `layout` (the form rows in the country's writing order; fields on one row sit side by side), `required` (the fields an address in that country must have), `labels` (each field's label, such as PIN code in India or Prefecture in Japan), `province` (`kind` and `options`, each a `code` and `name`) or null when the country's addresses name no province, and `postal` (`kind`, `placeholder` (an example to show in the field), `pattern`, `max_length`, `input_mode` (`numeric` or `text`) and `required`) or null when the country has no postal codes. Show Country first, then the `layout` rows. Every customer address, order address, location and zone stores the `province.options[].code` (ISO 3166-2, such as IN-UP or JP-13, or CC-NAME where ISO assigns none); names are not accepted. Postal codes are saved in the country's standard written form (`sw1a1aa` becomes `SW1A 1AA`). Address formats can change, so responses are sent with `Cache-Control: no-cache` and an `ETag`: keep the copy, send its ETag in `If-None-Match`, and a `304 Not Modified` with no body means your copy is still current. See [Addresses and postal rules](/store-api/reference/addresses) for the address fields, validation errors and every country's rules.

```curl
curl https://api-store.tringify.com/api/2025-01/reference/address-format/JP \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "success": true,
  "data": {
    "country_code": "JP",
    "country_name": "Japan",
    "layout": [
      [
        "first_name",
        "last_name"
      ],
      [
        "company"
      ],
      [
        "postal_code"
      ],
      [
        "province_code"
      ],
      [
        "address1"
      ],
      [
        "address2"
      ]
    ],
    "required": [
      "first_name",
      "last_name",
      "address1",
      "province_code",
      "postal_code",
      "country_code"
    ],
    "labels": {
      "address1": "Address",
      "address2": "Address line 2",
      "city": "City",
      "company": "Company",
      "country_code": "Country / Region",
      "first_name": "First name",
      "last_name": "Last name",
      "phone": "Phone",
      "postal_code": "Postal code",
      "province_code": "Prefecture"
    },
    "province": {
      "kind": "prefecture",
      "options": [
        {
          "code": "JP-23",
          "name": "Aichi"
        },
        {
          "code": "JP-05",
          "name": "Akita"
        },
        {
          "code": "JP-02",
          "name": "Aomori"
        }
      ]
    },
    "postal": {
      "kind": "postal",
      "placeholder": "154-0023",
      "pattern": "\\d{3}-?\\d{4}",
      "max_length": 8,
      "input_mode": "numeric",
      "required": true
    }
  }
}
```

