# Set a channel policy

> Choose how Wajub ranks your providers on an operator channel, by acceptance, cost or speed, with a fixed order and guardrails, from the routing matrix.

A channel policy ranks your providers on an operator channel, such as MTN Mobile Money in
Cameroon, for every payment that no routing rule catches. Without a policy, the priority of each
connection decides.

The owner, an Administrator, a Developer or a custom role with **Manage settings** or **Manage
developer settings** sets a policy; **View settings** is enough to read the matrix. Policies are
part of every plan and only exist in [Live](https://docs.wajub.com/dashboard#sandbox-and-live). No security code is
asked for.

## The steps

1. **Open the matrix**

   In **Live**, open **Orchestration**, then the **Matrix** tab. Under **Operator channels**, each
   channel shows its routes, one per provider that serves it. **Global payment methods**, such as
   cards, have no policy.

2. **Open the channel's policy**

   Click **Set policy** at the end of the channel's row, or **Edit policy** if it already has one.
   The **Channel policy** dialog opens, titled with the channel's name, for example MTN CM.

3. **Choose the objective**

   In **Routing objective**, **Max acceptance** puts first the provider that succeeds with the
   most payments on this operator, **Least cost** the cheapest, based on the fees entered on each
   connection, and **Fastest** the one that responds fastest.

4. **Fix an order, if needed**

   With at least two connections on the channel, turn on **Fixed cascade order**: the list of
   connections appears, and **Move up** and **Move down** set the order in which they are tried,
   before the objective ranks the others.

5. **Add guardrails**

   Under **Guardrails**, a connection below the **Minimum health**, from 0 to 100%, or above the
   **Cost ceiling**, in fees per payment in the payment's currency, goes after the others. It is
   never left out.

   ![The Channel policy dialog on MTN CM: the Max acceptance objective, a fixed cascade order of two connections, the minimum health at 80% and the Active switch turned on.](https://docs.wajub.com/dashboard/en/light/orchestration-policy-dialog.webp)

   *A routing rule that matches the payment always comes before the policy.*

6. **Save the policy**

   Leave **Active** on, then click **Save policy**. A message confirms the save, and the channel's
   row shows a badge that sums up the policy.

## What the policy decides

The policy only applies to its channel, and only to the payments that no
[routing rule](https://docs.wajub.com/dashboard/orchestration/routing-rules) caught. There, it replaces the priority of
your connections. A policy whose **Active** you turn off is kept, and the priority takes over
again. [The most specific instruction goes first](https://docs.wajub.com/orchestration#the-most-specific-instruction-goes-first)
explains this order.

To go back to the priority of your connections, open the policy again and click **Remove
policy**, then confirm.

## Reading the matrix

Each row carries a diagnosis, such as **Operational**, **Operator down**, **Aggregator issue**,
**Single path** or **No data**, and each route its success rate and the state of its circuit.
**Collection** and **Payout**, at the top, switch the operation, and **Refresh** reloads the
figures.
[The matrix, and the diagnosis it enables](https://docs.wajub.com/orchestration/analytics#the-matrix-and-the-diagnosis-it-enables)
says what to do with a red row or cell.
