For the complete documentation index, see llms.txt. This page is also available as Markdown.

Removel of creditAmount, debitAmount, paymentId from payments

Affected endpoints

  • GET /salesinvoices/:id/payments

  • GET supplierinvoices/:id/payments

  • POST /supplierinvoices/:id/payments

Affected Property

We will be deprecating DocumentCurrencyCode.currency, you should be using documentCurrencyCode.currencyId

  "documentCurrencyCode": {
    "currency": "string", //obsolete, exists only in POST
    "currencyId": "string",
    "currencyRate": "decimal"
  },
  
  // NEW SINGLE AMOUNT FIELD
  "amount": "decimal",
  // OBSOLETE FIELDS BELOW
  // Credit is for customer invoice payment
  "creditAmount": {
    "amount": "decimal",
    "currencyId": "string"
  },
  // Debit is for supplier invoice payment
  "debitAmount": {
    "amount": "decimal",
    "currencyId": "string"
  }
}

Last updated

Was this helpful?