Page 1 of 1

ROUTE_OPTIMIZATION_RESTRICTION_EXCEEDED : ROUTE_OPTIMIZATION_ROUTES_FORBIDDEN

Posted: Fri May 09, 2025 1:27 pm
by Bernd Welter
If you face this error message it is caused because your underlying ApiKey / Plan does not cover the provisioning of input plans in an Optiflow call.
Please get back to us so we can check the licensing

Here's an example of a response that is triuggered by the violation of multiple limits.
You can see the allowed value and the one that violates the threshold:

Code: Select all

{
  "traceId": "...",
  "description": "A product-specific restriction is exceeded.",
  "errorCode": "ROUTE_OPTIMIZATION_RESTRICTION_EXCEEDED",
  "causes": [
    { "description": "The request contains too many vehicles.",
      "errorCode": "ROUTE_OPTIMIZATION_TOO_MANY_VEHICLES",
      "parameter": "$.vehicles",      "details": {        "vehicles": 210,        "limit": 1      }
    },
    { "description": "The request contains too many locations.",
      "errorCode": "ROUTE_OPTIMIZATION_TOO_MANY_LOCATIONS",
      "parameter": "$.locations",      "details": {        "locations": 33,        "limit": 25      }
    },
    { "description": "The request contains too many orders.",
      "errorCode": "ROUTE_OPTIMIZATION_TOO_MANY_ORDERS",
      "parameter": "$.orders",      "details": {        "orders": 30,        "limit": 25      }
    },
    { "description": "The duration of the request is too long.",
      "errorCode": "ROUTE_OPTIMIZATION_TOO_LONG_DURATION",
      "parameter": "$.settings.duration",      "details": {        "duration": 600,        "limit": 120      }
    }
  ],
  "details": {}
}