Credit Invoice Input
Input representation of the details of the request to create a credit memo.
- JSON example
- This example shows a sample request with the Calculate tax
strategy.
{ "type": "POSTED", "taxStrategy": "Calculate", "taxEffectiveDate": "2024-07-20", "effectiveDate": "2024-07-20", "description": "Credit Invoice", "invoiceLines": [ { "invoiceLineId": "5TVR00000004SiqOBE", "amountToCredit": 5 } ] }
- This example shows a sample request with the CopyFromInvoiceLine tax
strategy.
{ "type": "POSTED", "taxStrategy": "CopyFromInvoiceLine", "effectiveDate": "2020-05-22", "description": "Credit Invoice", "invoiceLines": [ { "invoiceLineId": "5TVR00000004SiqOBE", "amountToCredit": "5", "taxStrategy": "CopyFromInvoiceLine" } ] }
- Properties
-
Name Type Description Required or Optional Available Version description String Optional 62.0 effectiveDate String Optional 62.0 invoiceLines Credit Invoice Line Input[] List of the invoice lines to be credited. The invoice line IDs must be related to the invoice ID specified in the API request. If invoice lines aren’t specified, the API request results in an error.
Required 62.0 taxEffectiveDate String Optional 62.0 taxStrategy String Tax strategy to be applied across invoice lines. You can override the tax strategy at the individual invoice line level or at the tax line level. Valid values are:
- Ignore—Specifies that the creation of tax lines must be ignored.
- CopyFromInvoiceLine—Specifies that tax values must be copied from the invoice line.
- Calculate—Specifies that tax must be calculated by using the API.
Required 62.0 type String Type of credit memo to be created. Valid value is Posted.
Optional 62.0