Skip to content
Meem Payment

Routing

When a workflow runs

Available

A 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

  • Triggers editor (When it runs)

    Available
  • Explicit workflow on the API request

    Available
  • Ambiguity checks on save and first publish

    Available

How a workflow is chosen

  1. Step 1: An explicit workflow named on the payment request.
  2. Step 2: A trigger the parent merchant set for this sub-account.
  3. Step 3: The merchant's own triggers.
  4. Step 4: Method lanes, then the merchant's default workflow.
  5. Step 5: If the sub-account inherits configuration: the parent's triggers, then the parent's lanes.
  6. 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

  1. Step 1: Open the workflow and the When it runs tab.
  2. 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.
  3. Step 3: Optionally set a priority (lower wins a tie), a sub-account id and an effective window.
  4. 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.

Permissions used in this article
PermissionAllowsBuilt-in roles
routing_workflows.readOpen workflows, validate, export, run saved tests, view performance and replay.PlatformAdmin, MerchantAdmin
routing_workflows.manageCreate and edit workflows, triggers and saved tests; submit for approval; import; use the assistant.PlatformAdmin, MerchantAdmin
routing_workflows.publishPublish, schedule, unpublish and roll back workflows; change the triggers of a live workflow.PlatformAdmin, MerchantAdmin

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.