POST api/Customers/AddCustomerLocations

Request Information

URI Parameters

None.

Body Parameters

CustomerLocations
NameDescriptionTypeAdditional information
CustomerLocation

Collection of CustomerLocation

None.

Request Formats

application/xml, text/xml

Sample:
<CustomerLocations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <CustomerLocation>
    <CustomerID>sample string 1</CustomerID>
    <LocationID>sample string 2</LocationID>
    <DefaultLocation>true</DefaultLocation>
  </CustomerLocation>
  <CustomerLocation>
    <CustomerID>sample string 1</CustomerID>
    <LocationID>sample string 2</LocationID>
    <DefaultLocation>true</DefaultLocation>
  </CustomerLocation>
</CustomerLocations>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreateResultWithDocumentsKeys
NameDescriptionTypeAdditional information
Rows

Collection of DocumentKeys

None.

ResultCode

ExternalResultCode

None.

Errors

Collection of ErrorWithKeys

None.

Response Formats

application/xml, text/xml

Sample:
<CreateResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Rows>
    <DocumentKeys>
      <Keys>
        <Key>
          <Name>sample string 1</Name>
          <Value>sample string 2</Value>
        </Key>
        <Key>
          <Name>sample string 1</Name>
          <Value>sample string 2</Value>
        </Key>
      </Keys>
    </DocumentKeys>
    <DocumentKeys>
      <Keys>
        <Key>
          <Name>sample string 1</Name>
          <Value>sample string 2</Value>
        </Key>
        <Key>
          <Name>sample string 1</Name>
          <Value>sample string 2</Value>
        </Key>
      </Keys>
    </DocumentKeys>
  </Rows>
  <ResultCode>None</ResultCode>
  <Errors>
    <Error>
      <Level>Warning</Level>
      <Message>sample string 1</Message>
      <Keys>
        <Key>
          <Name>sample string 1</Name>
          <Value>sample string 2</Value>
        </Key>
        <Key>
          <Name>sample string 1</Name>
          <Value>sample string 2</Value>
        </Key>
      </Keys>
    </Error>
    <Error>
      <Level>Warning</Level>
      <Message>sample string 1</Message>
      <Keys>
        <Key>
          <Name>sample string 1</Name>
          <Value>sample string 2</Value>
        </Key>
        <Key>
          <Name>sample string 1</Name>
          <Value>sample string 2</Value>
        </Key>
      </Keys>
    </Error>
  </Errors>
</CreateResult>