Get a customer by code

Gets a Customer by external code. Returns null if the customer doesn't exist.

Request
query Parameters
code
required
string

The external code. Usually the id in the erp system.

cultureCode
string

Specifies in which language to display culture specific information. If none is supplied, value is resolved from Application.

includeCompanies
string

Include full company data, if any, with the customer. Otherwise only primary company, if any, is included. Default is true.

Responses
200

Success

500

Internal Server Error

get/CustomerService.svc/rest/GetCustomerByCode
Response samples
{
  • "Id": 0,
  • "Key": "string",
  • "Code": "string",
  • "Email": "string",
  • "SSN": "string",
  • "FirstName": "string",
  • "LastName": "string",
  • "Phone": "string",
  • "CellPhone": "string",
  • "ReferId": 0,
  • "ReferUrl": "string",
  • "Account": {
    },
  • "Companies": [
    ],
  • "DeliveryAddresses": [
    ],
  • "InvoiceAddress": {
    },
  • "Flags": [
    ],
  • "UseInvoiceAddressAsDeliveryAddress": true,
  • "Info": [
    ],
  • "PricelistIds": [
    ],
  • "CrmId": "string",
  • "IsActive": true,
  • "Created": "2019-08-24T14:15:22Z",
  • "Updated": "2019-08-24T14:15:22Z"
}