PUT customer

Update customer details

Request Information

URI Parameters

None.

Body Parameters

Interprise.Web.Services.Models.CustomerUpdate
NameDescriptionTypeAdditional information
CustomerName

string

None.

CustomerCode

string

None.

DefaultContact

string

None.

DefaultShipToCode

string

None.

Telephone

string

None.

TelephoneExtension

string

None.

Fax

string

None.

FaxExtension

string

None.

Email

string

None.

CustomerTypeCode

Customer type, optional

string

None.

IsActive

Status, optional. Default to True when not specified

boolean

None.

IsCreditHold

Credit on hold, optional. Default to False when not specified

boolean

None.

IsAllowBackOrder

Allow Back ordering, optional. Default to True when not specified

boolean

None.

TaxNumber

Tax Number or Vat Number

string

None.

BusinessLicense

Business License or Company Registration

string

None.

SalesRepGroupName

Sales Rep, optional

string

None.

BillingAddress

Billing address, optional

Interprise.Web.Services.Models.CustomerUpdate+UpdateBillingAddressInput

None.

ShippingAddress

Shipping address, optional

Interprise.Web.Services.Models.CustomerUpdate+UpdateShippingAddressInput

None.

CustomFields

CCollection of all the custom fields in a Customer table

Collection of Interprise.Web.Services.Models.CustomField

None.

Request Formats

{
  "customerName": "sample string 1",
  "customerCode": "sample string 2",
  "defaultContact": "sample string 3",
  "defaultShipToCode": "sample string 4",
  "telephone": "sample string 5",
  "telephoneExtension": "sample string 6",
  "fax": "sample string 7",
  "faxExtension": "sample string 8",
  "email": "sample string 9",
  "customerTypeCode": "sample string 10",
  "isActive": true,
  "isCreditHold": true,
  "isAllowBackOrder": true,
  "taxNumber": "sample string 11",
  "businessLicense": "sample string 12",
  "salesRepGroupName": "sample string 13",
  "billingAddress": {
    "address": "sample string 1",
    "city": "sample string 2",
    "state": "sample string 3",
    "county": "sample string 4",
    "postalCode": "sample string 5",
    "country": "sample string 6",
    "classCode": "sample string 7"
  },
  "shippingAddress": {
    "shipToName": "sample string 1",
    "shipToCode": "sample string 2",
    "isActive": true,
    "address": "sample string 3",
    "state": "sample string 4",
    "city": "sample string 5",
    "county": "sample string 6",
    "postalCode": "sample string 7",
    "country": "sample string 8",
    "telephone": "sample string 9",
    "telephoneExtension": "sample string 10",
    "fax": "sample string 11",
    "faxExtension": "sample string 12",
    "email": "sample string 13",
    "classCode": "sample string 14"
  },
  "customFields": [
    {
      "field": "sample string 1",
      "value": {}
    },
    {
      "field": "sample string 1",
      "value": {}
    }
  ]
}
<CustomerUpdate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <CustomerName>sample string 1</CustomerName>
  <CustomerCode>sample string 2</CustomerCode>
  <DefaultContact>sample string 3</DefaultContact>
  <DefaultShipToCode>sample string 4</DefaultShipToCode>
  <Telephone>sample string 5</Telephone>
  <TelephoneExtension>sample string 6</TelephoneExtension>
  <Fax>sample string 7</Fax>
  <FaxExtension>sample string 8</FaxExtension>
  <Email>sample string 9</Email>
  <CustomerTypeCode>sample string 10</CustomerTypeCode>
  <IsActive>true</IsActive>
  <IsCreditHold>true</IsCreditHold>
  <IsAllowBackOrder>true</IsAllowBackOrder>
  <TaxNumber>sample string 11</TaxNumber>
  <BusinessLicense>sample string 12</BusinessLicense>
  <SalesRepGroupName>sample string 13</SalesRepGroupName>
  <SalesRepGroupCode>sample string 14</SalesRepGroupCode>
  <BillingAddress>
    <Address>sample string 1</Address>
    <City>sample string 2</City>
    <State>sample string 3</State>
    <County>sample string 4</County>
    <PostalCode>sample string 5</PostalCode>
    <Country>sample string 6</Country>
    <ClassCode>sample string 7</ClassCode>
  </BillingAddress>
  <ShippingAddress>
    <ShipToName>sample string 1</ShipToName>
    <ShipToCode>sample string 2</ShipToCode>
    <IsActive>true</IsActive>
    <Address>sample string 3</Address>
    <State>sample string 4</State>
    <City>sample string 5</City>
    <County>sample string 6</County>
    <PostalCode>sample string 7</PostalCode>
    <Country>sample string 8</Country>
    <Telephone>sample string 9</Telephone>
    <TelephoneExtension>sample string 10</TelephoneExtension>
    <Fax>sample string 11</Fax>
    <FaxExtension>sample string 12</FaxExtension>
    <Email>sample string 13</Email>
    <ClassCode>sample string 14</ClassCode>
  </ShippingAddress>
  <CustomFields>
    <CustomField>
      <Field>sample string 1</Field>
      <Value />
    </CustomField>
    <CustomField>
      <Field>sample string 1</Field>
      <Value />
    </CustomField>
  </CustomFields>
</CustomerUpdate>

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'CustomerUpdate'.

Response Information

Resource Description

Interprise.Web.Services.Http.MetadataOfInterprise.Web.Services.Models.CustomerUpdate
NameDescriptionTypeAdditional information
data

Interprise.Web.Services.Http.DataNodeOfInterprise.Web.Services.Models.CustomerUpdate

None.

links

Interprise.Web.Services.Http.LinksNode

None.

Response Formats

Sample not available.