Client Management Systems API

Request to retrieve information of an account.


The following input parameters are available in the request.

Parameter

Mandatory

Description

SessionID

Y

SessionID returned by the Login Request

AccountNumber

Y

Id of the account from where to retrieve account data

SOAP 1.2 Definition

Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.saxobank.com/service/cms/2013/08">
   <soapenv:Header>
     <ns:SessionId>string</ns:SessionId>
   </soapenv:Header>
   <soapenv:Body>
     <ns:GetAccountRequest>
       <!-Optional:->
       <ns:AccountNumber>string</ns:AccountNumber>
     </ns:GetAccountRequest>
   </soapenv:Body>
 </soapenv:Envelope>

Response

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Header>
     <ActivityId CorrelationId="e03db0b1-6080-4601-9c8f-e8a8bb1d522d" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">b8792ba8-8831-4df9-86ac-f8bd33a69ce7</ActivityId>
   </s:Header>
   <s:Body>
     <GetAccountResponse xmlns="http://www.saxobank.com/service/cms/2013/08">
       <Account xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
         <CounterpartId>int</CounterpartId>
         <AccountNumber>string</AccountNumber>
         <Description>string</Description>
         <Currency>string</Currency>
         <InternalAccountNumber>string</InternalAccountNumber>
        <CommissionGroupId>int</CommissionGroupId>
         <Iban>string</Iban>
         <AccountRiskProfileId>int</AccountRiskProfileId>
         <Active>bool</Active>
         <InterestProfileId>int</InterestProfileId>
         <CfdInterestProfileId>int</CfdInterestProfileId>
         <TradableInstrumentIds xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
           <a:int>int</a:int>
         </TradableInstrumentIds>
         <VPAccount>
           <AccountNumber>string</AccountNumber>
           <CdIdentNumber>string</CdIdentNumber>
           <RegisterToName>bool</RegisterToName>
           <DividendTaxStatusId>int</DividendTaxStatusId>
         </VPAccount>
         <MaxCreditLine>decimal</MaxCreditLine>
         <WealthManagementEnabled>bool</WealthManagementEnabled>
       </Account>
     </GetAccountResponse>
  </s:Body>
 </s:Envelope>


 Code Examples

Code example 18: GetAccount Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.saxobank.com/service/cms/2013/08">
   <soapenv:Header>
     <ns:SessionId>QAs01NW22ajBAsjFZTGM</ns:SessionId>
   </soapenv:Header>
   <soapenv:Body>
     <ns:GetAccountRequest>
       <ns:AccountNumber>33930/Test125</ns:AccountNumber>
     </ns:GetAccountRequest>
   </soapenv:Body>
 </soapenv:Envelope> 


Code example 19: GetAccount Response

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Header>
     <ActivityId CorrelationId="e03db0b1-6080-4601-9c8f-e8a8bb1d522d" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">b8792ba8-8831-4df9-86ac-f8bd33a69ce7</ActivityId>
   </s:Header>
   <s:Body>
     <GetAccountResponse xmlns="http://www.saxobank.com/service/cms/2013/08">
       <Account xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
         <CounterpartId>6602955</CounterpartId>
         <AccountNumber>33930/Test125</AccountNumber>
         <Description>Test</Description>
         <Currency>USD</Currency>
         <InternalAccountNumber>test</InternalAccountNumber>
         <CommissionGroupId>19184</CommissionGroupId>
         <Iban>223456</Iban>
         <AccountRiskProfileId>0</AccountRiskProfileId>
         <Active>true</Active>
         <InterestProfileId>1</InterestProfileId>
         <CfdInterestProfileId>1</CfdInterestProfileId>
         <TradableInstrumentIds xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
           <a:int>16384</a:int>
         </TradableInstrumentIds>
         <VPAccount i:nil="true"/>
         <MaxCreditLine>0</MaxCreditLine>
         <WealthManagementEnabled>false</WealthManagementEnabled>
       </Account>
     </GetAccountResponse>
   </s:Body>
 </s:Envelope>