Insert pricelist for company (v2)

Inserts a new PriceList for the specified Company. If the PriceList is an existing PriceList it will be connected to the Company. Otherwise it will be created.

Request
query Parameters
companyId
required
integer <int32>

The internal id of the Company.

createdBy
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 insert for the Company. The PriceRule for new 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/InsertCompanyPricelist2
Request samples
{
  • "Id": 0,
  • "ParentId": 0,
  • "Name": "string",
  • "Description": "string",
  • "Agreement": "string",
  • "Type": 0,
  • "IsActive": true,
  • "PriceRule": {
    },
  • "PopulationRules": [
    ],
  • "CurrencyId": 0,
  • "IsExclusive": true
}
Response samples
[
  • {
    }
]