OrderBy

Order by Filter

A list of items can be returned in a specific order. To specify the ordering, provide a property to order by and whether the order is ascending or descending.

Example

Order contacts by email address

  • Ascending

    EmailAddress

    becomes

    https://api.xero.com/api.xro/2.0/Contacts?order=EmailAddress

    in the query string.

  • Descending

    EmailAddress DESC

    becomes

    https://api.xero.com/api.xro/2.0/Contacts?order=EmailAddress%20DESC

    in the query string.

Xero API Request filters