Skip to navigation

Update PO Line Item

View as Markdown

Update Purchase Order Line Item

This API allows you to update the line items of a purchase order.

Request Body

ParamRequiredTypeDescription
orderIdMandatoryStringThe ID of the order.
itemsMandatoryObjectAn object containing the list of purchase order items.
poItemsMandatoryArrayAn array of purchase order items.
baseMandatoryNumberThe base value.
notesMandatoryStringAdditional notes for the item.
productMandatoryObjectDetails of the product.
productIdMandatoryStringThe ID of the product.
valueMandatoryNumberThe value of the product.
nameMandatoryStringThe name of the product.
isMasterMandatoryBooleanIndicates if it’s a master product.
glOptionalStringGeneral ledger code.
imageOptionalStringURL of the product image.
titleOptionalStringTitle of the product.
descOptionalStringDescription of the product.
currencyMandatoryStringCurrency of the product.
hsnOptionalStringHarmonized System Nomenclature code.
skuOptionalStringStock Keeping Unit code.
typeOptionalStringType of the product.
serviceOptionalStringIndicates if it’s a service.
unitsOptionalStringUnits of the product.
saleMandatoryBooleanIndicates if the product is for sale.
amountMandatoryNumberThe amount of the product.
buyMandatoryBooleanIndicates if the product is for purchase.
taxCodeOptionalStringTax code for the product.
qttyMandatoryNumberThe quantity of the item.
deleteOptionalBooleanIndicates if the item should be deleted.
lineItemReferenceNoOptionalStringThe reference number of the line item.

Response

  • success (boolean): Indicates if the update was successful.

Example

{
"success": true
}

Headers

DICE-APP-IDstringOptional
X-CLIENT-IDstringOptional
X-CLIENT-SECRETstringOptional

Request

This endpoint expects an object.
orderIdstringRequired
itemsobjectRequired

Response

OK
successboolean