V2 - Pagination
by Integrations SquadOn the Alpha endpoints, the pagination is different from the v1 and the ledger scope.
On the Alpha endpoints, the pagination is different from the v1 and the ledger scope.
The Pennylane .tech domain will be deprecated at the end of April. Please make sure that you don't use this domain anymore in your API calls.
The invoicing numbering has been changed to follow these two guidelines regarding customer invoices issue dates
(1) issue dates can't be prior the last invoice finalised
(2) issue dates can't be in the future
This change has been brought to avoid duplicates of numbering and conform with legal restrictions.
This change is live in the application and the API.
Read more about it here.
For better experience, we are performing breaking changes on some of our ledger endpoints.
Impacte date: 11/12/2023
Impacted endpoints : POST Ledger Entries / PUT Ledger Entries
Transition/depreciation time: Not possible
A breaking change will soon be made to the POST Ledger Entries and PUT Ledger Entries endpoints that will limit to 100 the number of entry_lines
that can be created/modified/deleted for each ledger_entry
, for performance reasons.
ID change: At Pennylane we have many different types of accounting documents that we use in order to be performant. In the next couple months we are increasing the number of documents types so that we are even faster in processing accounting requests via the API as well as the UI. In order to make our API V2 easier to work with, we excluded the concept of accounting document types. The way we do this is by suffixing the ID with a type number. In order to extend the upcoming performance improvements to the API V2 without causing a breaking change in the future, we need to make a change now.
Action items
If all the ledger_entry
IDs that you have in your DB were created via the API V2 ("post
/api/external/v2/ledger_entries"), you don’t need to take any action. All IDs created via API V2 have the right type ID suffixed.
get
api/external/v2/ledger_entries", it may return 404
. In those case the ID is no longer valid and you should delete the record in your DB and refetch/map the ledger entry in order to get the correct ID and type. This new system we’re implementing will prevent any future breaking changes when we make performance improvements to our accounting document storing.
Impacte date: 11/12/2023
Impacted endpoints : POST Ledger Entries / PUT Ledger Entries / GET Ledger Entries
Transition/depreciation time: 11/01/2024