Insert or update company information as well as attach or disconnect customers to the company.
Read more about the method here.
required | object <CustomerHeader> (CustomerHeader) JSON or XML serialized string of the CustomerHeader object. |
Success
Bad Request
Internal Server Error
[- {
- "ApplicationKey": "15d62d1f-3a4e-4111-845a-4db40bf08e87",
- "AdditionalInfo": [
- {
- "Code": "string",
- "Value": "string"
}
], - "Code": "string",
- "Contacts": [
- {
- "Code": "string",
- "IsActive": true
}
], - "Customers": [
- {
- "Accounts": [
- {
- "ApplicationKey": "15d62d1f-3a4e-4111-845a-4db40bf08e87",
- "LoginName": "string",
- "Password": "string",
- "Roles": [
- {
- "Code": null,
- "IsActive": null
}
], - "Status": "Active"
}
], - "AdditionalInfo": [
- {
- "Code": "string",
- "Value": "string"
}
], - "ApplicationKey": "15d62d1f-3a4e-4111-845a-4db40bf08e87",
- "CellPhoneNumber": "string",
- "Code": "string",
- "Companies": [
- {
- "Code": "string",
- "Id": 0,
- "IsPrimary": true,
- "Name": "string",
- "OrganizationNo": "string"
}
], - "CrmId": "string",
- "DeliveryAddresses": [
- {
- "AddressLine1": "string",
- "AddressLine2": "string",
- "CareOf": "string",
- "City": "string",
- "Code": "string",
- "CountryCode": "string",
- "Gln": "string",
- "IsPrimary": true,
- "IsValidated": true,
- "Region": "string",
- "ShippingPhoneNumber": "string",
- "ZipCode": "string"
}
], - "EmailAddress": "string",
- "FirstName": "string",
- "Flags": [
- {
- "Code": "string",
- "IsActive": true,
- "IsCreateOnly": true,
- "IsLimitedUpdate": true,
- "StopDate": "string"
}
], - "Id": 0,
- "InvoiceAddress": {
- "AddressLine1": "string",
- "AddressLine2": "string",
- "CareOf": "string",
- "City": "string",
- "Code": "string",
- "CountryCode": "string",
- "Gln": "string",
- "IsPrimary": true,
- "IsValidated": true,
- "Region": "string",
- "ShippingPhoneNumber": "string",
- "ZipCode": "string"
}, - "IsActive": true,
- "IsCompanyListDelta": true,
- "LastName": "string",
- "MiddleName": "string",
- "PhoneNumber": "string",
- "PriceLists": [
- {
- "Code": "string",
- "IsExclusive": true
}
], - "SocialSecurityNumber": "string",
- "Title": "string",
- "Type": 0
}
], - "DeliveryAddresses": [
- {
- "AddressLine1": "string",
- "AddressLine2": "string",
- "CareOf": "string",
- "City": "string",
- "Code": "string",
- "CountryCode": "string",
- "Gln": "string",
- "IsPrimary": true,
- "IsValidated": true,
- "Region": "string",
- "ShippingPhoneNumber": "string",
- "ZipCode": "string"
}
], - "DeliveryMethods": [
- {
- "Code": "string",
- "IsActive": true
}
], - "Discounts": [
- {
- "DiscountPercentage": 0,
- "PriceListTypeIdSeed": "string",
- "Type": "string",
- "ValueCode": "string"
}
], - "EmailAddress": "string",
- "Flags": [
- {
- "Code": "string",
- "IsActive": true,
- "IsCreateOnly": true,
- "IsLimitedUpdate": true,
- "StopDate": "string"
}
], - "Id": 0,
- "InvoiceAddress": {
- "AddressLine1": "string",
- "AddressLine2": "string",
- "CareOf": "string",
- "City": "string",
- "Code": "string",
- "CountryCode": "string",
- "Gln": "string",
- "IsPrimary": true,
- "IsValidated": true,
- "Region": "string",
- "ShippingPhoneNumber": "string",
- "ZipCode": "string"
}, - "IsActive": true,
- "IsCustomerListDelta": true,
- "LogoImage": {
- "ExternalCode": "string",
- "FileTypeName": "string",
- "Filename": "string",
- "LastModified": "string"
}, - "Name": "string",
- "OrganizationNo": "string",
- "ParentCompanyCode": "string",
- "PaymentMethods": [
- {
- "Code": "string",
- "InvoiceCaptureSettingsCode": "string",
- "IsActive": true
}
], - "PhoneNumber": "string",
- "PriceLists": [
- {
- "Code": "string",
- "IsExclusive": true
}
], - "VatNo": "string",
- "UseInvoiceAddressAsDeliveryAddress": true
}
]
{- "StatusCode": "string",
- "Description": "string",
- "JobId": "string",
- "ValidationSummary": {
- "NrOfItemsInTotal": 0,
- "NrOfValidationFailures": 0,
- "Messages": [
- "string"
]
}
}