s1 API Host

<back to all web services

GetAccount

The following routes are available for this service:
GET,OPTIONS/api/accountInformation about the authenticated userThe user has to be authenticated to retrieve the information.

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/GetAccount HTTP/1.1 
Host: s1-api.fource.nl 
Content-Type: application/xml
Content-Length: length

<GetAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/S1.Api.Domain.Models.Accounts" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AccountResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/S1.Api.Domain.Models.Accounts">
  <Address>
    <Address>String</Address>
    <City>String</City>
    <CountryCode>String</CountryCode>
    <CountryCodeIso2>String</CountryCodeIso2>
    <Id>String</Id>
    <Name>String</Name>
    <TelephoneNumber>String</TelephoneNumber>
    <ZipCode>String</ZipCode>
  </Address>
  <Certificate>
    <EndDate>String</EndDate>
    <Id>String</Id>
    <IsValid>false</IsValid>
    <Name>String</Name>
  </Certificate>
  <CustomerGroup>String</CustomerGroup>
  <DeliveryAddresses i:nil="true" />
  <DeliveryTimePreferences i:nil="true" />
  <DisplayName>String</DisplayName>
  <District>String</District>
  <Email>String</Email>
  <Enrollments i:nil="true" />
  <ExternalUsers xmlns:d2p1="http://schemas.datacontract.org/2004/07/S1.Api.Domain.Entities.Erp.Account" i:nil="true" />
  <HasMijnGrossierAccounts>false</HasMijnGrossierAccounts>
  <LinkedCompany>
    <B2BUrl>String</B2BUrl>
    <BmfEmail>String</BmfEmail>
    <CompanyPreferredStyle>Ghs</CompanyPreferredStyle>
    <ContactEmail>String</ContactEmail>
    <DieselInjectorEmail>String</DieselInjectorEmail>
    <ExternalOrderEmail>String</ExternalOrderEmail>
    <ExtraPermissions xmlns:d3p1="http://schemas.datacontract.org/2004/07/S1.Api.Domain.Models" i:nil="true" />
    <LinkedCompanyId>String</LinkedCompanyId>
    <LinkedCompanyName>String</LinkedCompanyName>
    <LinkedWarehouses xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
    <MapUrl>String</MapUrl>
    <ServerEmail>String</ServerEmail>
    <SupportEmail>String</SupportEmail>
    <SupportNumbers xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
    <SupportTeamPage>String</SupportTeamPage>
    <TypedSupportNumbers xmlns:d3p1="http://schemas.datacontract.org/2004/07/S1.Api.Domain.Models.Admin.ApplicationConfig" i:nil="true" />
  </LinkedCompany>
  <LinkedWarehouse>
    <Address>
      <Address>String</Address>
      <City>String</City>
      <CountryCode>String</CountryCode>
      <CountryCodeIso2>String</CountryCodeIso2>
      <Id>String</Id>
      <Name>String</Name>
      <TelephoneNumber>String</TelephoneNumber>
      <ZipCode>String</ZipCode>
    </Address>
    <Id>String</Id>
    <Region>String</Region>
    <ShouldEmailExternalOrders>false</ShouldEmailExternalOrders>
    <WarehouseEmail>String</WarehouseEmail>
    <WarehousePhoneNumbers xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  </LinkedWarehouse>
  <Logo>String</Logo>
  <NewsLetters xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  <PaymentMethods xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  <Permissions xmlns:d2p1="http://schemas.datacontract.org/2004/07/S1.Api.Domain.Models" i:nil="true" />
  <PickupWarehouse>
    <Address>
      <Address>String</Address>
      <City>String</City>
      <CountryCode>String</CountryCode>
      <CountryCodeIso2>String</CountryCodeIso2>
      <Id>String</Id>
      <Name>String</Name>
      <TelephoneNumber>String</TelephoneNumber>
      <ZipCode>String</ZipCode>
    </Address>
    <Id>String</Id>
    <Region>String</Region>
    <ShouldEmailExternalOrders>false</ShouldEmailExternalOrders>
    <WarehouseEmail>String</WarehouseEmail>
    <WarehousePhoneNumbers xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  </PickupWarehouse>
  <PreferredStyle>Ghs</PreferredStyle>
  <ReturnFees i:nil="true" />
  <TechnicalDataProvider>String</TechnicalDataProvider>
  <TireCounts>
    <CurrentYear>
      <Delta>0</Delta>
      <Purchased>0</Purchased>
      <Returned>0</Returned>
    </CurrentYear>
    <LastYear>
      <Delta>0</Delta>
      <Purchased>0</Purchased>
      <Returned>0</Returned>
    </LastYear>
  </TireCounts>
  <UserId>String</UserId>
  <UserSettings>
    <LastAdditionalId>String</LastAdditionalId>
    <LastAdditionalIdType>String</LastAdditionalIdType>
    <LastApplicant>String</LastApplicant>
    <LastId>String</LastId>
    <LastIdType>String</LastIdType>
    <ReconfirmGaik>false</ReconfirmGaik>
    <SaveGaik>false</SaveGaik>
    <SendPlacedOrderReceipt>false</SendPlacedOrderReceipt>
  </UserSettings>
  <VatNr>String</VatNr>
  <Promotions>
    <PromotionModel>
      <Data xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringdecimal>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>0</d4p1:Value>
        </d4p1:KeyValueOfstringdecimal>
      </Data>
      <DateText>String</DateText>
      <Id>String</Id>
      <InfoPage>String</InfoPage>
      <Title>String</Title>
    </PromotionModel>
  </Promotions>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
      </d2p1:ResponseError>
    </d2p1:Errors>
  </ResponseStatus>
  <UrgentMessages xmlns:d2p1="http://schemas.datacontract.org/2004/07/S1.Api.Domain.Models.UrgentMessages" i:nil="true" />
</AccountResponse>