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.

Specification

{
    "AccountId": <integer>,
    "CompanyFieldsThatAreSet": [string|integer],
    "CustomerFieldsThatAreSet": [string|integer],
    "AccountFieldsThatAreSet": [string],
    "JobId": <integer>,
    "SerializationType": [string],
    "StorageName": [string],  
    "SupplierId": [string]
}

AccountId

integer Required.

Account which initiated the import. Learn about system accounts here.

CompanyFieldsThatAreSet

[string|integer] Required.

Array of strings representing company fields to be processed

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

Not required for ImportCustomers.

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

CustomerFieldsThatAreSet

[string|integer] Required

Array of 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 ValueCode
0ApplicationKey
1Id
2Code
3EmailAddress
4SocialSecurityNumber
5Title
6FirstName
7MiddleName
8LastName
9PhoneNumber
10CellPhoneNumber
11IsActive
12InvoiceAddress
13DeliveryAddresses
14Accounts (set values in AccountFieldsThatAreSet)
15AdditionalInfo
16Flags
17PriceLists
18SearchOnlyByCode (matches the customer only on the value on the code field, alows for duplicated email addresses)
19Companies (set values in CompanyFieldsThatAreSet)
20CrmId
21PreserveFlags (Flags not passed in, will be left on the entity, otherwise they will be removed and replaced with the ones imported)

AccountFieldsThatAreSet

[string] - Optional

Array of strings representing account fields to be processed.

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

Not required for ImportCompanies

Required settings: Accounts (in CustomerFieldsThatAreSet)

Integer ValueCode
0PasswordCreateOnly Value is only set if the entity is created by the import
1Status
2StatusCreateOnly Value is only set if the entity is created by the import
3Roles
4RolesCreateOnly Value is only set if the entity is created by the import

JobId

integer - Optional

Norce Commerce Connect job id. Only exists in import logs. Should be omitted in the import request.

SerializationType

[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.

SupplierId

string <int32> - Optional Derived from base header. Ignored in this import.