v1

latestOpenAPI 3.1.1LicenseRef-Proprietary2026-07-1310179223.1 KB
Expenses

Create Expense

Log a new expense. Amounts are in cents (see Concepts); attach files first via POST /attachments and reference their IDs in the request body.

post/expenses

Request body

amountinteger

Amount in cents.

attachmentsinteger[]

Attachment IDs to link.

billableboolean
categoryinteger required

Expense category ID

datestring required
detailsstring
projectstring
quantitynumber
userinteger
type'separate' | 'billable' | 'cost'

Expense type.

Example request

{
  "amount": 2278,
  "billable": true,
  "category": 236046,
  "date": "2019-04-04",
  "details": "Transportation notes",
  "project": "as:333045610521453",
  "quantity": 17,
  "user": 6
}

Response

Created

amountinteger
billableboolean
categorynumber
datestring
detailsstring
idnumber
projectstring
quantitynumber
usernumber

Example response

{
  "amount": 2278,
  "attachments": [
    {
      "id": 514,
      "name": "avatar.jpg",
      "token": "9a04b8a1fb99cbfadf3386ad6a338c14"
    }
  ],
  "billable": true,
  "category": 236046,
  "date": "2019-04-04",
  "details": "Transportation notes",
  "id": 234718,
  "project": "as:333045610521453",
  "quantity": 17,
  "user": 6
}