Item types

Item types are used to assign different functionality for items. Companies can obtain the list of available item types via the API.

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

Ok

Body
name*string

The name of the item type.

id*number (double)

The id of the item type.

Example: 1
Request
const response = await fetch('//api/v1/item/type', {
    method: 'GET',
    headers: {
      "entity-id": "text"
    },
});
const data = await response.json();
Response
[
  {
    "name": "text",
    "id": 1
  }
]
[
    {
        "id": 1,
        "name": "Donation"
    },
    {
        "id": 2,
        "name": "Subscription"
    },
    {
        "id": 3,
        "name": "Loan"
    },
    {
        "id": 4,
        "name": "Outbound payment"
    },
    {
        "id": 7,
        "name": "Fee"
    },
    {
        "id": 8,
        "name": "Other"
    }
]

Last updated