Routing Rules

Activate routing rule

Changed on

Activate a routing rule by ID for a merchant. Only one rule can be active at a time — activating a new rule deactivates the previous one.

post/routing/activate

Request

  • Base URL
    http://localhost:8080
  • URL
    http://localhost:8080/routing/activate
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Request body

created_bystring required
routing_algorithm_idstring required

Example request

{
  "created_by": "test_merchant",
  "routing_algorithm_id": "rule_abc123"
}

Response

Rule activated. The response body is empty.

Changes

    • breaking

      removed the media type application/json for the response with the status

    • info

      the endpoint scheme security ApiKeyAuth was added to the API

    • info

      the endpoint scheme security BearerAuth was added to the API