Affluenza REST API

<back to all web services

CustomerPutRequest

The following routes are available for this service:
PUT/customers/{customerId}

To override the Content-type in your clients HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/CustomerPutRequest HTTP/1.1 
Host: www.plusrated.com 
Content-Type: application/xml
Content-Length: length

<CustomerTransport.CustomerPutRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Transport">
  <AppKey xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest">0</AppKey>
  <Token xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest">String</Token>
  <Customer xmlns:d2p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource.Customer">
    <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource">00000000-0000-0000-0000-000000000000</Id>
    <d2p1:Activity>
      <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource">0</Id>
      <d2p1:Name>String</d2p1:Name>
    </d2p1:Activity>
    <d2p1:City xmlns:d3p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource.Address">
      <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource">0</Id>
      <d3p1:Name>String</d3p1:Name>
      <d3p1:State>
        <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource">0</Id>
        <d3p1:Acronym>String</d3p1:Acronym>
        <d3p1:Country>
          <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource">0</Id>
          <d3p1:Name>String</d3p1:Name>
        </d3p1:Country>
        <d3p1:Name>String</d3p1:Name>
      </d3p1:State>
    </d2p1:City>
    <d2p1:Cnpj>String</d2p1:Cnpj>
    <d2p1:Complement>String</d2p1:Complement>
    <d2p1:Contacts i:nil="true" />
    <d2p1:CorporateName>String</d2p1:CorporateName>
    <d2p1:Country xmlns:d3p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource.Address">
      <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource">0</Id>
      <d3p1:Name>String</d3p1:Name>
    </d2p1:Country>
    <d2p1:CreateDate>0001-01-01T00:00:00</d2p1:CreateDate>
    <d2p1:District>String</d2p1:District>
    <d2p1:FancyName>String</d2p1:FancyName>
    <d2p1:Groups xmlns:d3p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource.Account" i:nil="true" />
    <d2p1:Modules i:nil="true" />
    <d2p1:Number>0</d2p1:Number>
    <d2p1:Observation>String</d2p1:Observation>
    <d2p1:ParentId>00000000-0000-0000-0000-000000000000</d2p1:ParentId>
    <d2p1:State xmlns:d3p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource.Address">
      <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource">0</Id>
      <d3p1:Acronym>String</d3p1:Acronym>
      <d3p1:Country>
        <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource">0</Id>
        <d3p1:Name>String</d3p1:Name>
      </d3p1:Country>
      <d3p1:Name>String</d3p1:Name>
    </d2p1:State>
    <d2p1:Status>Active</d2p1:Status>
    <d2p1:Street>String</d2p1:Street>
    <d2p1:SysAdmin>false</d2p1:SysAdmin>
    <d2p1:UpdateDate>0001-01-01T00:00:00</d2p1:UpdateDate>
    <d2p1:Users xmlns:d3p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource.Account" i:nil="true" />
    <d2p1:ZipCode>String</d2p1:ZipCode>
  </Customer>
  <CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
</CustomerTransport.CustomerPutRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CustomerTransport.CustomerPutResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Transport">
  <_x003C_ErrorMessage_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest">
    <_x003C_Message_x003E_k__BackingField>String</_x003C_Message_x003E_k__BackingField>
    <_x003C_StatusCode_x003E_k__BackingField>0</_x003C_StatusCode_x003E_k__BackingField>
  </_x003C_ErrorMessage_x003E_k__BackingField>
  <_x003C_Response_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest">false</_x003C_Response_x003E_k__BackingField>
  <_x003C_Status_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest">Success</_x003C_Status_x003E_k__BackingField>
</CustomerTransport.CustomerPutResponse>