Skip to navigation

Create Expense

View as Markdown

Creates a direct expense.

Requires the can_create_expense permission on the key owner’s role.

Keys: secret key only.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

identitystring
The identity for the active workspace.

Request

This endpoint expects an object.
itemslist of objectsRequired
account_idstringRequiredformat: "uuid"
expense_datedatetimeRequired
documentslist of objectsOptional
vendor_idstringOptionalformat: "uuid"
adjustmentslist of objectsOptional
exchange_ratedoubleOptional

Response

Created
dataobject
statusboolean
messagestring

Errors

401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error