Migration Guide: v1 → v2
This guide covers the changes between API v1 and v2 and how to update your integration.
Base URL Changes
| API | v1 Base URL | v2 Base URL |
|---|---|---|
| Public (Production) | https://api.tidely.com/api/v1/open-api | https://api.tidely.com/public/v2 |
| Public (Staging) | https://api.sam.tidely.com/api/v1/open-api | https://api.sam.tidely.com/public/v2 |
Update all API calls to use the new path structure prefix.
Changes to Existing Resources
Invoices
The biggest change to an existing resource is the invoice API. In v1, invoices were handled through a single unified import endpoint. In v2 this has been replaced by a full set of resource-oriented CRUD operations:
| Operation | v2 Endpoint |
|---|---|
| List | GET /invoices |
| Retrieve | GET /invoices/{id} |
| Create | POST /invoices |
| Bulk create | POST /invoices/bulk (up to 1000 at once) |
| Update | PATCH /invoices/{id} |
| Delete | DELETE /invoices/{id} |
Key things to be aware of when migrating:
- Migrate away from the import endpoint — clients relying on the v1 import endpoint must switch to
the new operations above. Use
POST /invoices/bulkfor high-volume creation. - List and retrieve require
invoiceTypeFilter—GET /invoicesandGET /invoices/{id}take a requiredinvoiceTypeFilterquery parameter (SALEorPURCHASE). - ERP-sourced invoices are read-only — invoices originating from an ERP integration cannot be
updated or deleted;
PATCHandDELETEare rejected for them. - Partial updates —
PATCH /invoices/{id}updates only the mutable invoice fields and does not acceptexternalIdorinvoiceType.
Pagination Changes
Paginated endpoints in v2 use a consistent response structure with metadata fields (number, size,
totalElements, totalPages). See the Pagination guide for details.
Authentication
Authentication methods are unchanged in v2:
- Public API: API key via
X-Authorizationheader - Partner API (new in v2): OAuth 2.0 via
Authorization: Bearerheader
Migration Checklist
- ✅ Update base URLs
- ✅ Update pagination handling for the new response metadata format
- ✅ Migrate invoice integrations from the v1 import endpoint to the new CRUD operations
- ✅ Test your integration against the staging environment (
api.sam.tidely.com) - ✅ Switch production traffic to v2
v1 Deprecation Timeline
v1 is currently deprecated but still operational. End of life has not been scheduled yet. When end of life is announced, there will be at least 6 months notice via email and the changelog.
We recommend migrating to v2 as soon as possible to benefit from new features and improvements.