Expense Categories

Create an expense category

post/expense-categories

Request

  • Base URL: https://www.ruddr.io/api/workspace
  • URL: https://www.ruddr.io/api/workspace/expense-categories
  • Auth: HTTP bearer

Request body

namestring required

The name of the expense category. Max 255 characters.

invoiceItemIdstring required

The ID of the invoice item to assign to this expense category. The invoice item must be of type expense.

isActiveboolean

Whether the expense category is active. Defaults to true if not provided.

requireAttendeesboolean

Whether expenses using this category require attendees.

requireReceiptboolean

Whether expenses using this category require a receipt.

requireNotesboolean

Whether expenses using this category require notes.

unitNamestring

For unit-based expense categories, the label of the unit (e.g., "mile"). Max 255 characters. Must be provided together with unitAmount.

unitAmountnumber

For unit-based expense categories, the amount per unit (e.g., 0.655). Must be provided together with unitName.

codestring

The code of the expense category. Max 255 characters.

Response

200

idstring

The unique identifier for the object.

namestring

The name of the expense category.

isActiveboolean

Whether the expense category is active.

requireAttendeesboolean

Whether expenses using this category require attendees.

requireReceiptboolean

Whether expenses using this category require a receipt.

requireNotesboolean

Whether expenses using this category require notes.

unitNamestring nullable

For unit-based expense categories, the label of the unit (e.g., "mile"). null if the category is not unit-based.

unitAmountnumber nullable

For unit-based expense categories, the amount per unit (e.g., 0.655). null if the category is not unit-based.

codestring nullable

The code of the expense category.

createdAtstring date-time

The timestamp when the object was created.

Changes

No recorded changes to this operation across all 1 revision of this API.