Update expense

put
https://api.wafeq.com/v1/expenses/{id}/

Endpoint for updating an existing expense.

Path Params
stringrequired
Query Params
string

Comma-separated relationships to expand. Pass journal to replace the journal ID with its object (ID, date, currency, reference, notes and timestamps). Documents without a journal still return null. Journal line items are retrieved separately with GET /v1/journal-line-items/?journal={journal_id}.

Body Params

An expense paid by the organization.

stringrequired

The account associated with this expense.

doublerequired

The monetary amount of the expense.

attachmentsarray of strings

Any files or documents attached to this expense.

string | null

The branch associated with this expense, if applicable.

string

The contact associated with this expense, if applicable.

string | null

The cost center associated with this expense, if applicable.

stringenumrequired

The currency code for the expense amount.

View the enum reference

daterequired

The date when the expense was incurred.

stringrequired

A detailed description of the expense.

double | null

The exchange rate to the organization base currency at the time of the document.

stringlength ≤ 255

External identifier for the expense.

stringrequired

The account used to pay for this expense.

string | null

The project associated with this expense, if applicable.

string

An optional reference code or number for this expense.

stringenumDefaults to TAX_INCLUSIVE

Specifies whether the tax amount is inclusive or exclusive.

View the enum reference

Allowed:
string

The tax rate applied to this expense, if applicable.

Headers
string

Client-provided UUID to uniquely identify a request

stringenumDefaults to application/json

Generated from available request content types

Allowed:
Response