Expensicat

Categories

Transaction category management

List categories

GET
/v1/categories
AuthorizationBearer <token>

Session JWT or OAuth2 access token

In: header

Response Body

application/json

application/json

curl -X GET "https://api.expensicat.com/api/v1/categories"
{
  "data": [
    {
      "id": "string",
      "organization_id": "string",
      "name": "string",
      "color": "string",
      "slug": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  ]
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}

Create category

POST
/v1/categories
AuthorizationBearer <token>

Session JWT or OAuth2 access token

In: header

Request Body

application/json

name*string
color*string
slug*string

Response Body

application/json

application/json

curl -X POST "https://api.expensicat.com/api/v1/categories" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "color": "string",    "slug": "string"  }'
{
  "data": {
    "id": "string",
    "organization_id": "string",
    "name": "string",
    "color": "string",
    "slug": "string",
    "created_at": "string",
    "updated_at": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}

Get category

GET
/v1/categories/{id}
AuthorizationBearer <token>

Session JWT or OAuth2 access token

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

curl -X GET "https://api.expensicat.com/api/v1/categories/string"
{
  "data": {
    "id": "string",
    "organization_id": "string",
    "name": "string",
    "color": "string",
    "slug": "string",
    "created_at": "string",
    "updated_at": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}