Insert a pricelist item

Inserts a new priceList item. If the PriceListItem already exists, an update is made.

Request
query Parameters
createdBy
required
string

The internal id of the current customer's account. If none is supplied, value is resolved from Application.

Request Body schema:

The PriceListItem to insert. Prices should be in the currency of the PriceList.

PartNo
string

PartNo of the SKU for this price item. MaxLength: 50

PricelistId
integer <int32>

The internal pricelist id.

Price
number <decimal>

The price. Read only. Currency is from the pricelist.

PriceRecommended
number or null <decimal>

The price from inherited pricelist, if any.

IsActive
boolean

Specifies if the pricelist item is active or not. Ignored when inserting new pricelist items.

object <PricelistPriceRule> (PricelistPriceRule)
Responses
200

Success

500

Internal Server Error

post/CustomerService.svc/rest/InsertPricelistItem
Request samples
{
  • "PartNo": "string",
  • "PricelistId": 0,
  • "Price": 0,
  • "PriceRecommended": 0,
  • "IsActive": true,
  • "PriceRule": {
    }
}
Response samples
{
  • "PartNo": "string",
  • "PricelistId": 0,
  • "Price": 0,
  • "PriceRecommended": 0,
  • "IsActive": true,
  • "PriceRule": {
    }
}