Expense Reports

List expense reports

Changed on

Endpoint for retrieving a list of expense reports.

get/expense-reports/

Request

  • Base URL
    https://api.wafeq.com/v1
  • URL
    https://api.wafeq.com/v1/expense-reports/
  • Auth
    API key in header Authorization

Query parameters

created_ts_afterstring date-time

The timestamp in UTC when the expense report was created

created_ts_beforestring date-time

The timestamp in UTC when the expense report was created

employeestring

The unique identifier of the employee.

expandstring

Comma-separated related objects to return in full instead of as IDs. Accepted values: claims, claims.account, claims.attachments, claims.branch, claims.contact, claims.cost_center, claims.project, claims.tax_rate, employee, employee.reimbursements_account, journal, reimbursements_account, reimbursements_account.parent. 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}.

modified_ts_afterstring date-time

The timestamp in UTC when the expense report was last modified

modified_ts_beforestring date-time

The timestamp in UTC when the expense report was last modified

pageinteger

A page number within the paginated result set.

page_sizeinteger

Number of results to return per page.

report_date_afterstring date

The date of the expense report.

report_date_beforestring date

The date of the expense report.

status'APPROVED' | 'DRAFT' | 'PENDING_APPROVAL' | 'REIMBURSED' | 'REIMBURSING' | 'REJECTED' | '__null__'
  • APPROVED - APPROVED
  • DRAFT - DRAFT
  • PENDING_APPROVAL - PENDING_APPROVAL
  • REIMBURSED - REIMBURSED
  • REIMBURSING - REIMBURSING
  • REJECTED - REJECTED
  • __null__ - null

The approval and reimbursement status of the expense report.

  • DRAFT - Draft
  • PENDING_APPROVAL - Pending approval
  • APPROVED - Approved
  • REJECTED - Rejected
  • REIMBURSING - Reimbursing
  • REIMBURSED - Reimbursed

Response

countinteger required

The total number of results across all pages.

nextstring uri nullable

The URL of the next page of results, or null on the last page.

previousstring uri nullable

The URL of the previous page of results, or null on the first page.

Example response

{
  "count": 123,
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

Changes