Import companies

Insert or update company information as well as attach or disconnect customers to the company.
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
ApplicationKey
required
string <uuid>

Application identifier. Determines which application company belongs to.

Array of objects <Info> (Info)

List of additional information fields

Code
string

Company code. Used for company matching if Norce Commerce company id is omitted.

Array of objects <Contact> (Contact)

List of company contacts

Array of objects <Customer> (Customer)

List of customers belonging to company. Customers must exist already in Norce Commerce to be added as a relation to this Company. Any identifier can be used and they are ordered as Id, Code, EmailAddress. The first that is given will be used.

Array of objects <Address> (Address)

List of delivery addresses

Array of objects <DeliveryMethod> (DeliveryMethod)

List of delivery methods applicable to company

Array of objects <Discount> (Discount)

List of company discounts

EmailAddress
string

Contact email address

Array of objects <Flag> (Flag)

List of company flags

Id
integer <int32>

Norce Commerce's internal company id

object <Address> (Address)

Company or customer address information

IsActive
boolean

Sets company to active or inactive. Default is true.

IsCustomerListDelta
boolean

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

object <Image> (Image)

Image information

Name
string

Company name

OrganizationNo
string

Organization number. Used for company matching if Norce Commerce's internal company id and company code are omitted and SearchOnlyByCode is false in header.

ParentCompanyCode
string

Can be used for setting parent company (if exists)

Array of objects <PaymentMethod> (PaymentMethod)

List of company payment methods

PhoneNumber
string

Contact phone number

Array of objects <PriceList> (PriceList)

List of company price lists

VatNo
string

Vat Number

UseInvoiceAddressAsDeliveryAddress
boolean

Use in conjunction with an invoice address to set the delivery address to the same as the invoice address. Both must be active for the import.

Responses
200

Success

400

Bad Request

500

Internal Server Error

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