univoozAPI
Errors

zone_not_connected

This branch has no active connection to that zone.

HTTP 422invalid_request_error

You sent zoneCode to select a destination. This branch cannot send orders to that zone.

Why it happens

  • The zone code is not correct.
  • Somebody deactivated the connection.
  • The zone connects to a different branch. Connections belong to one branch.

How to fix it

Read the valid values from the branch:

curl https://api.univooz.com/v1/branches \
  -H "Authorization: Bearer uv_live_YOUR_KEY"
{
  "reference": "noerrebro",
  "connectedZones": [
    { "code": "CZ-K7M2PQR4", "name": "Central Zone", "isPrimary": true },
    { "code": "NW-P2K9RT4M", "name": "Northwest Zone", "isPrimary": false }
  ]
}

Send a code from connectedZones. To use the usual destination, do not send zoneCode.

Example response

{
  "error": {
    "type": "invalid_request_error",
    "code": "zone_not_connected",
    "message": "Zone 'NW-P2K9RT4M' is not an active connection of branch 'noerrebro'.",
    "param": "zoneCode",
    "doc_url": "https://docs.univooz.com/errors/zone_not_connected",
    "request_id": "req_01KZCCF8ZH4M7XQ2VB9RSTNPKD"
  }
}

On this page