Migrating from 3.0 to 3.1
Important information to update from 3.0 to 3.1 of the API.
Please make sure you have migrated to 3.0 first before migrating to 3.1 3.0 Migration Guide
Breaking Changes
POST
{base_url}/api/v3.1/
- Update requests to .../api/v3.1/... instead of .../api/v3/... .
POST
{base_url}/api/v3.1/invoice/addUpdate
- The totals object is validated against the lines array. If they do not match the request will fail.
- The lines[i].total is validated when lines[i].qty and lines[i].unit_price are supplied. If they do not match the request will fail.
- The Totals object has been updated, see below.
Totals Object
- Field renamed: {Totals}.tax becomes {Totals}.taxes .
Affecting
POST
{base_url}/api/v3.1/invoice/addUpdate