List expenses
Changed onEndpoint for retrieving a list of expenses.
Request
- Base URLhttps://api.wafeq.com/v1
- URLhttps://api.wafeq.com/v1/expenses/
- AuthAPI key in header Authorization
Query parameters
The unique identifier of the account.
The unique identifier of the branch.
The unique identifier of the contact.
The timestamp in UTC when the expense was created
The timestamp in UTC when the expense was created
Date
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}.
External identifier
The timestamp in UTC when the expense was last modified
The timestamp in UTC when the expense was last modified
A page number within the paginated result set.
Number of results to return per page.
The unique identifier of paid through account.
The unique identifier of the project.
Reference
- DRAFT - DRAFT
- POSTED - POSTED
- __null__ - null
The posting status of the expense (DRAFT or POSTED).
- DRAFT - Draft
- POSTED - Posted
Response
Example response
{
"count": 123,
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}Changes
- info
added the new optional
queryrequest parameterexpand - info
added the new optional
queryrequest parameterstatus - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- info