Skip to content
Developerhome

Sorting of index responses

Published   3 April 2019     Less than to read

It’s official. API v3.1 now supports sorting for our most requested index endpoints. 🎉

This feature allows you to define the order of objects in the response. Here’s a short example how to use it:

GET /sales_invoices?sort=due_date:desc

The response will be sorted descending by the due date of the invoices. Sorting is in place now for all invoice, credit note, quote and payment index endpoints.

A complete guide to implementing sorting can be found here.