PUT v1/CustomerAddressPreferences

Documentation for 'Put'.

Request Information

Parameters

NameDescriptionAdditional information
customerAccountPreference
Documentation for 'customerAccountPreference'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
Click to beautify!
{
  "contactName": "sample string 1",
  "shippingInstructions": "sample string 2",
  "useBillingAddressAsShippingAddress": true,
  "id": 4
}

application/xml, text/xml

Sample:
Click to beautify!
<CustomerAddressPreference xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Dto.Put">
  <Id>4</Id>
  <ContactName>sample string 1</ContactName>
  <ShippingInstructions>sample string 2</ShippingInstructions>
  <UseBillingAddressAsShippingAddress>true</UseBillingAddressAsShippingAddress>
</CustomerAddressPreference>

application/x-www-form-urlencoded

Sample:
Click to beautify!

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
Click to beautify!
{
  "contactName": "sample string 1",
  "shippingInstructions": "sample string 2",
  "useBillingAddressAsShippingAddress": true,
  "addressForTaxes": {
    "customerAddressPreferenceId": 1,
    "companyName": "sample string 2",
    "line1": "sample string 3",
    "line2": "sample string 4",
    "countryId": 1,
    "country": "sample string 5",
    "stateId": 1,
    "state": "sample string 6",
    "city": "sample string 7",
    "postalZip": "sample string 8",
    "addressType": "sample string 9",
    "valid": true,
    "id": 11,
    "uri": "sample string 12"
  },
  "billingAddress": {
    "customerAddressPreferenceId": 1,
    "companyName": "sample string 2",
    "line1": "sample string 3",
    "line2": "sample string 4",
    "countryId": 1,
    "country": "sample string 5",
    "stateId": 1,
    "state": "sample string 6",
    "city": "sample string 7",
    "postalZip": "sample string 8",
    "addressType": "sample string 9",
    "valid": true,
    "id": 11,
    "uri": "sample string 12"
  },
  "shippingAddress": {
    "customerAddressPreferenceId": 1,
    "companyName": "sample string 2",
    "line1": "sample string 3",
    "line2": "sample string 4",
    "countryId": 1,
    "country": "sample string 5",
    "stateId": 1,
    "state": "sample string 6",
    "city": "sample string 7",
    "postalZip": "sample string 8",
    "addressType": "sample string 9",
    "valid": true,
    "id": 11,
    "uri": "sample string 12"
  },
  "id": 4,
  "uri": "sample string 5"
}

application/xml, text/xml

Sample:
Click to beautify!
<CustomerAddressPreference xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Dto.Get">
  <Id>4</Id>
  <Uri>sample string 5</Uri>
  <AddressForTaxes>
    <Id>11</Id>
    <Uri>sample string 12</Uri>
    <AddressType>sample string 9</AddressType>
    <City>sample string 7</City>
    <CompanyName>sample string 2</CompanyName>
    <Country>sample string 5</Country>
    <CountryId>1</CountryId>
    <CustomerAddressPreferenceId>1</CustomerAddressPreferenceId>
    <Line1>sample string 3</Line1>
    <Line2>sample string 4</Line2>
    <PostalZip>sample string 8</PostalZip>
    <State>sample string 6</State>
    <StateId>1</StateId>
    <Valid>true</Valid>
  </AddressForTaxes>
  <BillingAddress>
    <Id>11</Id>
    <Uri>sample string 12</Uri>
    <AddressType>sample string 9</AddressType>
    <City>sample string 7</City>
    <CompanyName>sample string 2</CompanyName>
    <Country>sample string 5</Country>
    <CountryId>1</CountryId>
    <CustomerAddressPreferenceId>1</CustomerAddressPreferenceId>
    <Line1>sample string 3</Line1>
    <Line2>sample string 4</Line2>
    <PostalZip>sample string 8</PostalZip>
    <State>sample string 6</State>
    <StateId>1</StateId>
    <Valid>true</Valid>
  </BillingAddress>
  <ContactName>sample string 1</ContactName>
  <ShippingAddress>
    <Id>11</Id>
    <Uri>sample string 12</Uri>
    <AddressType>sample string 9</AddressType>
    <City>sample string 7</City>
    <CompanyName>sample string 2</CompanyName>
    <Country>sample string 5</Country>
    <CountryId>1</CountryId>
    <CustomerAddressPreferenceId>1</CustomerAddressPreferenceId>
    <Line1>sample string 3</Line1>
    <Line2>sample string 4</Line2>
    <PostalZip>sample string 8</PostalZip>
    <State>sample string 6</State>
    <StateId>1</StateId>
    <Valid>true</Valid>
  </ShippingAddress>
  <ShippingInstructions>sample string 2</ShippingInstructions>
  <UseBillingAddressAsShippingAddress>true</UseBillingAddressAsShippingAddress>
</CustomerAddressPreference>