X-StormConnect-Header specification
JSON or XML serialized string of the SupplierProductHeader object. Note that the enums must be of integer values when using application/xml. Encoding and can be either string or integer for application/json. Also note that this must be a single string without line breaks and all values in the arrays should be comma separated. Omit properties not used.
Specification
{ "AccountId": integer, "FullFile": boolean, "ContentFieldsThatAreSet": [integer|string], "FieldsThatAreSet": [integer|string], "OnhandFieldsThatAreSet": [integer|string], "PriceFieldsThatAreSet": [integer|string], "ProductInfoFieldsThatAreSet": [integer|string], "SerializationType": [integer|string], "JobId": integer, "StorageName": string, "SupplierId": integer }
Example
{"AccountId":1,"FullFile":false,"ContentFieldsThatAreSet":[1,6,13,14],"FieldsThatAreSet":[0,1,4,5],"OnhandFieldsThatAreSet":[0,1,2],"PriceFieldsThatAreSet":[0,11],"ProductInfoFieldsThatAreSet":[],"SerializationType":0}
AccountId
integer
Required.
Account id of the integration service which initiated the import. Learn about system accounts here.
FullFile
boolean
Required
Flag that specify how Norce Commerce Connect will handle the import. If true, this supplier will be inactivated on categories not included in this import. Also, availabilty data and price data on warehouses and pricelists present in the import but not on a specific product will be inactivated for that product. Use with caution, and if you're ever unsure please set this to false.
FieldsThatAreSet
[integer|string]
Required.
Comma separated array of integeros or strings that specifies which product fields to be updated.
Use the integer instead of the name for the xml content type
Integer Value | Code |
---|---|
0 | SupplierPartNo |
1 | ProductName |
2 | CategoryCode |
3 | ProductType |
4 | Manufacturer |
5 | ManufacturerPartNo |
6 | EanCode |
7 | CommodityCode |
8 | GrossWeight |
9 | NetWeight |
10 | UnitOfMeasurementCode |
11 | UnitOfMeasurementCount |
12 | VatCode |
13 | LogisticWidth |
14 | LogisticHeight |
15 | LogisticDepth |
ContentFieldsThatAreSet
[integer|string]
Required.
Comma separated array of integers or strings that specifies which product culture fields to be updated.
Use the integer instead of the name for the xml content type
Integer Value | Code | Remarks |
---|---|---|
0 | Name | |
1 | NameCreateOnly | Value is set only if the entity is created by this import |
2 | SubHeader | |
3 | SubDescription | |
4 | DescriptionHeader | |
5 | Description | |
6 | DescriptionCreateOnly | Value is set only if the entity is created by this import |
7 | Synonyms | |
8 | Title | |
9 | Tags | |
10 | MetaTags | |
11 | MetaDescription | |
12 | NameLimitedUpdate | Name is only updated if the account for this import last updated it. |
13 | UniqueUrlName | |
14 | IsUniqueUrlNameManuallyMaintained | |
15 | UniqueUrlNameCreateOnly | Value is set only if the entity is created by this import |
OnhandFieldsThatAreSet
[integer|string]
Required.
Comma separated array of integers or strings that specifies which on hand fields to be updated.
Use the integer instead of the name for the xml content type
Integer Value | Code |
---|---|
0 | Value |
1 | IncomingValue |
2 | NextDeliveryDate |
3 | StoppedDate |
4 | IsReturnable |
5 | LeadTimeDayCount |
6 | ExternalStockValue |
7 | PackageValue |
8 | MinimumOrderValue |
9 | IsActive |
PriceFieldsThatAreSet
[integer|string]
Required.
Comma separated array of integers or strings that specifies which price fields to be updated.
Use the integer instead of the name for the xml content type
Integer Value | Code |
---|---|
0 | CostPurchase |
1 | CostPurchaseValidTo |
2 | PriceRecommended |
3 | PriceMax |
4 | PriceDealer |
5 | IsPromotion |
6 | IsFocus |
7 | PriceRanking |
8 | FreightCost |
9 | CostFee |
10 | DiscountPct |
11 | IsActive |
12 | PriceCatalog |
ProductInfoFieldsThatAreSet
[integer|string]
Required.
Comma separated array of integers or strings that specifies which product info fields to be updated.
Use the integer instead of the name for the xml content type
Integer Value | Code |
---|---|
0 | Value |
JobId
integer
- Optional
Internal Norce Commerce id for this job. Created automatically by Norce Commerce Connect. Should be omitted in the import request.
SerializationType
integer|string
- Optional
Request serialization type. (Use the integer instead of the name for the xml content type)
0 = JSON
, 1 = XML
StorageName
string <uri>
- Optional
Location of the import file on Norce's file area. Can be used instead of sending data directly in payload. This requires another process of file uploads agreed with Norce to work.
SupplierId
integer
- Optional
Only used in combination with StorageName
above.