Categories

CTG101: Get Categories

get
Authorizations
Header parameters
Accept-LanguagestringOptional

Specifies the communication language of the API.

Responses
200
OK
application/json
Responseall of
get
GET /api/i2/categories/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "id": "db9782e6-5818-4f65-bcf6-ac1d35c3d8a4",
    "name": "Akinon Marketplace Category",
    "parent": null,
    "children": [
      {
        "id": "eadc41b4-0608-42e2-a73d-82cc8e7d6292",
        "name": "Man",
        "children": [
          {
            "id": "45e31829-7e54-446e-bb5a-65cdc0141aff",
            "name": "T-Shirts",
            "parent": "eadc41b4-0608-42e2-a73d-82cc8e7d6292"
          },
          {
            "id": "7cacc26a-feeb-4ee3-866a-fa027d726e01",
            "name": "Jeans",
            "parent": "eadc41b4-0608-42e2-a73d-82cc8e7d6292"
          }
        ]
      },
      {
        "id": "7f089139-8c1b-435e-a2f0-3efbb00b9398",
        "name": "Woman",
        "children": [
          {
            "id": "54c7549f-c133-4494-9253-fe1a38a86322",
            "name": "T-Shirts",
            "parent": "7f089139-8c1b-435e-a2f0-3efbb00b9398"
          },
          {
            "id": "e0fc7878-25b3-4bae-9d6b-3c7abf1ef698",
            "name": "Skirts",
            "parent": "7f089139-8c1b-435e-a2f0-3efbb00b9398"
          }
        ]
      }
    ]
  }
]

CTG102: Get Category Attributes

get
Authorizations
Path parameters
idstring · uuidRequired
Header parameters
Accept-LanguagestringOptional

Specifies the communication language of the API.

Responses
200
OK
application/json
get
GET /api/i2/categories/{id}/attributes/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "key": "COLOR",
    "name": "Color",
    "data_type": "dropdown",
    "default_value": "White",
    "values": [
      {
        "id": "07be580a-ad72-4778-b309-1d02d6c2acec",
        "label": "Red",
        "value": "R",
        "translations": {
          "en-gb": {
            "label": "Red"
          }
        }
      }
    ],
    "is_required": true,
    "is_variant": true,
    "is_offer": true,
    "is_localizable": true,
    "translations": {
      "en-gb": {
        "name": "Colour"
      }
    }
  }
]

CTG103: Get Category by ID

get
Authorizations
Path parameters
idstring · uuidRequired
Header parameters
Accept-LanguagestringOptional

Specifies the communication language of the API.

Responses
200
OK
application/json
get
GET /api/i2/categories/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "id": "07be580a-ad72-4778-b309-1d02d6c2acec",
  "name": "T-Shirts",
  "parent": "e6f871e8-7b1e-4d6e-b06d-6487a075a214"
}

Was this helpful?