curl --request POST \
--url https://service.e-manager.io/api/v1/integrations/addresses/check-address \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"carrierCompanyId": 12,
"provincia": "TO",
"city": "Torino",
"address": "Via Roma 1",
"zip": "10121",
"country": "IT"
}
'import requests
url = "https://service.e-manager.io/api/v1/integrations/addresses/check-address"
payload = {
"carrierCompanyId": 12,
"provincia": "TO",
"city": "Torino",
"address": "Via Roma 1",
"zip": "10121",
"country": "IT"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
carrierCompanyId: 12,
provincia: 'TO',
city: 'Torino',
address: 'Via Roma 1',
zip: '10121',
country: 'IT'
})
};
fetch('https://service.e-manager.io/api/v1/integrations/addresses/check-address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://service.e-manager.io/api/v1/integrations/addresses/check-address",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'carrierCompanyId' => 12,
'provincia' => 'TO',
'city' => 'Torino',
'address' => 'Via Roma 1',
'zip' => '10121',
'country' => 'IT'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://service.e-manager.io/api/v1/integrations/addresses/check-address"
payload := strings.NewReader("{\n \"carrierCompanyId\": 12,\n \"provincia\": \"TO\",\n \"city\": \"Torino\",\n \"address\": \"Via Roma 1\",\n \"zip\": \"10121\",\n \"country\": \"IT\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://service.e-manager.io/api/v1/integrations/addresses/check-address")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"carrierCompanyId\": 12,\n \"provincia\": \"TO\",\n \"city\": \"Torino\",\n \"address\": \"Via Roma 1\",\n \"zip\": \"10121\",\n \"country\": \"IT\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://service.e-manager.io/api/v1/integrations/addresses/check-address")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"carrierCompanyId\": 12,\n \"provincia\": \"TO\",\n \"city\": \"Torino\",\n \"address\": \"Via Roma 1\",\n \"zip\": \"10121\",\n \"country\": \"IT\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"code": "ADDRESS_VALID",
"message": "Indirizzo verificato con BRT.",
"carrierCode": "BRT",
"carrierName": "BRT",
"verificationType": "street_registry",
"countryScope": "domestic_it",
"suggestions": [
{
"streetLine1": "Via Roma 1",
"city": "Torino",
"zip": "10121",
"country": "IT",
"streetLine2": "Interno 2",
"province": "TO",
"transitTimeHours": 24
}
]
}Verifica indirizzo
Verifica e normalizza un indirizzo di consegna tramite il corriere della company. Richiede scope addresses:check; per code e verificationType vedi Verifica indirizzi.
curl --request POST \
--url https://service.e-manager.io/api/v1/integrations/addresses/check-address \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"carrierCompanyId": 12,
"provincia": "TO",
"city": "Torino",
"address": "Via Roma 1",
"zip": "10121",
"country": "IT"
}
'import requests
url = "https://service.e-manager.io/api/v1/integrations/addresses/check-address"
payload = {
"carrierCompanyId": 12,
"provincia": "TO",
"city": "Torino",
"address": "Via Roma 1",
"zip": "10121",
"country": "IT"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
carrierCompanyId: 12,
provincia: 'TO',
city: 'Torino',
address: 'Via Roma 1',
zip: '10121',
country: 'IT'
})
};
fetch('https://service.e-manager.io/api/v1/integrations/addresses/check-address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://service.e-manager.io/api/v1/integrations/addresses/check-address",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'carrierCompanyId' => 12,
'provincia' => 'TO',
'city' => 'Torino',
'address' => 'Via Roma 1',
'zip' => '10121',
'country' => 'IT'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://service.e-manager.io/api/v1/integrations/addresses/check-address"
payload := strings.NewReader("{\n \"carrierCompanyId\": 12,\n \"provincia\": \"TO\",\n \"city\": \"Torino\",\n \"address\": \"Via Roma 1\",\n \"zip\": \"10121\",\n \"country\": \"IT\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://service.e-manager.io/api/v1/integrations/addresses/check-address")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"carrierCompanyId\": 12,\n \"provincia\": \"TO\",\n \"city\": \"Torino\",\n \"address\": \"Via Roma 1\",\n \"zip\": \"10121\",\n \"country\": \"IT\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://service.e-manager.io/api/v1/integrations/addresses/check-address")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"carrierCompanyId\": 12,\n \"provincia\": \"TO\",\n \"city\": \"Torino\",\n \"address\": \"Via Roma 1\",\n \"zip\": \"10121\",\n \"country\": \"IT\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"code": "ADDRESS_VALID",
"message": "Indirizzo verificato con BRT.",
"carrierCode": "BRT",
"carrierName": "BRT",
"verificationType": "street_registry",
"countryScope": "domestic_it",
"suggestions": [
{
"streetLine1": "Via Roma 1",
"city": "Torino",
"zip": "10121",
"country": "IT",
"streetLine2": "Interno 2",
"province": "TO",
"transitTimeHours": 24
}
]
}Authorizations
Body
ID connessione corriere-company (da GET /integrations/carriers)
12
Sigla provincia (es. TO, MI, RM)
"TO"
Comune
"Torino"
Indirizzo (via e numero civico)
"Via Roma 1"
CAP
"10121"
Codice paese ISO alpha-2 (default: IT)
"IT"
Response
Esito sintetico della verifica. success = indirizzo ok; warning = correzione suggerita o non trovato; error = indirizzo non valido o errore; skipped = verifica saltata (estero o corriere offline); unsupported = corriere senza API di verifica.
success, warning, error, skipped, unsupported "success"
Codice esito verifica indirizzo. Vedi la tabella dei codici.
ADDRESS_VALID, ADDRESS_NORMALIZED, ADDRESS_NOT_FOUND, ADDRESS_INVALID, VERIFICATION_SKIPPED_FOREIGN, VERIFICATION_SKIPPED_UNSUPPORTED, VERIFICATION_ERROR, CARRIER_UNAVAILABLE "ADDRESS_VALID"
Messaggio leggibile in italiano, derivato da code e dal corriere utilizzato.
"Indirizzo verificato con BRT."
Codice corriere E-Manager (es. GLS, BRT, FEDEX, MYDHL, POSTEDB).
"BRT"
Nome commerciale del corriere.
"BRT"
Tipo di verifica applicato dal corriere. Vedi la tabella verificationType.
street_registry, routing, postal_validation, transit_time, none "street_registry"
Ambito geografico della verifica: domestic_it (solo Italia), international (validazione postale globale), any (corriere senza verifica o non supportato).
domestic_it, international, any "domestic_it"
Indirizzi suggeriti dal corriere (normalizzazione o alternative). Vuoto se non trovato, skip o errore.
Show child attributes
Show child attributes
Was this page helpful?

