Update expense

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

Endpoint for updating an existing expense.

Path Params
stringrequired
Query Params
string

Comma-separated related objects to return in full instead of as IDs. Accepted values: account, account.parent, attachments, branch, contact, contact.persons, journal, paid_through_account, paid_through_account.parent, project, tax_rate, cost_center. Nested relations are joined with a dot. 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: the ID of the tax rate (tax_…). List the tax rates of the organization with GET /v1/tax-rates/. Add expand=tax_rate to get the full tax rate in the response.

Headers
string

Client-provided UUID to uniquely identify a request

string

The id of the organization to act on, from GET /v1/organizations/. Required when the OAuth token or accounting partner API key grants access to several organizations; optional otherwise. With an organization API key, it must name the key's own organization.

stringenumDefaults to application/json

Generated from available request content types

Allowed:
Response