Friday, January 11, 2019

Update Item record with Pricing Matrix

When an update is done to an item with a pricing matrix, an unexpected error might occur. This is because the Quantity field on the pricing matrix is not indicated. Even if there are no values on the other Quantity columns on the pricing matrix, the system is unable to determine which is being updated. To avoid unexpected errors, ensure that the Quantity is always included on the request.

Below is a snippet of sample SOAP request when performing an Update operation of an Item with a Pricing Matrix.

<s0:pricingMatrix replaceAll="false">
<s0:pricing>
<s0:currency internalId="1" />
<s0:priceLevel internalId="1" />
<s0:priceList>
<s0:price>
<s0:value>5.0</s0:value>
<s0:quantity>0.0</s0:quantity>
</s0:price>
</s0:priceList>
</s0:pricing>
</s0:pricingMatrix>

 

 

No comments:

Post a Comment