Download PDF
Download page Adding Manual Lines to an Invoice.
Adding Manual Lines to an Invoice
You can add new lines, edit or delete existing lines to an invoice by calling the API Apttus_Billing.BillingService.manageAdHocLines.
The API can handle only one operation (Add, Edit, or Delete) at a time.
You must provide the following information:
- Enter the start date in (YYYY, MM, DD) format. The start date cannot be left blank and must be in the range of the start date and end date of the system-generated invoice line item(s).
- Enter the end date in (YYYY, MM, DD) format. The end date cannot be left blank and must be in the range of the start date and end date of the system-generated invoice line item(s).
- Enter a description (e.g., "Miscellaneous charges", "Additional installation charges", etc.) for the ad hoc invoice line item entry.
- Enter the fee amount to be charged in the Amount field. Decimal places cannot be greater than the value supplied in the setting Billing System Properties > Currency Decimal Places.
If you have entered multiple inputs to add line items, and even if there is a validation error for one of the inputs, other inputs are not processed.
The API snippets to add, edit, or delete operations are given in the table:
Add New Line
CODE
| When you call this API, it adds a new line to the system-generated or ad hoc invoices. You must provide:
You can provide any of the standard or custom fields listed under the Custom Fields & Relationships of Invoice Line Item object, in the input section. The invoiceLineItem.Id field must be blank for a new line addition. After the execution is complete, you are returned to the invoice record where you can see the invoice line item(s) is(are) created under the invoice line item(s) related list but the "Type" field will have a value "Additional Fee" thus differentiating them from the system generated invoice lines. |
Edit an Existing Line
CODE
| When you call this API, it edits the data of an existing line that is added to the system-generated or ad hoc invoice. You must provide the ID of the existing line that is added to the system-generated or ad hoc invoices in the invoiceLineItem.Id field to execute the Edit operation. The invoiceLineItem.Id field must not be blank. It must contain the ID of the invoice line to be edited. You can edit every data including:
After the execution is complete, you are returned to the invoice record page where you can see your changes on the invoice record. |
Delete an Existing Line
CODE
| When you call this API, it deletes an existing line that is added to the system-generated or ad hoc invoice. You must provide:
The invoiceLineItem.Id field must not be blank. It must contain the ID of the invoice line to be deleted. After the execution is complete, you are returned to the invoice record page where you can see the "Record Deleted" message. |