Versioning and lifecycle
This page explains how Oscar API changes and what is promised to your integration about changes.
Versions
- v2 is the recommended API for new integrations. v2 API paths contain no version identifier, for example
https://api.oscar.fi/sales/sales-orders/changes/query. - v1 is in maintenance. v1 API paths start with
v1/, for examplehttps://api.oscar.fi/v1/general/….
Each integration is built on a single API version.
Changes in v2
v2 evolves with Oscar product development. New resources and fields are released continuously without a new version.
Non-breaking changes
These changes are made without advance notice:
- a new field in a response
- a new resource or endpoint
- a new optional parameter or request field
Build your integration so that it tolerates these changes: ignore unknown fields, and do not assume a field order. More: Responses and paging.
Breaking changes
These changes require changes to your integration:
- removing or renaming a field
- changing the type of a field
- a new required field in a request
- removing a path
A breaking change is announced in the changelog at least 6 months before it takes effect, and the entry is tagged Breaking change. The old behavior stays available for this whole period. To see all breaking changes, use the changelog filter.
v1 status
v1 is in maintenance:
- Bugs are fixed.
- No new functionality is added. New functionality is released in v2.
- v1 will not be removed without advance notice.
Following changes
All released changes are recorded in the changelog. Check the changelog regularly, and especially before you start to use a new resource.
