Errors
address_not_found
The address gave no result better than the country.
HTTP 422invalid_request_error
Univooz cannot put this address on the map. The result was the country, and a courier cannot go to a country.
Why it happens
- The street, the city or the postcode is not correct.
- The address is in a different country. Univooz searches only in your country. An address in another country gives the country as the result.
Before, an address in a different country gave
address_low_confidence. It gives this code now.
How to fix it
Correct the address, or send coordinates:
{
"customer": {
"address": {
"street": "Sortedam Dossering 55",
"city": "Copenhagen",
"postcode": "2100",
"coordinates": { "latitude": 55.6928, "longitude": 12.5701 }
}
}
}Univooz uses your coordinates and does no search.
Better: use Check an address when your user types the address. A person is present then and can correct the mistake.
Example response
{
"error": {
"type": "invalid_request_error",
"code": "address_not_found",
"message": "The address could not be resolved.",
"param": "customer.address",
"doc_url": "https://docs.univooz.com/errors/address_not_found",
"request_id": "req_01KZCCF8ZH4M7XQ2VB9RSTNPKD"
}
}