Global API
Requests

Edit Transaction Item

3min

You can edit Transaction items, also known as line items using the respective transaction update actions. There will be scenarios when you only need to update line items instead of the entire transaction.

Action values for different Transactions will be ("update" + Transaction Name). Ex: to update Sales Order line items, we need to use the "updateSalesOrder" action.

Supported Transactions

Sales Transactions: Estimate, SalesOrder, CashSale, Invoice, CreditMemo, CashRefund, RMA

Purchase Transactions: Bills, Purchase Orders

Update Sales Order Line Items

When updating transaction line items, set "replaceAll" to false to prevent deleting existing line items. Also, to update existing lines, include the "line" value of the line item.

Getting "line" value for existing line items

Use the key "line" to update a specific line item of the transaction and it takes the line item number as the key to achieve it. And the line number of the line item can be found under the "Additional Information" section of the respective line item in the salesforce. And if the requirement is only to add new line items, then no need to specify the "line".

Example

The following is an example of editing line item/s of a transaction. This example demonstrates editing the line items of the sales order and is also generically used to edit the line items of other transactions by modifying action values.

Request
Response




Updated 29 May 2024
Doc contributor
Doc contributor
Doc contributor
Did this page help you?