Set routing
POST/setConnectorRouting/:connectorGuid
Sets the routing rule tree of a routing meta-connector.
The submitted document fully replaces the existing rule tree — there is no partial
update. The response echoes the document with all server-assigned rule ids populated.
The endpoint is idempotent: resubmitting the same body produces the same final state.
Each node of the tree is either a condition (if, plus then
/ else branches) or a route leaf (route to a connector with an optional ordered
onFail failover chain). Send tree: null to remove all rules.
Use List routing constraints to discover the conditions available to your tenant, and Get routing to fetch the current configuration for round-trip editing.
The document is checked for structural correctness, known conditions with well-formed parameters, tenant-level condition availability, and valid connector references (existing, enabled, non-archived connectors of the same merchant). The API does not assess whether the resulting routing strategy behaves as you intend — see Validation and its limits. Test routing changes against your sandbox environment before applying them to production.
Request
Responses
- 200
- 401
- 404
- 422
- 500
The stored routing configuration, echoing the submitted document with all
server-assigned rule ids populated.
Unauthorized, see authentication.
The connector was not found. The GUID is unknown, or the connector is not accessible with the given API key.
The routing document was rejected. See the errorCode list in the response schema; the
errorMessage names the offending part of the document.
Internal server error.