Routing
When a workflow runs
AvailableA merchant can have several published workflows in one environment. Triggers decide which one handles each payment, and the payment records which workflow and version ran and why.
Availability
- Available
Triggers editor (When it runs)
- Available
Explicit workflow on the API request
- Available
Ambiguity checks on save and first publish
How a workflow is chosen
- Step 1: An explicit workflow named on the payment request.
- Step 2: A trigger the parent merchant set for this sub-account.
- Step 3: The merchant's own triggers.
- Step 4: Method lanes, then the merchant's default workflow.
- Step 5: If the sub-account inherits configuration: the parent's triggers, then the parent's lanes.
- Step 6: Otherwise the payment fails closed: no workflow is configured.
Among matching triggers, the most specific wins (the most constrained dimensions), then the lowest priority number. The workflow id, version and the reason are stored on the payment.
Add a trigger
- Step 1: Open the workflow and the When it runs tab.
- Step 2: Choose payment options (for example Card, which includes mada), currencies, operation, channels (web, mobile, link, api, recovery), countries and an amount range. Empty means any, except currencies: empty means SAR.
- Step 3: Optionally set a priority (lower wins a tie), a sub-account id and an effective window.
- Step 4: Save. If another live workflow has a trigger that could match the same payments with the same specificity and priority, the save is refused and names the other trigger.
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.