> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-881012b3.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Default Rule

> Know how to update the default rule for Optimizer.

<div style={{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem 0.9rem",border:"1px solid rgba(128,128,128,0.28)",borderRadius:"0.5rem",padding:"0.45rem 0.75rem",margin:"0 0 1.25rem",fontSize:"0.875rem"}}>
  <span style={{fontWeight:600}}>Available in</span>
  <span>🇮🇳 India</span>
</div>

The default rule applies to transactions that do not satisfy any of the custom rules.
For example, you can ensure that 100% of all transactions is routed through payment gateway A.

## View Default Rule

To view the default rule:

1. Log in to the Dashboard.
2. Select **Optimizer**.
3. Click **View Default Rule**. By default, 100% of transactions are routed through Razorpay. You can choose to retain it or edit it as per your requirements.

<img src="https://razorpay.com/docs/build/browser/assets/images/optimizer-view-default-rule.jpg" class="click-zoom" alt="View Default Rule" width="800" />

## Edit Default Rule

To edit the default rule:

1. Click **View Default Rule**.
2. In the side pane, click **Edit Rule**.
   <img src="https://razorpay.com/docs/build/browser/assets/images/optimizer-edit-default-rule.jpg" class="click-zoom" alt="Edit Default Rule" width="800" />
3. The rule details appear. Click **Edit Target Provider**.
4. Update the priority. Let us assume you want to ensure that 80% of transactions are routed through Razorpay and 20% through payment gateway ABC. To do this:
   1. Enter `80` in the **Route** field and select `Razorpay` against the **payment via** field.
   2. Click **Add Another Provider**.
   3. In the new row, enter `20` in the **Route** field and select `ABC` against the **payment via** field.
      <img src="https://razorpay.com/docs/build/browser/assets/images/optimizer-edit-default-rule-details.jpg" class="click-zoom" alt="Edit Default Rule Details" width="800" />
   4. Click **Next**.
   5. Click **Publish Edits**.
   6. Click **Yes, Publish** to confirm the change.

### Related Information

* [Add Payment Providers](/docs/payments/optimizer/add-payment-providers)
* [Manage Rules](/docs/payments/optimizer/manage-rules)
