Newer Version Available
REST API for Converting Invoice Lines with Negative Balances
Use the REST API service blng__NegativeInvoiceToCreditNoteAction to evaluate invoices in bulk and create credit
notes for each invoice containing invoice lines with negative balances.
This object is available in API version 48.0 and later.
Supported REST HTTP Methods
- URI
- /services/data/XX.X/actions/custom/apex/blng__NegativeInvoiceToCreditNoteAction
- Formats
- JSON, XML
- HTTP Methods
- POST
- Authentication
- Authorization: Bearer token
Parameters
| Parameter | Description |
|---|---|
| invoiceId |
|
Response Body
| Parameter | Description |
|---|---|
| invoiceId |
|
| isSuccess |
|
| errorMessage |
|
Samples
- Sample Request Body
- This payload passes two invoice IDs to the negative invoice line conversion service.
-
- Sample Response Body
- In this case, we receive a response with one error because the sample payload contained an invoice that didn’t have any negative invoice lines.
-