FTOS_TPM_DeleteInvoiceDetails
Deletes an invoice detail from the specified third-party invoice in Draft status. If successfully deleted, the pre-invoice detail on which the invoice detail was based upon becomes available to be attached to another invoice, as its Invoiced field becomes False.
Syntax
The FTOS_TPM_DeleteInvoiceDetails custom endpoint is called from within the Endpoint API endpoint. Visit the Endpoint API page for more details.
POST <host_address>/ftosapi/automation-processors/actions/FTOS_TPM_DeleteInvoiceDetails
Content-Type: application/json
{
"invoiceNo": "<invoice_number>",
"invoiceDetailNo": "<invoice_detail_number>"
}
Here's a list of the available parameters:
| Parameter | Description |
|---|---|
| host_address | URL of the FintechOS Platform server. |
| invoiceNo | Mandatory, text. The invoice number you wish to delete the detail from. |
| invoiceDetailNo | Mandatory, text. The invoice detail number you wish to delete. |
Response
The response indicates the result of the code execution.
Example
To delete an invoice detail from the specified invoice in Draft status, send the following request, making sure you replace the parameter values with your own values. The pre-invoice detail on which the invoice detail was based upon becomes available to be attached to another invoice, as its Invoiced field becomes False.
Request
POST <host_address>/ftosapi/automation-processors/actions/FTOS_TPM_DeleteInvoiceDetails
Content-Type: application/json
{
"invoiceNo": "TPMI000001117",
"invoiceDetailNo": "ECB9865"
}
Response
{
"IsSuccess": true
}