Get a Category by ID
cURL
curl --request GET \ --url https://api.bookeeping.ai/public-api/v1/categories/{id} \ --header 'Authorization: Bearer <token>'
{ "message": "<string>", "metaData": { "warnings": [ "<string>" ] }, "data": { "_id": "<string>", "name": "<string>", "projectId": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "emoji": "<string>", "parentCategory": "INCOME", "isArchived": true, "number": "<string>", "group": "<string>", "createdBy": "USER" } }
API key for authentication. Get your key from the Dashboard > Settings > API Access.
The id of the category. Expected to be a valid object id like 666666666666666666666666
Get a Category by ID executed successfully
Success message
Show child attributes
Any validation warnings
The id of the category
The name of the category
The project id of the category
The created at of the category
The updated at of the category
INCOME
OTHER_INCOME
SALES
EXPENSE
DEPRECIATION
COST_OF_GOODS_SOLD
OTHER_EXPENSE
OVERHEAD
CURRENT_ASSET
FIXED_ASSET
INVENTORY
NON_CURRENT_ASSET
PREPAYMENT
LIABILITY
CURRENT_LIABILITY
NON_CURRENT_LIABILITY
TAX_PAYABLE
TAX
EQUITY
OTHER
USER
SYSTEM