Routing
Routing Studio basics
AvailableA routing workflow decides which of your gateway accounts handles each payment. In the Routing Studio you draw it as a flow from left to right: a payment arrives, passes checks that branch into Yes and No, and ends at a gateway. Drafts change nothing until you publish.
Availability
- Available
Visual Routing Studio: canvas and rules list views
- Available
14 workflow templates
- Available
Rule Builder on the merchant's Routing tab
- Available
Executed-path highlight after a test
Key ideas
- A workflow belongs to one merchant and one environment. Try ideas in Sandbox; Production handles real payments.
- Every payment starts at Payment arrives and follows the lines to the right. At a check it takes Yes or No; at a split it takes a weighted branch.
- Each path ends at a gateway step (Send to …), a priority list (Try A → B), a smart-routing step, or a finish step (End, Decline the payment, Block as risky).
- Gateway steps can only target the merchant's own accounts in the workflow's environment.
Create a workflow
- Step 1: Open Orchestration → Routing Studio and pick the merchant and environment. The Studio starts in the environment of the top bar's Data view (Sandbox when it shows all environments).
- Step 2: Choose Browse templates to start from a template, or name a blank workflow and choose Create.
- Step 3: Templates cover the basics (single gateway), conditional routing (currency, high value, card brand, purchase vs authorize), regional routing (mada domestic, international cards, country), resilience (failover chain, technical failover only, soft-decline retry), an A/B split and a risk block for very large amounts.
- Step 4: When a template needs a gateway, the Studio matches it to your eligible accounts. Check each Send to step afterwards.
Build the path
- Step 1: Click + on a card or on a line to add the next step: Check something, Choose where it goes, Let the platform pick, or Finish.
- Step 2: Select a step to edit it in the Step panel. Every card reads as a sentence, for example “Currency is SAR” or “Send to KSA main”.
- Step 3: Open the Problems tab at the bottom. Checks run automatically after each change and explain what to fix, such as a dead end or a gateway that is not set up.
- Step 4: Switch to the Rules list view for a top-to-bottom list of the same workflow. Steps it cannot show are kept and shown read-only.
The Rule Builder on the merchant page
Management → Merchants → (merchant) → Routing shows the live configuration for an environment, the rules in the exact order the engine evaluates them (first match wins), the gateway destinations, version history, and a form-based Rule Builder. The form edits the same workflow draft as the Studio. Anything it cannot represent, such as a split or a smart-routing step, is kept and shown read-only.
Test and publish
Use Test a payment to send a pretend payment through the draft; the path it takes lights up and nothing is charged. Then publish, or submit for approval if your Production setup requires it. See Simulation and saved tests and Approvals and scheduling.
Permissions
The console hides screens and actions you lack the permission for, and the API enforces the same permissions. See Roles and permissions for every role.
| Permission | Allows | Built-in roles |
|---|---|---|
routing_workflows.read | Open workflows, validate, export, run saved tests, view performance and replay. | PlatformAdmin, MerchantAdmin |
routing_workflows.manage | Create and edit workflows, triggers and saved tests; submit for approval; import; use the assistant. | PlatformAdmin, MerchantAdmin |
routing_workflows.publish | Publish, schedule, unpublish and roll back workflows; change the triggers of a live workflow. | PlatformAdmin, MerchantAdmin |
Related
This documentation reflects the platform as verified on 4 December 2026. Meem orchestrates payments across the PSP accounts you contract; it does not hold funds or process payments itself.