GET
/
v1
/
businesses
/
{businessId}
/
categories
curl --request GET \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/categories \
  --header 'Authorization: Bearer <token>'
{
  "type": "Category_List",
  "categories": [
    {
      "type": "AccountNested",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "stable_name": "EXPENSES",
      "display_name": "Expenses",
      "subCategories": [
        {}
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to application/json

Path Parameters

businessId
string
required

The UUID of the business to fetch the tree of available categories for

Response

200 - application/json

List of the categories available for a business

type
string

Resource type. Value will be 'Category_List'.

Example:

"Category_List"

categories
object[]

Array of nested categorizations for a business. A categorization is a polymorphic type that can be an account, optional account, or exclusion.

A category that exists