Create expense
Changed onEndpoint for creating a new expense.
Request
- Base URLhttps://api.wafeq.com/v1
- URLhttps://api.wafeq.com/v1/expenses/
- AuthAPI key in header Authorization
Query parameters
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}.
Headers
Client-provided UUID to uniquely identify a request
Request body
Response
Changes
- info
added the new optional
queryrequest parameterexpand - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- info