# Smart Router for Payouts

The Juspay Hyperswitch Smart Router allows you to define logic for distributing payout traffic across multiple processors. This ensures redundancy, optimizes for cost, and manages transaction volumes programmatically.

> **Note:** Routing configurations for payout operations are isolated from payment operations. Modifying payout routing rules will not impact your payment routing logic and vice-versa.

For a conceptual deep dive into the routing engine, refer to the [Smart Router Overview](https://docs.hyperswitch.io/explore-hyperswitch/connectors/payouts/route-your-payout-transactions-using-smart-router).

### Configuration Options

You can manage your routing logic via the [Hyperswitch Dashboard](https://app.hyperswitch.io) or the [Routing APIs](https://api-reference.hyperswitch.io/v1/routing/routing--list). The dashboard provides a visual interface for constructing and activating these rules.

### Prerequisites

To utilize Smart Routing, you must have at least two payout processors integrated and active on your account. Follow the [Getting Started with Payouts](https://docs.hyperswitch.io/explore-hyperswitch/connectors/payouts/get-started-with-payouts) guide to add connectors.

### Setting Up Payout Routing

#### Access Routing Settings

Navigate to Workflow -> Payout Routing in your [Dashboard](https://app.hyperswitch.io).

<figure><img src="https://1943537505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf7BGdsPkCw9nalhAIlE%2Fuploads%2Fgit-blob-d9496b4321ebed7d94b0ed490f50bea66e3d291a%2Fimage.png?alt=media" alt=""><figcaption><p>Head to Payout Routing</p></figcaption></figure>

#### Select a Routing Strategy

Hyperswitch supports three distinct formats for payout orchestration:

* [Volume-Based Routing](https://docs.hyperswitch.io/explore-hyperswitch/workflows/intelligent-routing/volume-based-routing): Distribute a percentage of total payout traffic across multiple connectors.
* [Rule-Based Routing](https://docs.hyperswitch.io/explore-hyperswitch/workflows/intelligent-routing/rule-based-routing): Create conditional logic (if/then) to route payouts based on specific attributes like currency, region, or method.
* [Default Fallback Routing](https://docs.hyperswitch.io/explore-hyperswitch/workflows/intelligent-routing/default-fallback-routing): Establish a static priority list. If a primary processor is unavailable, the system attempts the payout with the next processor in the sequence.

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td></td><td>Volume Based Routing</td><td></td><td><a href="https://1943537505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf7BGdsPkCw9nalhAIlE%2Fuploads%2Fgit-blob-8b20a8bc74e39586fec44a07868eb13da6bdcd1d%2Fimage.png?alt=media">image.png</a></td></tr><tr><td></td><td>Rule Based Routing</td><td></td><td><a href="https://1943537505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf7BGdsPkCw9nalhAIlE%2Fuploads%2Fgit-blob-d26465ed462b14a235ac12491b71788c2887c9ba%2Fimage.png?alt=media">image.png</a></td></tr><tr><td></td><td>Default fallback Routing</td><td></td><td><a href="https://1943537505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf7BGdsPkCw9nalhAIlE%2Fuploads%2Fgit-blob-50df6f48289582feb99874ef80cd49d94b012aac%2Fimage.png?alt=media">image.png</a></td></tr></tbody></table>

<figure><img src="https://1943537505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf7BGdsPkCw9nalhAIlE%2Fuploads%2Fgit-blob-39af0f5874bda85b840ad6691c12566eaaab0483%2Fimage.png?alt=media" alt=""><figcaption><p>View configured rules</p></figcaption></figure>

#### Manage and Activate Configurations

Once your rules are defined, you can manage them from the Payout Routing summary page.

* Activation: Only one routing configuration (Volume, Rule, or Fallback) can be active at any given time.
* Switching Rules: To change the active logic, select a saved configuration and click `Activate Configuration`.

<figure><img src="https://1943537505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf7BGdsPkCw9nalhAIlE%2Fuploads%2Fgit-blob-d8e1c41e89cff7115bdd406aae7542f780153c78%2Fimage.png?alt=media" alt=""><figcaption><p>Activate routing rule</p></figcaption></figure>

Fallback Behavior: If no custom routing rule is activated, Hyperswitch will automatically process transactions based on the order defined in your Default Fallback Priority list.

<figure><img src="https://1943537505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf7BGdsPkCw9nalhAIlE%2Fuploads%2Fgit-blob-a66f4967a7a2a67acf7c4216173fd814b43e7e8b%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
