Affluenza REST API

<back to all web services

ListAllCounterpartsRequest

The following routes are available for this service:
GET/counterparts
GET/counterparts/listAllByFilter/{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/ListAllCounterpartsRequest HTTP/1.1 
Host: www.plusrated.com 
Content-Type: application/xml
Content-Length: length

<ContractTransport.ListAllCounterpartsRequest 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>
  <CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
</ContractTransport.ListAllCounterpartsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ContractTransport.ListAllCounterpartsResponse 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:d2p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource.Contract" xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest">
    <d2p1:CounterpartResource>
      <d2p1:Account>String</d2p1:Account>
      <d2p1:Agency>String</d2p1:Agency>
      <d2p1:CNPJ>String</d2p1:CNPJ>
      <d2p1:Code>String</d2p1:Code>
      <d2p1:CounterpartId>00000000-0000-0000-0000-000000000000</d2p1:CounterpartId>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:ExternalKey>String</d2p1:ExternalKey>
      <d2p1:Type>00000000-0000-0000-0000-000000000000</d2p1:Type>
    </d2p1:CounterpartResource>
  </_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>
</ContractTransport.ListAllCounterpartsResponse>