Skip to content

Expenses API ​

Use the Expenses API to record and manage business spending.

Expense object ​

FieldTypeDescription
idstringExpense ID with the exp_ prefix.
categorystringExpense category.
descriptionstringDescription.
amountintegerExpense amount.
currencystringISO 4217 currency code.
vendorstring | nullVendor or payee.
datestringYYYY-MM-DD.
receipt_urlstring | nullReceipt location.
created_bystringUser ID that created the record.
created_atstringISO 8601 timestamp.
updated_atstringISO 8601 timestamp.

Categories:

inventory, salary, rent, utilities, logistics, marketing, software, tax, other.

List expenses ​

http
GET /expenses

Filters: category, from, to, page, limit, sort, order.

Create an expense ​

http
POST /expenses

Required: category, description, amount, date.

bash
curl -X POST https://api.cedius.app/v1/expenses   -H "Authorization: Bearer cedius_test_sk_example"   -H "Content-Type: application/json"   -d '{
    "category": "logistics",
    "description": "Delivery fuel",
    "amount": 25000,
    "date": "2026-09-09",
    "vendor": "TotalEnergies"
  }'

Retrieve an expense ​

http
GET /expenses/{expense_id}

Update an expense ​

http
PATCH /expenses/{expense_id}

Delete an expense ​

http
DELETE /expenses/{expense_id}

Successful deletion returns 204 No Content.

Validation ​

  • amount must be greater than 0;
  • category must use a supported value;
  • date must be YYYY-MM-DD;
  • description is required on creation.

Cedius is an illustrative API documentation portfolio project.