Update pricelist for company (v2)

Updates a PriceList for the specified Company. If the PriceList is not an existingPriceList it will be created. Otherwise it will be updated. Note that only Reseller and Application specific priceLists can be updated. Any attempt to update an other priceList type will be ignored. If no PriceRule is specified, PriceRule 7, use standard price, with no discount will be used. To delete a Company PriceList use DeleteCompanyPricelist.

Request
query Parameters
companyId
required
integer <int32>

The internal id of the Company.

updatedBy
string

Account internal id of current user.

cultureCode
string

Specifies in which language to display culture specific information. If none is supplied, value is resolved from Application.

Request Body schema:

The priceList to update for the Company. The PriceRule for updated PriceLists will be 'Use standard price (pct discount)' (id:7) if none is supplied.

Id
integer or null <int32>

The internal pricelist id. Set to null when creating a new pricelist.

ParentId
integer or null <int32>

The parent internal pricelist id. If any.

Name
string

The name of the pricelist. MaxLength: 50

Description
string

The description of the pricelist. MaxLength: max

Agreement
string

The agreement code of the pricelist. Can be an external id of the priceList. MaxLength: 50

Type
integer <int32>

The type of the pricelist. 0 is default. Other values are application specific.

IsActive
boolean

Specifies if the pricelist is active or not. Set this to false before update if you want to delete the pricelist.

object <PricelistPriceRule> (PricelistPriceRule)
Array of objects <PricelistPopulationRule> (PricelistPopulationRule)

A list of population rules for this pricelist.

CurrencyId
integer <int32>

The currencyId for this pricelist.

IsExclusive
boolean

Indicates if the pricelist should be used exclusively for this Company, or not. Exclusive pricelists are not used with any standard pricelists and only exclusive pricelists will be in scope if the Company has any.

Responses
200

Success

500

Internal Server Error

post/CustomerService.svc/rest/UpdateCompanyPricelist2
Request samples
{
  • "Id": 0,
  • "ParentId": 0,
  • "Name": "string",
  • "Description": "string",
  • "Agreement": "string",
  • "Type": 0,
  • "IsActive": true,
  • "PriceRule": {
    },
  • "PopulationRules": [
    ],
  • "CurrencyId": 0,
  • "IsExclusive": true
}
Response samples
[
  • {
    }
]