# 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. Endpoint: POST /UpdateCompanyPricelist2 Version: 1.1 ## Query parameters: - `companyId` (integer, required) 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 fields (application/json): - `Id` (integer,null) The internal pricelist id. Set to null when creating a new pricelist. - `ParentId` (integer,null) 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) 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. - `PriceRule` (object) - `PriceRule.RuleId` (integer,null) An internal id for a specific rule. Consult Norce for a list of valid ids and what they mean. - `PriceRule.Value` (number,null) The value associated with the rule. The ruleId specifies how this value is used. - `PopulationRules` (array) A list of population rules for this pricelist. - `PopulationRules.RuleId` (integer,null) An internal id for a specific rule. Set to null when creating a rule. - `PopulationRules.ManufacturerId` (integer,null) An optional internal manufacturer id. Used if the priceList is restricted to a specific manufacturer. - `PopulationRules.CategoryId` (integer,null) An optional internal category id. Used if the priceList is restricted to a specific category. - `PopulationRules.IsSupplierRequired` (boolean) Specifies if the populations is from a supplier. - `PopulationRules.IsInclusive` (boolean) Specifies if the population rule is inclusive or exclusive. - `CurrencyId` (integer) 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. ## Response 200 fields (application/json): - `Id` (integer,null) The internal pricelist id. Set to null when creating a new pricelist. - `ParentId` (integer,null) 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) 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. - `PriceRule` (object) - `PriceRule.RuleId` (integer,null) An internal id for a specific rule. Consult Norce for a list of valid ids and what they mean. - `PriceRule.Value` (number,null) The value associated with the rule. The ruleId specifies how this value is used. - `PopulationRules` (array) A list of population rules for this pricelist. - `PopulationRules.RuleId` (integer,null) An internal id for a specific rule. Set to null when creating a rule. - `PopulationRules.ManufacturerId` (integer,null) An optional internal manufacturer id. Used if the priceList is restricted to a specific manufacturer. - `PopulationRules.CategoryId` (integer,null) An optional internal category id. Used if the priceList is restricted to a specific category. - `PopulationRules.IsSupplierRequired` (boolean) Specifies if the populations is from a supplier. - `PopulationRules.IsInclusive` (boolean) Specifies if the population rule is inclusive or exclusive. - `CurrencyId` (integer) 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.