Sunday, January 27, 2019

Web Services - Setting item pricing with custom price level in the Customer Record.

The Internal ID for price levels can be found in Setup > Accounting > Accounting Lists, -- Type (Footer Filter) - Price Level.

After going there you will notice that there is no Internal ID value for Custom Price, so note, the Internal ID of custom price levels in the Customer Record is: -1.

Soap Request Example - Setting Custom Price Level

UI Equivalent:

List > Relationships > Customers > Financial (Tab) > Item Pricing (Subtab)

Soap Example

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <platformMsgs:updateList xmlns:platformMsgs="urn:messages_2012_2.platform.webservices.netsuite.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s0="urn:relationships_2012_2.lists.webservices.netsuite.com" xmlns:platformCore="urn:core_2012_2.platform.webservices.netsuite.com"> <platformMsgs:record xsi:type="s0:Customer" internalId="1767"> <s0:subsidiary internalId="11" /> (***Optional***) <s0:priceLevel internalId="4" />(***Optional***) <s0:itemPricingList> <s0:itemPricing> <s0:item internalId="252" /> <s0:level internalId="-1" /> <s0:price>2000.0</s0:price> </s0:itemPricing> <s0:itemPricing> <s0:item internalId="250" /> <s0:level internalId="-1" /> <s0:price>3000.0</s0:price> </s0:itemPricing> </s0:itemPricingList> </platformMsgs:record> </platformMsgs:updateList> </soapenv:Body></soapenv:Envelope>

No comments:

Post a Comment