Deprecation of default sorting on some endpoints
The default order on some endpoints will change soon from ascending ID to descending ID.
Impacted endpoints
List ledger entry lines of a ledger entry
What you need to do
To help you migrating, there is a new sort param on id available on those 3 endpoints.
If your integration relies on the current ascending order, add the sort=id parameter to your API calls to maintain the current behavior.
If you want to prepare on the incoming descending order, add the sort=-id parameter to your API calls to prepare the incoming default behavior.
Examples
Before (current default) :
GET https://app.pennylane.com/api/external/v2/journals returns journals sorted by ascending IDs (oldest records displayed first)
After change (new default will be descending)
GET https://app.pennylane.com/api/external/v2/journals returns journals sorted by descending IDs (newest records displayed first)
From now, you can enforce the ordering :
GET https://app.pennylane.com/api/external/v2/journals?sort=id returns journals sorted by ascending IDs (oldest records displayed first)
GET https://app.pennylane.com/api/external/v2/journals?sort=-id returns journals sorted by descending IDs (newest records displayed first)
