---
title: Add rule for transaction distribution by weights
description: sr
---

[Skip to content](https://help.ecomcharge.com/en/knowledge-base/sr-add-rule-for-transaction-distribution-by-weights#main-content)

- [English](https://help.ecomcharge.com/en/knowledge-base/sr-add-rule-for-transaction-distribution-by-weights)
- [Русский](https://help.ecomcharge.com/knowledge-base-ru/sr-add-rule-for-transaction-distribution-by-weights)

English

Show submenu for translations

[Customer portal](https://help.ecomcharge.com/tickets?hsLang=en)

- [Subscribe to platform updates](https://share-eu1.hsforms.com/1iuchcnmzT9yq2VKMCRdsLwfnh6h)
- [Support & Requests](https://help.ecomcharge.com/en/knowledge-base/support-requests)

Open main navigation

Close main navigation

- [Subscribe to platform updates](https://share-eu1.hsforms.com/1iuchcnmzT9yq2VKMCRdsLwfnh6h)
- [Support & Requests](https://help.ecomcharge.com/en/knowledge-base/support-requests)
- - [English](https://help.ecomcharge.com/en/knowledge-base/sr-add-rule-for-transaction-distribution-by-weights)
    - [Русский](https://help.ecomcharge.com/knowledge-base-ru/sr-add-rule-for-transaction-distribution-by-weights)

  English
  
  Show submenu for translations
- [Customer portal](https://help.ecomcharge.com/tickets)
- [eComCharge Blog](https://ecomcharge.com/blog/)

[eComCharge Blog](https://ecomcharge.com/blog/)

 This is a search field with an auto-suggest feature attached.

- There are no suggestions because the search field is empty.

1. [eComCharge knowledge base](https://help.ecomcharge.com/en/knowledge-base?hsLang=en)
2. [Smart Risk and Routing Engine](https://help.ecomcharge.com/en/knowledge-base/smart-risk-and-routing-engine?hsLang=en)
3. [Smart routing management](https://help.ecomcharge.com/en/knowledge-base/smart-risk-and-routing-engine?hsLang=en#smart-routing-management)

# Add rule for transaction distribution by weights

The general process for adding rules is described under [Create a new rule - Documentation - Confluence (atlassian.net)](https://ecomcharge.atlassian.net/wiki/spaces/DOC/pages/2230059110).

In order for the transaction distribution to work properly, make sure the corresponding rule is always placed last within its flow.

To apply weights, you must include a condition with the field `txn_currency`. The rule may include other conditions with other fields.`txn_type` field is disabled in the **Field** drop-down list if the weights distribution is applied. The rule will be automatically applied to payment and authorization transactions.

The conditions with logical operators In set and Not in set must not be used in the rule for transaction distribution by weights.

[![Screenshot 2023-09-27 155049](https://help.ecomcharge.com/hs-fs/hubfs/Screenshot%202023-09-27%20155049.png?width=670&height=524&name=Screenshot%202023-09-27%20155049.png)](https://help.ecomcharge.com/hubfs/Screenshot%202023-09-27%20155049.png?hsLang=en)

Click the **Use weights** toggle to the on position. In the fields below select gateways from the drop-down lists. Click **+Add** to add additional gateway fields if needed. In the **Weight** field type the desired weight for this gateway. Clicking **Fill all empty** will assign the value of the remaining weight to the corresponding **Weight** field.

The update file will display the date of the last rule update. If the rule is updated (gateways are removed/added, the ration is changed), the distribution restarts.

- [Admin Panel User Guide](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#main-content)

    - [Introduction](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#introduction)
    - [Before you start](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#before-you-start)
    - [Users](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#users)
    - [System administration](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#system-administration)
    - [Merchant account management](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#merchant-account-management)
    - [Configuration of payment gateways](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#configuration-of-payment-gateways)
    - [Merchant shop management](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#merchant-shop-management)
    - [Dashboard](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#dashboard)
    - [Configuration of fraud protection services](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#configuration-of-fraud-protection-services)
    - [Transaction management](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#transaction-management)
    - [Subscription management](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#subscription-management)
    - [Transaction reports](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#transaction-reports)
    - [Accounting and financial reports](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#accounting-and-financial-reports)
    - [Finances](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#finances)
    - [Merchant's balance](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#merchants-balance)
    - [Mass payouts to customers](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#mass-payouts-to-customers)
    - [Additional services](https://help.ecomcharge.com/en/knowledge-base/admin-panel-user-guide?hsLang=en#additional-services)
- [Smart Risk and Routing Engine](https://help.ecomcharge.com/en/knowledge-base/smart-risk-and-routing-engine?hsLang=en#main-content)

    - [Introduction](https://help.ecomcharge.com/en/knowledge-base/smart-risk-and-routing-engine?hsLang=en#introduction)
    - [Overall service description](https://help.ecomcharge.com/en/knowledge-base/smart-risk-and-routing-engine?hsLang=en#overall-service-description)
    - [Getting started](https://help.ecomcharge.com/en/knowledge-base/smart-risk-and-routing-engine?hsLang=en#getting-started)
    - [Smart routing management](https://help.ecomcharge.com/en/knowledge-base/smart-risk-and-routing-engine?hsLang=en#smart-routing-management)
    - [Settings management](https://help.ecomcharge.com/en/knowledge-base/smart-risk-and-routing-engine?hsLang=en#settings-management)
    - [Appendix 1: Logical operators](https://help.ecomcharge.com/en/knowledge-base/smart-risk-and-routing-engine?hsLang=en#appendix-1-logical-operators)
    - [Appendix 2: List of system fields](https://help.ecomcharge.com/en/knowledge-base/smart-risk-and-routing-engine?hsLang=en#appendix-2-list-of-system-fields)
- [PSP API documentation](https://help.ecomcharge.com/en/knowledge-base/psp-api-documentation?hsLang=en#main-content)

    - [Introduction](https://help.ecomcharge.com/en/knowledge-base/psp-api-documentation?hsLang=en#introduction)
    - [Request requirements](https://help.ecomcharge.com/en/knowledge-base/psp-api-documentation?hsLang=en#request-requirements)
    - [HTTP response codes](https://help.ecomcharge.com/en/knowledge-base/psp-api-documentation?hsLang=en#http-response-codes)
    - [PSP ID and Secret Key](https://help.ecomcharge.com/en/knowledge-base/psp-api-documentation?hsLang=en#psp-id-and-secret-key)
    - [Merchants](https://help.ecomcharge.com/en/knowledge-base/psp-api-documentation?hsLang=en#merchants)
    - [Shops](https://help.ecomcharge.com/en/knowledge-base/psp-api-documentation?hsLang=en#shops)
    - [Transactions (DWH v.2)](https://help.ecomcharge.com/en/knowledge-base/psp-api-documentation?hsLang=en#transactions-dwh-v-2)
    - [Transactions (DWH v.1)](https://help.ecomcharge.com/en/knowledge-base/psp-api-documentation?hsLang=en#transactions-dwh-v-1)
    - [Reference](https://help.ecomcharge.com/en/knowledge-base/psp-api-documentation?hsLang=en#reference)
    - [Reports (DWH v.2)](https://help.ecomcharge.com/en/knowledge-base/psp-api-documentation?hsLang=en#reports-dwh-v-2)
- [Video guides](https://help.ecomcharge.com/en/knowledge-base/video-guides?hsLang=en#main-content)

    - [Creating rules in Smart Routing](https://help.ecomcharge.com/en/knowledge-base/video-guides?hsLang=en#creating-rules-in-smart-routing)
    - [Payment Widget customization](https://help.ecomcharge.com/en/knowledge-base/video-guides?hsLang=en#payment-widget-customization)
- [Integrations](https://help.ecomcharge.com/en/knowledge-base/integrations?hsLang=en#main-content)

    - [Active Connectors with PSPs, banks, APM solution providers](https://help.ecomcharge.com/en/knowledge-base/integrations?hsLang=en#active-connectors-with-psps-banks-apm-solution-providers)
- [Release Notes](https://help.ecomcharge.com/en/knowledge-base/release-notes?hsLang=en#main-content)

    - [2025](https://help.ecomcharge.com/en/knowledge-base/release-notes?hsLang=en#2025)
- [Support and Requests](https://help.ecomcharge.com/en/knowledge-base/support-and-requests?hsLang=en)

[![eComCharge\_main logo uncut@3x 1-2](https://help.ecomcharge.com/hs-fs/hubfs/eComCharge_main%20logo%20uncut@3x%201-2.png?width=150&height=77&name=eComCharge_main%20logo%20uncut@3x%201-2.png "eComCharge_main logo uncut@3x 1-2")](https://help.ecomcharge.com/?hsLang=en)

<https://www.linkedin.com/company/ecomcharge/> [mailto:sales@ecomcharge.com](mailto:sales@ecomcharge.com)

© 2026 eComCharge UAB