GET
/
expense-categories
/
{id}
curl -X GET "https://api.contazen.ro/v1/expense-categories/5" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "category": {
    "id": 5,
    "name": "Marketing Expenses",
    "parent_id": 0,
    "is_default": false,
    "is_visible": true,
    "type": "custom"
  }
}

Overview

The Retrieve Expense Category endpoint allows you to get detailed information about a specific expense category by its ID. This works for both system default categories and your custom categories.

Path Parameters

id
integer
required
The unique identifier of the expense category to retrieve

Query Parameters

include_children
boolean
default:"false"
When true, includes all subcategories under this category in the response (only applicable for parent categories)

Response

category
object
The expense category object with full details

Access Control

  • You can only retrieve categories that belong to your firm
  • Both system and custom categories are accessible
  • Category must exist and not be deleted
curl -X GET "https://api.contazen.ro/v1/expense-categories/5" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "category": {
    "id": 5,
    "name": "Marketing Expenses",
    "parent_id": 0,
    "is_default": false,
    "is_visible": true,
    "type": "custom"
  }
}

Authorizations

Authorization
string
header
required

Use your API key (sk_live_xxx or sk_test_xxx)

Path Parameters

id
integer
required

Category ID

Query Parameters

include_children
boolean
default:false

Include child categories

Response

Category details

success
boolean
data
object
meta
object