Contents

Structures

The codes a product can use. They are managed in Nucleo and read-only here; an unknown code in a write is an error that names it.

Base URL, authentication and conventions of this API are on the Catalog API page.

get/categories

List categories

GET https://api-catalog.nucleoplatform.com/api/catalog/v1/categories
Authentication: Bearer token
Rate limit: 600 requests per 1m, per key (default; the catalog owner can set 1–6,000)

Responses

  • 200All categories, flat, with their path.
    • dataarray of objectrequired
      Attributes of each item
      • idintegerrequired
      • parent_idinteger | nullrequired
      • namestringrequired
      • slugstringrequired
      • pathstringrequired
        Example: Clothing > Tops
      • statusstringrequired
      • positionintegerrequired
Request
curl -X GET https://api-catalog.nucleoplatform.com/api/catalog/v1/categories \
  -H "Authorization: Bearer $NUCLEO_ACCESS_TOKEN" \
  -H 'Accept: application/json'
Response
{
  "data": [
    {
      "id": 1,
      "parent_id": 1,
      "name": "string",
      "slug": "string",
      "path": "Clothing > Tops",
      "status": "string",
      "position": 1
    }
  ]
}
get/attributes

List attributes and their allowed values

GET https://api-catalog.nucleoplatform.com/api/catalog/v1/attributes
Authentication: Bearer token
Rate limit: 600 requests per 1m, per key (default; the catalog owner can set 1–6,000)

Responses

  • 200The product attributes of the catalog.
    • dataarray of objectrequired
      Attributes of each item
      • codestringrequired
        Example: color
      • namestringrequired
      • typestringrequired

        For example text, number, boolean, date, dropdown, multiselect.

      • scopestringrequired

        product or variant.

      • requiredbooleanrequired
      • variant_optionbooleanrequired

        The attribute tells variants apart (size, color…).

      • optionsarray of objectrequired

        Allowed values of attributes with options (active ones), with their labels by locale.

        Attributes of each item
        • codestring
          Example: red
        • labelsobject
Request
curl -X GET https://api-catalog.nucleoplatform.com/api/catalog/v1/attributes \
  -H "Authorization: Bearer $NUCLEO_ACCESS_TOKEN" \
  -H 'Accept: application/json'
Response
{
  "data": [
    {
      "code": "color",
      "name": "string",
      "type": "string",
      "scope": "string",
      "required": true,
      "variant_option": true,
      "options": [
        {
          "code": "red",
          "labels": {
            "en": "Red",
            "it": "Rosso"
          }
        }
      ]
    }
  ]
}
get/locales

List locales

GET https://api-catalog.nucleoplatform.com/api/catalog/v1/locales
Authentication: Bearer token
Rate limit: 600 requests per 1m, per key (default; the catalog owner can set 1–6,000)

Responses

  • 200The languages of the catalog.
    • dataarray of objectrequired
      Attributes of each item
      • codestring
        Example: it
      • namestring
        Example: Italiano
      • defaultboolean
Request
curl -X GET https://api-catalog.nucleoplatform.com/api/catalog/v1/locales \
  -H "Authorization: Bearer $NUCLEO_ACCESS_TOKEN" \
  -H 'Accept: application/json'
Response
{
  "data": [
    {
      "code": "it",
      "name": "Italiano",
      "default": true
    }
  ]
}
get/markets

List markets

GET https://api-catalog.nucleoplatform.com/api/catalog/v1/markets
Authentication: Bearer token
Rate limit: 600 requests per 1m, per key (default; the catalog owner can set 1–6,000)

Responses

  • 200The markets of the catalog.
    • dataarray of objectrequired
      Attributes of each item
      • idinteger
      • namestring
      • currencystring | null
      • default_localestring | null
      • additional_localesarray of string
      • countriesarray of string

        ISO 3166-1 alpha-2.

      • price_listsarray of string
      • activeboolean
      • defaultboolean
Request
curl -X GET https://api-catalog.nucleoplatform.com/api/catalog/v1/markets \
  -H "Authorization: Bearer $NUCLEO_ACCESS_TOKEN" \
  -H 'Accept: application/json'
Response
{
  "data": [
    {
      "id": 1,
      "name": "string",
      "currency": "string",
      "default_locale": "string",
      "additional_locales": [
        "string"
      ],
      "countries": [
        "string"
      ],
      "price_lists": [
        "string"
      ],
      "active": true,
      "default": true
    }
  ]
}
get/price-lists

List price lists

GET https://api-catalog.nucleoplatform.com/api/catalog/v1/price-lists
Authentication: Bearer token
Rate limit: 600 requests per 1m, per key (default; the catalog owner can set 1–6,000)

Responses

  • 200The price lists of the catalog.
    • dataarray of objectrequired
      Attributes of each item
      • codestring
        Example: eu
      • namestring
      • currencystring | null
        Example: EUR
      • activeboolean
      • defaultboolean
Request
curl -X GET https://api-catalog.nucleoplatform.com/api/catalog/v1/price-lists \
  -H "Authorization: Bearer $NUCLEO_ACCESS_TOKEN" \
  -H 'Accept: application/json'
Response
{
  "data": [
    {
      "code": "eu",
      "name": "string",
      "currency": "EUR",
      "active": true,
      "default": true
    }
  ]
}
get/locations

List locations

GET https://api-catalog.nucleoplatform.com/api/catalog/v1/locations
Authentication: Bearer token
Rate limit: 600 requests per 1m, per key (default; the catalog owner can set 1–6,000)

Responses

  • 200The stock locations of the catalog.
    • dataarray of objectrequired
      Attributes of each item
      • codestring
        Example: main
      • namestring
      • activeboolean
      • defaultboolean
Request
curl -X GET https://api-catalog.nucleoplatform.com/api/catalog/v1/locations \
  -H "Authorization: Bearer $NUCLEO_ACCESS_TOKEN" \
  -H 'Accept: application/json'
Response
{
  "data": [
    {
      "code": "main",
      "name": "string",
      "active": true,
      "default": true
    }
  ]
}
Was this page helpful?