Migrer de 3.1 à 4.0

Information importante à mettre à jour de 3.1 à 4.0 de l'API.

Changements importants

POST
{base_url}/api/v4/
  • Mettre à jour les demandes à frapper .../api/v4.0/... Au lieu de .../api/v3.1/... .
POST
{base_url}/api/v4/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/v4/invoice/addUpdate