Get Address
The GetAddress requests returns address information of a private customer based on the their national registration number. To use this functionality, an agreement with Walley must be made.
When this service is used the following needs to be applied:
- The service can only be used in the checkout and Walley needs to be the pre-chosen payment option.
- If the payment type is changed from Walley this service should be hidden/disabled.
- The button that submits the request cannot be named “Hämta adress” (“Get Address”) instead “Fortsätt” (“Proceed”) or equal should be used.
This method is available in the following countries:
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 customer civic registration number. |
StoreId | 1 | false | - | int | The StoreId used for identification of store. |
Response​
Field | min Occurs | nillable | Max | Type | Description |
---|---|---|---|---|---|
BaseAddress | 1 | false | 50 | string | A list of addresses where the person is registered. |
CorrelationId | 1 | false | 50 | string | CorrelationID from the request if any. |
Firstname | 1 | false | 50 | string | First name of the customer. |
Lastname | 1 | false | 50 | string | Last name of the customer. |
RegNo | 1 | false | 12 | string | The customer civic registration number. |
Example Requests​
 | Value |
---|---|
Environment: | UAT |
Service: | PaymentService |
URL: | https://ecommercetest.collector.se/v3.0/PaymentServiceV10.svc?wsdl |
Function: | GetAddress |
Description: | The operation returns address information of a customer based on a civic registration number. |
Notes: | Only available in Sweden for consumers. The service can only be used in the checkout and Walley needs to be the pre chosen payment option. If the payment type is changed this service should be hidden/disabled. The button that submits the request cannot be named “Hämta adress” / "Get address", instead “Fortsätt” / "Continue" or equal should be used. |
- B2C Request
- B2C Response
<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:GetAddressRequest>
<pay:CorrelationId>GetAddressV10</pay:CorrelationId>
<pay:CountryCode>SE</pay:CountryCode>
<pay:RegNo>200001012384</pay:RegNo>
<pay:StoreId>1234</pay:StoreId>
</pay:GetAddressRequest>
</soapenv:Body>
</soapenv:Envelope>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetAddressResponse xmlns="http://schemas.ecommerce.collector.se/v30/PaymentService">
<Address1>Teststreet 1</Address1>
<Address2/>
<COAddress>c/o</COAddress>
<City>Testcity</City>
<CorrelationId>GetAddressV10</CorrelationId>
<CountryCode>SE</CountryCode>
<Firstname>Test</Firstname>
<Lastname>Sverige</Lastname>
<PostalCode>12345</PostalCode>
<RegNo>0001015536</RegNo>
</GetAddressResponse>
</s:Body>
</s:Envelope>
Error Codes​
Please see separate page Error Codes
Fault Code | Description |
---|