Import customers

Insert or update customer information, create accounts on the customer or create, attach or disconnect companies to the customer.
Read more about the method here.

Request
header Parameters
required
object <CustomerHeader> (CustomerHeader)

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 both string or integer for application/json.

Request Body schema:
Array
Array of objects <Account> (Account)

List of registered customer accounts

Array of objects <Info> (Info)

List of additional information fields

ApplicationKey
string <uuid>

Application identifier. Determines which application company belongs to.

CellPhoneNumber
string

Mobile phone number

Code
string

Customer code. Used for customer matching if Norce Commerce's internal customer id is omitted.

Array of objects <CompanyIdentifier> (CompanyIdentifier)

List of companies belonging to this customer. Companies must exist already in Norce Commerce to be added as a relation to this Customer. Any identifier can be used and they are ordered as Id, Code, OrganizationNo. The first that is given will be used. If more than one is marked IsPrimary then only the first will be marked as primary.

CrmId
string

Used to save the customer external id from a crm-system

Array of objects <Address> (Address)

Delivery address

EmailAddress
string

Customer email address. Used for customer matching if Norce Commerce customer id and code is omitted and SearchOnlyByCode is false in header.

FirstName
string

First name

Array of objects <Flag> (Flag)

Customer flags

Id
integer <int32>

Norce Commerce's internal customer id

object <Address> (Address)

Company or customer address information

IsActive
boolean

Sets customer to active or inactive. Default is true.

IsCompanyListDelta
boolean

If false companies that are not provided for this customer in request will be deactivated from the relation to this Company. Default is false.

LastName
string

Last name

MiddleName
string

Middle name

PhoneNumber
string

Phone number

Array of objects <PriceList> (PriceList)

Customer price lists

SocialSecurityNumber
string

Social security number

Title
string

Title

Type
integer <int32>

Customer type: 1 = Customer, 2 = Company contact

Responses
200

Success

400

Bad Request

500

Internal Server Error

post/Customer/ImportCustomers
Request samples
[
  • {
    }
]
Response samples
{
  • "StatusCode": "string",
  • "Description": "string",
  • "JobId": "string",
  • "ValidationSummary": {
    }
}