Address Auto Complete
The address auto complete service supplies all address information of the supplied postalcode.
Request
REST
To use the address auto complete service, you need the access token from the authentication service.
URL: https://iqservice.stockbase-connect.com/AddressAutoComplete/
Headers
Token: Acces token. (String)
postalCode: Postal code. (String)
SOAP 1.1
To use the address auto complete service, you need the access token from the authentication service.
URL: https://iqservice.stockbase-connect.com/AddressAutoComplete/
Headers
Content-Type: text/xml
Text
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<AddressAutoComplete xmlns="https://iqservice.divide.nl/">
<token>guid</token>
<postalCode>string</postalCode>
</AddressAutoComplete>
</soap:Body>
</soap:Envelope>
SOAP 1.2
To use the address auto complete service, you need the access token from the authentication service.
URL: https://iqservice.stockbase-connect.com/AddressAutoComplete/
Headers
Content-Type: application/soap+xml
Text
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<AddressAutoComplete xmlns="https://iqservice.divide.nl/">
<token>guid</token>
<postalCode>string</postalCode>
</AddressAutoComplete>
</soap12:Body>
</soap12:Envelope>
Library
To use the address auto complete service, you need the access token from the authentication service.
URL: https://iqservice.stockbase-connect.com/AddressAutoComplete/
Function: Client.AddressAutoComplete
Parameters
Token: Acces token. (String)
postalCode: Postal code. (String)
Response
Success
@AddressAutoCompleteResponse {
Answer: Status code of the request,
Status: [Status],
Results: [
{
PostalCode,
Street,
City,
Municipality,
StreetNumbers,
Latitude,
Longitude,
AreaCode
}
]
}
REST
Headers
Response Status: 200
Content-Type: text/html
Text
<?xml version="1.0" encoding="utf-8"?>
<nl.divide.iq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<description>Divide.IQ</description>
<version>1.0</version>
<build>1.0.0</build>
<settings_updated>1399888513</settings_updated>
<response>
<answer>Success</answer>
<content>
<nl.divide.iq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Status>OK</Status>
<Results>
<AddressAutoCompleteResponseResult>
<PostalCode>2631AA</PostalCode>
<Street>Molenweg</Street>
<City>Nootdorp</City>
<Municipality>Pijnacker-Nootdorp</Municipality>
<StreetNumbers>5-15;19-33;37-47</StreetNumbers>
<Latitude>52.04112</Latitude>
<Longitude>4.39099</Longitude>
<AreaCode>015</AreaCode>
</AddressAutoCompleteResponseResult>
</Results>
</nl.divide.iq>
</content>
</response>
</nl.divide.iq>
SOAP 1.1
Headers
Response Status: 200
Content-Type: text/xml
Text
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<AddressAutoCompleteResponse xmlns="https://iqservice.divide.nl/">
<AddressAutoCompleteResult>string</AddressAutoCompleteResult>
</AddressAutoCompleteResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
Headers
Response Status: 200
Content-Type: application/soap+xml
Text
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<AddressAutoCompleteResponse xmlns="https://iqservice.divide.nl/">
<AddressAutoCompleteResult>string</AddressAutoCompleteResult>
</AddressAutoCompleteResponse>
</soap12:Body>
</soap12:Envelope>
Succes.Error
Headers
Response Status: 200
Content-Type: text/xml | application/json
Text
<?xml version="1.0" encoding="utf-8"?>
<nl.divide.iq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<description>Divide.IQ</description>
<version>1.0</version>
<build>1.0.0</build>
<settings_updated>1399888513</settings_updated>
<response>
<answer>Success</answer>
<content>
<nl.divide.iq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Status>Error</Status>
<Error>
<Message>Invalid nl_sixpp format</Message>
</Error>
<Results />
</nl.divide.iq>
</content>
</response>
</nl.divide.iq>
PostalCodeEmpty
Headers
Response Status: 200
Content-Type: text/xml | application/json
Text
<?xml version="1.0" encoding="utf-8"?>
<nl.divide.iq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<description>Divide.IQ</description>
<version>1.0</version>
<build>1.0.0</build>
<settings_updated>1399888513</settings_updated>
<response>
<answer>PostalCodeEmpty</answer>
</response>
</nl.divide.iq>
ExternalError
This error occurs when the external service returns an error.
Headers
Response Status: 200
Content-Type: text/xml | application/json
Text
<?xml version="1.0" encoding="utf-8"?>
<nl.divide.iq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<description>Divide.IQ</description>
<version>1.0</version>
<build>1.0.0</build>
<url_asset/>
<settings_updated>1399888513</settings_updated>
<response>
<answer>ExternalError</answer>
<message>Postalcode format is invalid.</message>
</response>
</nl.divide.iq>