Errors
address_ambiguous
The address gave more than one result.
HTTP 422invalid_request_error
Univooz found more than one real place for this address.
Why Univooz rejects it. A selection between the results is a guess. A wrong guess sends the courier to the wrong door.
Why it happens
Usually the address is incomplete, not wrong. Example: a street name that occurs more than one time in a city, with no postcode.
How to fix it
Add the data that makes the address different. A postcode is the best addition. The correct city is the next best.
If you know the position, send coordinates:
{
"customer": {
"address": {
"street": "Sortedam Dossering 55",
"city": "Copenhagen",
"postcode": "2100",
"coordinates": { "latitude": 55.6928, "longitude": 12.5701 }
}
}
}To find this problem earlier, use Check an address when your user types the address.
Example response
{
"error": {
"type": "invalid_request_error",
"code": "address_ambiguous",
"message": "The address matched multiple locations.",
"param": "customer.address",
"doc_url": "https://docs.univooz.com/errors/address_ambiguous",
"request_id": "req_01KZCCF8ZH4M7XQ2VB9RSTNPKD"
}
}