Last updated

X-StormConnect-Header specification

JSON or XML serialized string of the CustomerHeader 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,
    "CompanyFieldsThatAreSet": [integer|string],
    "CustomerFieldsThatAreSet": [integer|string],
    "AccountFieldsThatAreSet": [integer|string],
    "JobId": integer,
    "SerializationType": integer|string,
    "StorageName": string,  
    "SupplierId": integer
}

Example

{"AccountId":1,"CompanyFieldsThatAreSet":[0,2,3,4,5,6,9,10,11,14,17,18,19,20,12,22],"CustomerFieldsThatAreSet":[0,2,14,3,6,9,11,12,13],"AccountFieldsThatAreSet":[1,3,4],"SerializationType":0}

AccountId

integer Required.

Account id of the integration service which initiated the import. Learn about system accounts here.

CompanyFieldsThatAreSet

[integer|string] Required.

Comma separated array of integers or strings representing company fields to be processed.

Use the integer instead of the name for the xml content type.

Not required for ImportCustomers, but if used there, companies must be set in CustomerFieldsThatAreSet.

Integer ValueCodeRemarks
0ApplicationKey
1Id
2Code
3OrganizationNo
4Name
5EmailAddress
6PhoneNumber
7LogoImage
8ParentCompanyCode
9IsActive
10InvoiceAddress
11DeliveryAddresses
12AdditionalInfo
13Contacts
14CustomersSet values in CustomerFieldsThatAreSet
15DeliveryMethods
16Discounts
17Flags
18PaymentMethods
19PriceLists
20SearchOnlyByCodeMatches the customer only on the value on the code field, allows for duplicated OrganizationNo
21VatNo
22PreserveFlagsFlags not passed in will remain on the entity, otherwise they will be replaced with imported values

CustomerFieldsThatAreSet

[integer|string] Required

Comma separated array of integers or strings representing customer fields to be processed.

Use the integer instead of the name for the xml content type.

Not required for ImportCompanies, but if used there, customers must be set in CompanyFieldsThatAreSet.

Integer ValueCodeRemarks
0ApplicationKey
1Id
2Code
3EmailAddress
4SocialSecurityNumber
5Title
6FirstName
7MiddleName
8LastName
9PhoneNumber
10CellPhoneNumber
11IsActive
12InvoiceAddress
13DeliveryAddresses
14AccountsSet values in AccountFieldsThatAreSet
15AdditionalInfo
16Flags
17PriceLists
18SearchOnlyByCodeMatches the customer only on the value on the code field, alows for duplicated email addresses
19CompaniesSet values in CompanyFieldsThatAreSet
20CrmId
21PreserveFlagsFlags not passed in will remain on the entity, otherwise they will be replaced with imported values

AccountFieldsThatAreSet

[integer|string] - Optional

Comma separated array of integers or strings representing account fields to be processed.

Use the integer instead of the name for the xml content type

Not required for ImportCompanies.

Required setting: Accounts (in CustomerFieldsThatAreSet)

Integer ValueCodeRemarks
0PasswordCreateOnlyValue is only set if the entity is created by the import
1Status
2StatusCreateOnlyValue is only set if the entity is created by the import
3Roles
4RolesCreateOnlyValue is only set if the entity is created by the import

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.