Expense Reviews

Search Expense Reviews

Changed on

Endpoint to find users with ExpenseReview using filtering parameters.

get/business/v2/expense-review

Request

Query parameters

delegatedBystring[]

Filters expenses by the user who delegated them.

[
  "XMPL1234-000001"
]
fromDatestring date-time

The beginning of the period of the search fromDate included (i.e. greater than or equal to) (Formats: yyyy-MM-dd, yyyy-MM-ddThh:mm:ss, yyyy-MM-ddThh:mm:ssZ).

toDatestring date-time

The end of the period of the search toDate included (i.e. less than) (Formats: yyyy-MM-dd, yyyy-MM-ddThh:mm:ss, yyyy-MM-ddThh:mm:ssZ).

textstring

A text to search in the expenses reviewer name or surname.

Example:John
pinteger

It indicates the specific page to display (the counter starts from zero).

Example:3
sinteger

It indicates the number of items per page.

Example:25
propsstring[]

It indicates the sorting direction applied to the above parameters. To apply a sorting on multiple parameters, set as many times the props parameter in the request.

[
  "creationTime"
]

Response

The returned resource is an array of Expenses.

totalinteger

It represents the total number of available items in the list.

pagesinteger

It represents the total number of available pages.

page_sizeinteger

It represents the number of items per page.

current_pageinteger

It indicates the current page (the counter starts from zero).

results_sizeinteger

It indicates the size of the array results.

Example response

{
  "total": 168,
  "pages": 7,
  "page_size": 25,
  "results_size": 25,
  "results": [
    {
      "user_id": "XMPL1234-000001",
      "user_name": "JOHN",
      "user_surname": "DOE",
      "job_title": "CTO",
      "to_review_transaction": 1,
      "reviewed_transaction": 2,
      "exported_transaction": 1,
      "total_transaction": 3
    }
  ]
}

Changes

    • info

      for the query request parameter fromDate, the type was generalized from no type to string, and format from no format to date-time

    • info

      for the query request parameter toDate, the type was generalized from no type to string, and format from no format to date-time