# Import price lists Use this to import campaigns and other price lists. Price lists not existing in Norce Commerce will be created.Read more about the method here. Endpoint: POST /Product/ImportPriceLists Version: 4.0 ## Header parameters: - `X-StormConnect-Header` (string, required) Json serialized string ## Request fields (application/json): - `Code` (string, required) Externally defined price list code. Used to match price list in Norce Commerce. - `CurrencyCode` (string) Currency code in ISO 4217 format, e.g. "SEK", "EUR", "USD". - `DefaultPriceRule` (integer) Price rule to be set as default.1 = Cost plus2 = Fixed price3 = Margin (purchase cost)4 = Use recommended price5 = Cost plus (unit cost)6 = Margin (unit cost)7 = Use standard price (pct discount)8 = Competitive (purchase cost)9 = Competitive (unit cost)10 = Use standard price (fixed discount)11 = Structure calculation12 = Use catalog price - `DefaultPriceRuleCode` (string) Deprecated - `DefaultPriceRuleValue` (number) Default price list value. - `Description` (string) Price list description - `EndDate` (string) End date/time when price list is no longer valid. - `IsErpIntegrated` (boolean) Deprecated - `IsPrimary` (boolean) Determines if price list is primary. Only one price list can be primary on an application. - `IsPublic` (boolean) Determines if price list is public and active. - `IsFavorite` (boolean) Determines if price list is favorite for the current application. - `Name` (string) Price list name. Max length: 50 - `StartDate` (string) Start time when price list is valid and applied. - `TypeCode` (string) Price list type code - `Warehouses` (array) List of warehouses where this price list is applicable. - `Warehouses.Code` (string, required) Warehouse code. Used for warehouse matching in Norce Commerce. - `Warehouses.Locations` (array, required) List of warehouse locations. - `Warehouses.Locations.Code` (string, required) Location code. Used for location matching in Norce Commerce. - `Warehouses.Locations.IsIncludedInStockCalculation` (boolean) Determines if a location is part of central warehouse stock calculation. - `Warehouses.Locations.LeadTimeDayCount` (integer) Indication of time required for delivery. - `Warehouses.Locations.Name` (string) Location name. - `Warehouses.LeadTimeDayCount` (integer) Indication of time required for delivery - `Warehouses.Name` (string) Warehouse name. - `Warehouses.Type` (integer) Warehouse type.1 = Warehouse2 = Store3 = Transport4 = Other - `SalesArea` (integer) Sales area identifier.1 = Sweden2 = Norway3 = Denmark4 = Finland5 = UnitedKingdom6 = Estonia7 = Greenland8 = Germany9 = Italy10 = Austria11 = Spain12 = Netherlands13 = Belgium14 = France15 = Switzerland17 = USA18 = Ireland19 = Canada20 = Lithuania21 = Latvia22 = Japan23 = SouthKorea24 = Australia25 = Europe26 = Poland27 = CzechRepublic28 = Russia29 = NoVAT36 = Bulgaria37 = Croatia38 = Cyprus39 = Greece40 = Hungary41 = Luxembourg42 = Malta43 = Portugal44 = Romania45 = Slovakia46 = Slovenia - `DefaultMinMarginPercent` (number) Default minimum product margin percentage. - `LimitToRecPrice` (boolean) Limit to recommended price. - `ParentPriceListCode` (string) Code of parent price list. - `DefaultSupplementalChargeFixed` (number) Default supplemental charge (fixed) - `DefaultSupplementalChargePercent` (number) Default supplemental charge (percentage) - `PriceRules` (array) List of price rules. - `PriceRules.Type` (integer, required) Price list price rule identifier.1 = CostPlus_PurchaseCost3 = Margin_PurchaseCost4 = UseRecommendedPrice5 = CostPlus_UnitCost6 = Margin_UnitCost7 = UseStandardPrice_PctDiscount10 = UseStandardPrice_FixedDiscount12 = UseCatalogPrice - `PriceRules.Value` (number) Value of selected type. - `PriceRules.MinValue` (number) Value range minimum. - `PriceRules.MaxValue` (number) Value range maximum. - `PriceRules.ManufacturerCode` (string) Manufacturer identifier code. - `PriceRules.CategoryCode` (string) Category identifier code. - `PriceRules.Flags` (array) List of flag identifier codes. - `Population` (object) Price list population. - `Population.Type` (integer) 1 = Exclude (All products are excluded from parent price list. Select what categories and manufacturers to include.)2 = Include (All products are include from parent price list. Select what categories and manufacturers to exclude.) - `Population.AllCategories` (object) Specifies population rules for all categories. - `Population.AllCategories.RuleType` (integer, required) 1 = None (Removes all rules if any exists.)2 = Manufacturers3 = Flags - `Population.AllCategories.RuleCodes` (array) Identifier codes for Manufacturers or Flags depending on type.Is required if type is Manufacturers or Flags.Is ignored if other type is used. - `Population.Categories` (array) List of population rules for categories. - `Population.Categories.Code` (string, required) Category identifier code. - `Population.Categories.RuleType` (integer, required) 1 = None (Removes all rules if any exists.)2 = Manufacturers3 = Flags4 = Category - `Population.Categories.RuleCodes` (array) Identifier codes of Manufacturers or Flags depending on type.Is required if type is Manufacturer or Flags.Is ignored if other type is used. - `Population.Categories.RequireSupplier` (boolean) Specifies if supplier is required. (defaults to false) ## Response 200 fields (application/json): - `StatusCode` (string) Status of the job - `Description` (string) Short message describing the job - `JobId` (string) Norce interal id created for this job. Refer to this for future requests. - `ValidationSummary` (object) Validation data for accepted payload - `ValidationSummary.NrOfItemsInTotal` (integer) Total number of items in payload. - `ValidationSummary.NrOfValidationFailures` (integer) Number of items that failed initial validation. - `ValidationSummary.Messages` (array) Messages concerning the validation.