Categories

Categories map to MCC codes that can optionally be associated with items. These are largely used for subscriptions, especially when a fiat payment provider is also used.

GET//api/v1/item/category
Authorization
Query parameters
Header parameters
Response

Ok

Body
code*number (double)

The item category code

Example: 5945
name*string

The name of the item category.

Example: "Hobby, Toy, and Game Shops"
id*number (double)

The id of the item category.

Example: 1
Request
const response = await fetch('//api/v1/item/category', {
    method: 'GET',
    headers: {
      "entity-id": "text"
    },
});
const data = await response.json();
Response
[
  {
    "code": 5945,
    "name": "Hobby, Toy, and Game Shops",
    "id": 1
  }
]
```json
[
    {
        "id": 1,
        "name": "A/C, Refrigeration Repair",
        "code": 7623
    },
    {
        "id": 2,
        "name": "Accounting/Bookkeeping Services",
        "code": 8931
    },
    {
        "id": 3,
        "name": "Advertising Services",
        "code": 7311
    },
    {
        "id": 4,
        "name": "Agricultural Cooperative",
        "code": 763
    },
    {
        "id": 5,
        "name": "Airlines, Air Carriers",
        "code": 4511
    },......

Last updated