Creates a new custom category (custom: true) for the business. The name must be unique within the business.
Security
BearerAuth
The display name for the new custom category. Must be unique within the business.
Example:"Internal Events"
POST
curl -i -X POST \
https://public.letsweel.com/v1/businesses/123/categories \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Internal Events",
"accounting_code_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'Created
The unique identifier for this category.
Example:"7cb19e45-1234-5678-abcd-ef9876543210"
Whether this is a custom category created by the business. System-defined categories have custom: false.
Example:false
The ID of the GL code mapped to this category, or null if no mapping exists.
Example:"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Response
{ "id": "7cb19e45-1234-5678-abcd-ef9876543210", "name": "Travel", "custom": false, "enabled": true, "accounting_code_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "created": "2025-01-01T00:00:00Z", "updated": "2025-01-01T00:00:00Z" }