Affluenza REST API

<back to all web services

PortfolioGetByCustomerRequest

The following routes are available for this service:
GET/portfolios/customer/{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/PortfolioGetByCustomerRequest HTTP/1.1 
Host: 107.22.237.214 
Content-Type: application/xml
Content-Length: length

<PortfolioTransport.PortfolioGetByCustomerRequest 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>
</PortfolioTransport.PortfolioGetByCustomerRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PortfolioTransport.PortfolioGetByCustomerResponse 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.Portfolio" xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest">
    <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Core.Rest.Resource">00000000-0000-0000-0000-000000000000</Id>
    <d2p1:CreatedBy>00000000-0000-0000-0000-000000000000</d2p1:CreatedBy>
    <d2p1:CreatedByName>String</d2p1:CreatedByName>
    <d2p1:CreatedOn>0001-01-01T00:00:00</d2p1:CreatedOn>
    <d2p1:CustomerId>00000000-0000-0000-0000-000000000000</d2p1:CustomerId>
    <d2p1:Description>String</d2p1:Description>
    <d2p1:ModifiedBy>00000000-0000-0000-0000-000000000000</d2p1:ModifiedBy>
    <d2p1:ModifiedOn>0001-01-01T00:00:00</d2p1:ModifiedOn>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:ParentId>00000000-0000-0000-0000-000000000000</d2p1:ParentId>
    <d2p1:PortfolioChilds xmlns:d3p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Portfolio">
      <d3p1:Portfolio>
        <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">00000000-0000-0000-0000-000000000000</Id>
        <d3p1:CreatedBy>00000000-0000-0000-0000-000000000000</d3p1:CreatedBy>
        <d3p1:CreatedByName>String</d3p1:CreatedByName>
        <d3p1:CreatedOn>0001-01-01T00:00:00</d3p1:CreatedOn>
        <d3p1:Customer xmlns:d5p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Customer">
          <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">00000000-0000-0000-0000-000000000000</Id>
          <d5p1:Activity>
            <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
            <d5p1:Active>false</d5p1:Active>
            <d5p1:Name>String</d5p1:Name>
          </d5p1:Activity>
          <d5p1:City xmlns:d6p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Address">
            <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
            <d6p1:Name>String</d6p1:Name>
            <d6p1:State>
              <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
              <d6p1:Acronym>String</d6p1:Acronym>
              <d6p1:Country>
                <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
                <d6p1:Name>String</d6p1:Name>
              </d6p1:Country>
              <d6p1:Name>String</d6p1:Name>
            </d6p1:State>
          </d5p1:City>
          <d5p1:Cnpj>String</d5p1:Cnpj>
          <d5p1:Complement>String</d5p1:Complement>
          <d5p1:Contacts i:nil="true" />
          <d5p1:CorporateName>String</d5p1:CorporateName>
          <d5p1:Country xmlns:d6p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Address">
            <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
            <d6p1:Name>String</d6p1:Name>
          </d5p1:Country>
          <d5p1:CreateDate>0001-01-01T00:00:00</d5p1:CreateDate>
          <d5p1:District>String</d5p1:District>
          <d5p1:FancyName>String</d5p1:FancyName>
          <d5p1:Groups xmlns:d6p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Account" i:nil="true" />
          <d5p1:Modules i:nil="true" />
          <d5p1:Number>0</d5p1:Number>
          <d5p1:Observation>String</d5p1:Observation>
          <d5p1:ParentId>00000000-0000-0000-0000-000000000000</d5p1:ParentId>
          <d5p1:State xmlns:d6p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Address">
            <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
            <d6p1:Acronym>String</d6p1:Acronym>
            <d6p1:Country>
              <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
              <d6p1:Name>String</d6p1:Name>
            </d6p1:Country>
            <d6p1:Name>String</d6p1:Name>
          </d5p1:State>
          <d5p1:Status>Ative</d5p1:Status>
          <d5p1:Street>String</d5p1:Street>
          <d5p1:SysAdmin>false</d5p1:SysAdmin>
          <d5p1:UpdateDate>0001-01-01T00:00:00</d5p1:UpdateDate>
          <d5p1:Users xmlns:d6p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Account" i:nil="true" />
          <d5p1:ZipCode>String</d5p1:ZipCode>
        </d3p1:Customer>
        <d3p1:Description>String</d3p1:Description>
        <d3p1:Left>0</d3p1:Left>
        <d3p1:ModifiedBy>00000000-0000-0000-0000-000000000000</d3p1:ModifiedBy>
        <d3p1:ModifiedOn>0001-01-01T00:00:00</d3p1:ModifiedOn>
        <d3p1:Name>String</d3p1:Name>
        <d3p1:ParentId>00000000-0000-0000-0000-000000000000</d3p1:ParentId>
        <d3p1:PortfolioChilds>
          <d3p1:Portfolio>
            <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">00000000-0000-0000-0000-000000000000</Id>
            <d3p1:CreatedBy>00000000-0000-0000-0000-000000000000</d3p1:CreatedBy>
            <d3p1:CreatedByName>String</d3p1:CreatedByName>
            <d3p1:CreatedOn>0001-01-01T00:00:00</d3p1:CreatedOn>
            <d3p1:Customer xmlns:d7p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Customer">
              <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">00000000-0000-0000-0000-000000000000</Id>
              <d7p1:Activity>
                <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
                <d7p1:Active>false</d7p1:Active>
                <d7p1:Name>String</d7p1:Name>
              </d7p1:Activity>
              <d7p1:City xmlns:d8p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Address">
                <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
                <d8p1:Name>String</d8p1:Name>
                <d8p1:State>
                  <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
                  <d8p1:Acronym>String</d8p1:Acronym>
                  <d8p1:Country>
                    <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
                    <d8p1:Name>String</d8p1:Name>
                  </d8p1:Country>
                  <d8p1:Name>String</d8p1:Name>
                </d8p1:State>
              </d7p1:City>
              <d7p1:Cnpj>String</d7p1:Cnpj>
              <d7p1:Complement>String</d7p1:Complement>
              <d7p1:Contacts i:nil="true" />
              <d7p1:CorporateName>String</d7p1:CorporateName>
              <d7p1:Country xmlns:d8p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Address">
                <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
                <d8p1:Name>String</d8p1:Name>
              </d7p1:Country>
              <d7p1:CreateDate>0001-01-01T00:00:00</d7p1:CreateDate>
              <d7p1:District>String</d7p1:District>
              <d7p1:FancyName>String</d7p1:FancyName>
              <d7p1:Groups xmlns:d8p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Account" i:nil="true" />
              <d7p1:Modules i:nil="true" />
              <d7p1:Number>0</d7p1:Number>
              <d7p1:Observation>String</d7p1:Observation>
              <d7p1:ParentId>00000000-0000-0000-0000-000000000000</d7p1:ParentId>
              <d7p1:State xmlns:d8p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Address">
                <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
                <d8p1:Acronym>String</d8p1:Acronym>
                <d8p1:Country>
                  <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
                  <d8p1:Name>String</d8p1:Name>
                </d8p1:Country>
                <d8p1:Name>String</d8p1:Name>
              </d7p1:State>
              <d7p1:Status>Ative</d7p1:Status>
              <d7p1:Street>String</d7p1:Street>
              <d7p1:SysAdmin>false</d7p1:SysAdmin>
              <d7p1:UpdateDate>0001-01-01T00:00:00</d7p1:UpdateDate>
              <d7p1:Users xmlns:d8p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Account" i:nil="true" />
              <d7p1:ZipCode>String</d7p1:ZipCode>
            </d3p1:Customer>
            <d3p1:Description>String</d3p1:Description>
            <d3p1:Left>0</d3p1:Left>
            <d3p1:ModifiedBy>00000000-0000-0000-0000-000000000000</d3p1:ModifiedBy>
            <d3p1:ModifiedOn>0001-01-01T00:00:00</d3p1:ModifiedOn>
            <d3p1:Name>String</d3p1:Name>
            <d3p1:ParentId>00000000-0000-0000-0000-000000000000</d3p1:ParentId>
            <d3p1:PortfolioChilds>
              <d3p1:Portfolio>
                <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">00000000-0000-0000-0000-000000000000</Id>
                <d3p1:CreatedBy>00000000-0000-0000-0000-000000000000</d3p1:CreatedBy>
                <d3p1:CreatedByName>String</d3p1:CreatedByName>
                <d3p1:CreatedOn>0001-01-01T00:00:00</d3p1:CreatedOn>
                <d3p1:Customer xmlns:d9p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Customer">
                  <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">00000000-0000-0000-0000-000000000000</Id>
                  <d9p1:Activity>
                    <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
                    <d9p1:Active>false</d9p1:Active>
                    <d9p1:Name>String</d9p1:Name>
                  </d9p1:Activity>
                  <d9p1:City xmlns:d10p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Address">
                    <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
                    <d10p1:Name>String</d10p1:Name>
                    <d10p1:State>
                      <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
                      <d10p1:Acronym>String</d10p1:Acronym>
                      <d10p1:Country>
                        <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
                        <d10p1:Name>String</d10p1:Name>
                      </d10p1:Country>
                      <d10p1:Name>String</d10p1:Name>
                    </d10p1:State>
                  </d9p1:City>
                  <d9p1:Cnpj>String</d9p1:Cnpj>
                  <d9p1:Complement>String</d9p1:Complement>
                  <d9p1:Contacts i:nil="true" />
                  <d9p1:CorporateName>String</d9p1:CorporateName>
                  <d9p1:Country xmlns:d10p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Address">
                    <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
                    <d10p1:Name>String</d10p1:Name>
                  </d9p1:Country>
                  <d9p1:CreateDate>0001-01-01T00:00:00</d9p1:CreateDate>
                  <d9p1:District>String</d9p1:District>
                  <d9p1:FancyName>String</d9p1:FancyName>
                  <d9p1:Groups xmlns:d10p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Account" i:nil="true" />
                  <d9p1:Modules i:nil="true" />
                  <d9p1:Number>0</d9p1:Number>
                  <d9p1:Observation>String</d9p1:Observation>
                  <d9p1:ParentId>00000000-0000-0000-0000-000000000000</d9p1:ParentId>
                  <d9p1:State xmlns:d10p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Address">
                    <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
                    <d10p1:Acronym>String</d10p1:Acronym>
                    <d10p1:Country>
                      <Id xmlns="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain">0</Id>
                      <d10p1:Name>String</d10p1:Name>
                    </d10p1:Country>
                    <d10p1:Name>String</d10p1:Name>
                  </d9p1:State>
                  <d9p1:Status>Ative</d9p1:Status>
                  <d9p1:Street>String</d9p1:Street>
                  <d9p1:SysAdmin>false</d9p1:SysAdmin>
                  <d9p1:UpdateDate>0001-01-01T00:00:00</d9p1:UpdateDate>
                  <d9p1:Users xmlns:d10p1="http://schemas.datacontract.org/2004/07/M2M.Affluenza.Domain.Account" i:nil="true" />
                  <d9p1:ZipCode>String</d9p1:ZipCode>
                </d3p1:Customer>
                <d3p1:Description>String</d3p1:Description>
                <d3p1:Left>0</d3p1:Left>
                <d3p1:ModifiedBy>00000000-0000-0000-0000-000000000000</d3p1:ModifiedBy>
                <d3p1:ModifiedOn>0001-01-01T00:00:00</d3p1:ModifiedOn>
                <d3p1:Name>String</d3p1:Name>
                <d3p1:ParentId>00000000-0000-0000-0000-000000000000</d3p1:ParentId>
                <d3p1:PortfolioChilds i:nil="true" />
                <d3p1:Right>0</d3p1:Right>
                <d3p1:Status>Active</d3p1:Status>
              </d3p1:Portfolio>
            </d3p1:PortfolioChilds>
            <d3p1:Right>0</d3p1:Right>
            <d3p1:Status>Active</d3p1:Status>
          </d3p1:Portfolio>
        </d3p1:PortfolioChilds>
        <d3p1:Right>0</d3p1:Right>
        <d3p1:Status>Active</d3p1:Status>
      </d3p1:Portfolio>
    </d2p1:PortfolioChilds>
    <d2p1:Status>Active</d2p1:Status>
  </_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>
</PortfolioTransport.PortfolioGetByCustomerResponse>