---
id: getcompanyinformation
title: Get Company Information
hide_title: true
description: "Get company information"
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Flag from '../../../../src/components/flag/flag';
import Ingress from '../../../../src/components/ingress/ingress.react';

<Ingress title="Get Company Information">
The GetCompanyInformation request returns address information of a Company based on the their organizational registration number.
</Ingress>

To use this functionality, an agreement with Walley must be made.

This method is available in the following countries:

<Flag country="fi" />
<Flag country="no" />
<Flag country="se" />

## Parameters

| Field           | min Occurs | nillable | Max | Type   | Description                                                                       |
| :-------------- | :--------- | :------- | :-- | :----- | :-------------------------------------------------------------------------------- |
| Username        | 1          | false    | 50  | string | The username used to authorize the request.                                       |
| Password        | 1          | false    | 50  | string | The password used to authorize the request.                                       |
| ClientIpAddress | 1          | false    | 50  | string | The IP address of the customer performing the purchase at the partner's web shop. |
| CorrelationId   | 1          | false    | 50  | string | CorrelationID is sent back in the response.                                       |
| CountryCode     | 1          | false    | 2   | string | The country code (ISO 3166-1 alpha-2) for the country. Only “SE” allowed.         |
| RegNo           | 1          | false    | 12  | string | The organizational registration number.                                           |
| StoreId         | 1          | false    | -   | int    | The StoreId used for identification of store.                                     |

## Response

| Field              | min Occurs | nillable | Max | Type                                        | Description                                                                   |
| :----------------- | :--------- | :------- | :-- | :------------------------------------------ | :---------------------------------------------------------------------------- |
| CompanyInformation | 1          | false    | -   | [CompanyInformation[]](#companyinformation) | Company Information, can occur one or multiple times depending on the company |
| DunsNumber         | 1          | false    | 50  | string                                      | DunsNumber                                                                    |
| Name               | 1          | false    | 50  | string                                      | Company Legal Name                                                            |
| PostalAddress      | 1          | false    | 50  | [Address[]](#address)                       | Postal Address of company branch                                              |
| RegistrationNumber | 1          | false    | 50  | string                                      | First name of the customer.                                                   |
| VisitingAddress    | 1          | false    | 50  | [Address[]](#address)                       | Visiting address details.                                                     |
| CorrelationId      | 1          | false    | 12  | string                                      | CorrelationID from the request if any.                                        |

### CompanyInformation

| Field              | Req | Type                   | Description                               |
| :----------------- | :-- | :--------------------- | :---------------------------------------- |
| DunsNumber         |     | string                 | DunsNumber                                |
| Name               |     | string                 | Company Legal Name                        |
| PostalAddress      |     | [Address[]](#address)  | Postal Address of company branch          |
| RegistrationNumber |     | string                 | First name of the customer.               |
| Type               |     | string                 | The address type (HeadOffice, Branch etc) |
| VisitingAddress    |     | [Address[]](#address)  | Visiting address details.                 |

### Address

| Field      | Req | Type   | Description |
| :--------- | :-- | :----- | :---------- |
| Address    |     | string |             |
| City       |     | string |             |
| Country    |     | string |             |
| PostalCode |     | string |             |

### Example Requests

| &nbsp;       | Value                                                                |
| :----------- | :------------------------------------------------------------------- |
| Environment: | UAT                                                                  |
| Service:     | PaymentService                                                       |
| URL:         | https://ecommercetest.collector.se/v3.0/PaymentServiceV10.svc?wsdl   |
| Function:    | GetCompanyInformation                                                |
| Description: | The operation returns a list of Addresses for the requested customer |
| Notes:       | N/A                                                                  |

<Tabs defaultValue="reqB2C" values={[
{ label: 'B2C Request', value: 'reqB2C', },
{ label: 'B2C Response', value: 'resB2C', }]}>
<TabItem value="reqB2C">

```xml

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pay="http://schemas.ecommerce.collector.se/v30/PaymentService">
   <soapenv:Header>
      <pay:Username>USERNAME</pay:Username>
      <pay:Password>PASSWORD</pay:Password>
      <pay:ClientIpAddress>127.0.0.1</pay:ClientIpAddress>
   </soapenv:Header>
   <soapenv:Body>
      <pay:GetCompanyInformationRequest>
         <pay:CorrelationId>123</pay:CorrelationId>
         <pay:CountryCode>SE</pay:CountryCode>
         <pay:RegNo>556597-0513</pay:RegNo>
         <pay:StoreId>1234</pay:StoreId>
      </pay:GetCompanyInformationRequest>
   </soapenv:Body>
</soapenv:Envelope>
```

</TabItem>
<TabItem value="resB2C">

```xml

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <GetCompanyInformationResponse xmlns="http://schemas.ecommerce.collector.se/v30/PaymentService">
         <Companies xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <CompanyInformation>
               <DunsNumber>777307328</DunsNumber>
               <Name>Walley</Name>
               <PostalAddress>
                  <Address>Birger Jarlsgatan 12</Address>
                  <City>Stockholm</City>
                  <Country>Sverige</Country>
                  <PostalCode>114 34</PostalCode>
               </PostalAddress>
               <RegistrationNumber>5565970513</RegistrationNumber>
               <Type>Branch</Type>
               <VisitingAddress>
                  <Address>Birger Jarlsgatan 12</Address>
                  <City>Stockholm</City>
                  <Country>Sverige</Country>
                  <PostalCode>114 34</PostalCode>
               </VisitingAddress>
            </CompanyInformation>
            <CompanyInformation>
               <DunsNumber>632405218</DunsNumber>
               <Name>Walley</Name>
               <PostalAddress>
                  <Address>Box 11914</Address>
                  <City>Göteborg</City>
                  <Country>Sverige</Country>
                  <PostalCode>404 39</PostalCode>
               </PostalAddress>
               <RegistrationNumber>5565970513</RegistrationNumber>
               <Type>HeadOffice</Type>
               <VisitingAddress>
                  <Address>Lilla Bommens Torg 11</Address>
                  <City>Göteborg</City>
                  <Country>Sverige</Country>
                  <PostalCode>411 04</PostalCode>
               </VisitingAddress>
            </CompanyInformation>
         </Companies>
         <CorrelationId>123</CorrelationId>
      </GetCompanyInformationResponse>
   </s:Body>
</s:Envelope>

```

</TabItem>
</Tabs>

## Error codes

| Fault Code | Description |
| :--------- | :---------- |
