Posted Invoice List Write-Off (POST)

Create credit memos with the total charge amount on the invoice as the write-off amount and close the invoice.

You can write off invoices to maintain accurate financial records and to prioritize invoices with a higher probability of payment, which is essential for compliance with accounting standards.

Special Access Rules 

To use this API, you need the Billing Operations User or Credit Memo Operations User permission set.

Resource 

1/commerce/invoicing/invoices/actions/write-off

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/commerce/invoicing/invoices/actions/write-off

Available Version 

64.0

HTTP Methods 

POST

Request Body for POST 

JSON Example

1{
2  "invoices": [
3    {
4      "invoiceId": "3ttxx00000000cjAAA",
5      "reasonCode": "Bad Debt",
6      "description": "Bad Debt"
7    },
8    {
9      "invoiceId": "3ttxx00000000cjAAA",
10      "reasonCode": "Concession",
11      "description": "Concession"
12    }
13  ]
14}

Properties

NameTypeDescriptionRequired or OptionalAvailable Version
invoicesPosted Invoice Write-Off Input[]Details of the invoices that you want to write off.Required64.0

Response Body for POST 

Posted Invoice List Write-Off