Skip to content
Meem Payment

API reference · Console

Routing rules

Flat routing rules, with simulation, history and analytics.

Used by the Meem console. Not part of the merchant integration surface and may change without notice.

Create a routing rule

POST/api/v1/routing-rules

ConsoleBearer token

Bearer token. The required permission isn't published in the spec.

Used by the Meem console. Not part of the merchant integration surface and may change without notice.

Headers

  • Authorizationstringrequired
  • Content-Typestringrequired
  • X-Correlation-Idstringoptional
  • X-Merchant-Contextstringoptional

Request bodyapplication/json · CreateRoutingRuleRequest

  • namestringnullable
  • priorityinteger (int32)
  • scopestringnullable
  • merchantIdstring (uuid)nullable
  • targetGatewaystringnullable
  • fallbackChainarray<string>nullable
  • rootConditionGroupRequest
    Show child attributes ConditionGroupRequest (3)
    • operatorstringnullable
    • conditionsarray<ConditionRequest>nullable
      Show child attributes ConditionRequest (3)
      • fieldstringnullable
      • operatorstringnullable
      • valuesarray<string>nullable
    • subGroupsarray<ConditionGroupRequest>nullable
  • effectiveFromstring (date-time)nullable
  • effectiveTostring (date-time)nullable
  • activeboolean
  • targetAccountIdstring (uuid)nullable

The spec marks no fields as required. Constraints are enforced server-side and reported as 422.

Status codes

The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide

  • 200OK
  • 401Missing, expired or invalid token or credentials
  • 403Authenticated but not allowed (permission or merchant context)
  • 422Validation or business rule (ValidationProblemDetails with code)
  • 429Rate limit exceeded; wait for Retry-After

Example request

curl -X POST "https://api.sandbox.meem-dev.example/api/v1/routing-rules" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "<name>",
    "priority": 1,
    "scope": "<scope>",
    "merchantId": "<merchantId>",
    "targetGateway": "<targetGateway>",
    "fallbackChain": [
      "<fallbackChain>"
    ],
    "root": {
      "operator": "<operator>",
      "conditions": [],
      "subGroups": []
    },
    "effectiveFrom": "2026-12-31T20:59:59Z",
    "effectiveTo": "2026-12-31T20:59:59Z",
    "active": false,
    "targetAccountId": "<targetAccountId>"
  }'
using System.Net.Http.Headers;
using System.Net.Http.Json;

using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));

using var request = new HttpRequestMessage(HttpMethod.Post, "https://api.sandbox.meem-dev.example/api/v1/routing-rules")
{
    Content = JsonContent.Create(new
    {
        name = "<name>",
        priority = 1,
        scope = "<scope>",
        merchantId = "<merchantId>",
        targetGateway = "<targetGateway>",
        fallbackChain = new[] { "<fallbackChain>" },
        root = new
        {
            operator = "<operator>",
            conditions = Array.Empty<object>(),
            subGroups = Array.Empty<object>(),
        },
        effectiveFrom = "2026-12-31T20:59:59Z",
        effectiveTo = "2026-12-31T20:59:59Z",
        active = false,
        targetAccountId = "<targetAccountId>",
    })
};

using var response = await http.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    name: "<name>",
    priority: 1,
    scope: "<scope>",
    merchantId: "<merchantId>",
    targetGateway: "<targetGateway>",
    fallbackChain: ["<fallbackChain>"],
    root: {
      operator: "<operator>",
      conditions: [],
      subGroups: [],
    },
    effectiveFrom: "2026-12-31T20:59:59Z",
    effectiveTo: "2026-12-31T20:59:59Z",
    active: false,
    targetAccountId: "<targetAccountId>",
  }),
});

console.log(res.status, await res.text());
// Generated from the OpenAPI schema.
type CreateRoutingRuleRequest = {
  name?: string | null;
  priority?: number;
  scope?: string | null;
  merchantId?: string | null;
  targetGateway?: string | null;
  fallbackChain?: string[] | null;
  root?: Record<string, unknown> /* ConditionGroupRequest */;
  effectiveFrom?: string | null;
  effectiveTo?: string | null;
  active?: boolean;
  targetAccountId?: string | null;
};

const body: CreateRoutingRuleRequest = {
  name: "<name>",
  priority: 1,
  scope: "<scope>",
  merchantId: "<merchantId>",
  targetGateway: "<targetGateway>",
  fallbackChain: ["<fallbackChain>"],
  root: {
    operator: "<operator>",
    conditions: [],
    subGroups: [],
  },
  effectiveFrom: "2026-12-31T20:59:59Z",
  effectiveTo: "2026-12-31T20:59:59Z",
  active: false,
  targetAccountId: "<targetAccountId>",
};

const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify(body),
});

console.log(res.status, await res.text());
import os
import requests

response = requests.post(
    "https://api.sandbox.meem-dev.example/api/v1/routing-rules",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    json={
        "name": "<name>",
        "priority": 1,
        "scope": "<scope>",
        "merchantId": "<merchantId>",
        "targetGateway": "<targetGateway>",
        "fallbackChain": ["<fallbackChain>"],
        "root": {
            "operator": "<operator>",
            "conditions": [],
            "subGroups": [],
        },
        "effectiveFrom": "2026-12-31T20:59:59Z",
        "effectiveTo": "2026-12-31T20:59:59Z",
        "active": False,
        "targetAccountId": "<targetAccountId>",
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

The response schema isn't published in the spec yet.

List routing rules

GET/api/v1/routing-rules

ConsoleBearer token

Bearer token. The required permission isn't published in the spec.

Used by the Meem console. Not part of the merchant integration surface and may change without notice.

Headers

  • Authorizationstringrequired
  • X-Correlation-Idstringoptional
  • X-Merchant-Contextstringoptional

Request body

No request body.

Status codes

The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide

  • 200OK
  • 401Missing, expired or invalid token or credentials
  • 403Authenticated but not allowed (permission or merchant context)
  • 429Rate limit exceeded; wait for Retry-After

Example request

curl "https://api.sandbox.meem-dev.example/api/v1/routing-rules" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN"
using System.Net.Http.Headers;

using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));

using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.sandbox.meem-dev.example/api/v1/routing-rules");

using var response = await http.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
  },
});

console.log(res.status, await res.text());
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
  },
});

console.log(res.status, await res.text());
import os
import requests

response = requests.get(
    "https://api.sandbox.meem-dev.example/api/v1/routing-rules",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

The response schema isn't published in the spec yet.

Retrieve a routing rule

GET/api/v1/routing-rules/{id}

ConsoleBearer token

Bearer token. The required permission isn't published in the spec.

Used by the Meem console. Not part of the merchant integration surface and may change without notice.

Path parameters

  • idstring (uuid)required

Headers

  • Authorizationstringrequired
  • X-Correlation-Idstringoptional
  • X-Merchant-Contextstringoptional

Request body

No request body.

Status codes

The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide

  • 200OK
  • 401Missing, expired or invalid token or credentials
  • 403Authenticated but not allowed (permission or merchant context)
  • 404Unknown resource, or one that belongs to another merchant
  • 429Rate limit exceeded; wait for Retry-After

Example request

curl "https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN"
using System.Net.Http.Headers;

using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));

using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>");

using var response = await http.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
  },
});

console.log(res.status, await res.text());
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
  },
});

console.log(res.status, await res.text());
import os
import requests

response = requests.get(
    "https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

The response schema isn't published in the spec yet.

Update a routing rule

PUT/api/v1/routing-rules/{id}

ConsoleBearer token

Bearer token. The required permission isn't published in the spec.

Used by the Meem console. Not part of the merchant integration surface and may change without notice.

Path parameters

  • idstring (uuid)required

Headers

  • Authorizationstringrequired
  • Content-Typestringrequired
  • X-Correlation-Idstringoptional
  • X-Merchant-Contextstringoptional

Request bodyapplication/json · UpdateRoutingRuleRequest

  • namestringnullable
  • priorityinteger (int32)
  • scopestringnullable
  • merchantIdstring (uuid)nullable
  • targetGatewaystringnullable
  • fallbackChainarray<string>nullable
  • rootConditionGroupRequest
    Show child attributes ConditionGroupRequest (3)
    • operatorstringnullable
    • conditionsarray<ConditionRequest>nullable
      Show child attributes ConditionRequest (3)
      • fieldstringnullable
      • operatorstringnullable
      • valuesarray<string>nullable
    • subGroupsarray<ConditionGroupRequest>nullable
  • effectiveFromstring (date-time)nullable
  • effectiveTostring (date-time)nullable
  • targetAccountIdstring (uuid)nullable

The spec marks no fields as required. Constraints are enforced server-side and reported as 422.

Status codes

The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide

  • 200OK
  • 401Missing, expired or invalid token or credentials
  • 403Authenticated but not allowed (permission or merchant context)
  • 404Unknown resource, or one that belongs to another merchant
  • 422Validation or business rule (ValidationProblemDetails with code)
  • 429Rate limit exceeded; wait for Retry-After

Example request

curl -X PUT "https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "<name>",
    "priority": 1,
    "scope": "<scope>",
    "merchantId": "<merchantId>",
    "targetGateway": "<targetGateway>",
    "fallbackChain": [
      "<fallbackChain>"
    ],
    "root": {
      "operator": "<operator>",
      "conditions": [],
      "subGroups": []
    },
    "effectiveFrom": "2026-12-31T20:59:59Z",
    "effectiveTo": "2026-12-31T20:59:59Z",
    "targetAccountId": "<targetAccountId>"
  }'
using System.Net.Http.Headers;
using System.Net.Http.Json;

using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));

using var request = new HttpRequestMessage(HttpMethod.Put, "https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>")
{
    Content = JsonContent.Create(new
    {
        name = "<name>",
        priority = 1,
        scope = "<scope>",
        merchantId = "<merchantId>",
        targetGateway = "<targetGateway>",
        fallbackChain = new[] { "<fallbackChain>" },
        root = new
        {
            operator = "<operator>",
            conditions = Array.Empty<object>(),
            subGroups = Array.Empty<object>(),
        },
        effectiveFrom = "2026-12-31T20:59:59Z",
        effectiveTo = "2026-12-31T20:59:59Z",
        targetAccountId = "<targetAccountId>",
    })
};

using var response = await http.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    name: "<name>",
    priority: 1,
    scope: "<scope>",
    merchantId: "<merchantId>",
    targetGateway: "<targetGateway>",
    fallbackChain: ["<fallbackChain>"],
    root: {
      operator: "<operator>",
      conditions: [],
      subGroups: [],
    },
    effectiveFrom: "2026-12-31T20:59:59Z",
    effectiveTo: "2026-12-31T20:59:59Z",
    targetAccountId: "<targetAccountId>",
  }),
});

console.log(res.status, await res.text());
// Generated from the OpenAPI schema.
type UpdateRoutingRuleRequest = {
  name?: string | null;
  priority?: number;
  scope?: string | null;
  merchantId?: string | null;
  targetGateway?: string | null;
  fallbackChain?: string[] | null;
  root?: Record<string, unknown> /* ConditionGroupRequest */;
  effectiveFrom?: string | null;
  effectiveTo?: string | null;
  targetAccountId?: string | null;
};

const body: UpdateRoutingRuleRequest = {
  name: "<name>",
  priority: 1,
  scope: "<scope>",
  merchantId: "<merchantId>",
  targetGateway: "<targetGateway>",
  fallbackChain: ["<fallbackChain>"],
  root: {
    operator: "<operator>",
    conditions: [],
    subGroups: [],
  },
  effectiveFrom: "2026-12-31T20:59:59Z",
  effectiveTo: "2026-12-31T20:59:59Z",
  targetAccountId: "<targetAccountId>",
};

const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify(body),
});

console.log(res.status, await res.text());
import os
import requests

response = requests.put(
    "https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    json={
        "name": "<name>",
        "priority": 1,
        "scope": "<scope>",
        "merchantId": "<merchantId>",
        "targetGateway": "<targetGateway>",
        "fallbackChain": ["<fallbackChain>"],
        "root": {
            "operator": "<operator>",
            "conditions": [],
            "subGroups": [],
        },
        "effectiveFrom": "2026-12-31T20:59:59Z",
        "effectiveTo": "2026-12-31T20:59:59Z",
        "targetAccountId": "<targetAccountId>",
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

The response schema isn't published in the spec yet.

Delete a routing rule

DELETE/api/v1/routing-rules/{id}

ConsoleBearer token

Bearer token. The required permission isn't published in the spec.

Used by the Meem console. Not part of the merchant integration surface and may change without notice.

Path parameters

  • idstring (uuid)required

Headers

  • Authorizationstringrequired
  • X-Correlation-Idstringoptional
  • X-Merchant-Contextstringoptional

Request body

No request body.

Status codes

The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide

  • 200OK
  • 401Missing, expired or invalid token or credentials
  • 403Authenticated but not allowed (permission or merchant context)
  • 404Unknown resource, or one that belongs to another merchant
  • 429Rate limit exceeded; wait for Retry-After

Example request

curl -X DELETE "https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN"
using System.Net.Http.Headers;

using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));

using var request = new HttpRequestMessage(HttpMethod.Delete, "https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>");

using var response = await http.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
  },
});

console.log(res.status, await res.text());
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
  },
});

console.log(res.status, await res.text());
import os
import requests

response = requests.delete(
    "https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

The response schema isn't published in the spec yet.

Activate a routing rule

POST/api/v1/routing-rules/{id}/activate

ConsoleBearer token

Bearer token. The required permission isn't published in the spec.

Used by the Meem console. Not part of the merchant integration surface and may change without notice.

Path parameters

  • idstring (uuid)required

Headers

  • Authorizationstringrequired
  • X-Correlation-Idstringoptional
  • X-Merchant-Contextstringoptional

Request body

No request body.

Status codes

The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide

  • 200OK
  • 401Missing, expired or invalid token or credentials
  • 403Authenticated but not allowed (permission or merchant context)
  • 404Unknown resource, or one that belongs to another merchant
  • 429Rate limit exceeded; wait for Retry-After

Example request

curl -X POST "https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>/activate" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN"
using System.Net.Http.Headers;

using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));

using var request = new HttpRequestMessage(HttpMethod.Post, "https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>/activate");

using var response = await http.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>/activate", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
  },
});

console.log(res.status, await res.text());
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>/activate", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
  },
});

console.log(res.status, await res.text());
import os
import requests

response = requests.post(
    "https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>/activate",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

The response schema isn't published in the spec yet.

Deactivate a routing rule

POST/api/v1/routing-rules/{id}/deactivate

ConsoleBearer token

Bearer token. The required permission isn't published in the spec.

Used by the Meem console. Not part of the merchant integration surface and may change without notice.

Path parameters

  • idstring (uuid)required

Headers

  • Authorizationstringrequired
  • X-Correlation-Idstringoptional
  • X-Merchant-Contextstringoptional

Request body

No request body.

Status codes

The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide

  • 200OK
  • 401Missing, expired or invalid token or credentials
  • 403Authenticated but not allowed (permission or merchant context)
  • 404Unknown resource, or one that belongs to another merchant
  • 429Rate limit exceeded; wait for Retry-After

Example request

curl -X POST "https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>/deactivate" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN"
using System.Net.Http.Headers;

using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));

using var request = new HttpRequestMessage(HttpMethod.Post, "https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>/deactivate");

using var response = await http.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>/deactivate", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
  },
});

console.log(res.status, await res.text());
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>/deactivate", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
  },
});

console.log(res.status, await res.text());
import os
import requests

response = requests.post(
    "https://api.sandbox.meem-dev.example/api/v1/routing-rules/<id>/deactivate",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

The response schema isn't published in the spec yet.

Simulate routing rules

POST/api/v1/routing-rules/simulate

ConsoleBearer token

Bearer token. The required permission isn't published in the spec.

Used by the Meem console. Not part of the merchant integration surface and may change without notice.

Headers

  • Authorizationstringrequired
  • Content-Typestringrequired
  • X-Correlation-Idstringoptional
  • X-Merchant-Contextstringoptional

Request bodyapplication/json · SimulationContextRequest

  • cardBrandstringnullable
  • binstringnullable
  • cardIssuerstringnullable
  • currencystringnullable
  • amountnumber (double)nullable
  • countrystringnullable
  • merchantIdstring (uuid)nullable
  • paymentMethodstringnullable
  • customerCountrystringnullable
  • transactionTypestringnullable
  • cardSchemestringnullable
  • deviceTypestringnullable
  • ipCountrystringnullable
  • metadatamap<string, string>nullable
  • channelstringnullable
  • declineReasonstringnullable
  • environmentstringnullable
  • workflowIdstring (uuid)nullable
  • versionIdstring (uuid)nullable
  • trafficBucketinteger (int32)nullable

The spec marks no fields as required. Constraints are enforced server-side and reported as 422.

Status codes

The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide

  • 200OK
  • 401Missing, expired or invalid token or credentials
  • 403Authenticated but not allowed (permission or merchant context)
  • 422Validation or business rule (ValidationProblemDetails with code)
  • 429Rate limit exceeded; wait for Retry-After

Example request

curl -X POST "https://api.sandbox.meem-dev.example/api/v1/routing-rules/simulate" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "cardBrand": "<cardBrand>",
    "bin": "<bin>",
    "cardIssuer": "<cardIssuer>",
    "currency": "SAR",
    "amount": 100,
    "country": "<country>",
    "merchantId": "<merchantId>",
    "paymentMethod": "<paymentMethod>",
    "customerCountry": "<customerCountry>",
    "transactionType": "<transactionType>",
    "cardScheme": "<cardScheme>",
    "deviceType": "<deviceType>",
    "ipCountry": "<ipCountry>",
    "metadata": {
      "key": "value"
    },
    "channel": "<channel>",
    "declineReason": "<declineReason>",
    "environment": "<environment>",
    "workflowId": "<workflowId>",
    "versionId": "<versionId>",
    "trafficBucket": 1
  }'
using System.Net.Http.Headers;
using System.Net.Http.Json;

using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));

using var request = new HttpRequestMessage(HttpMethod.Post, "https://api.sandbox.meem-dev.example/api/v1/routing-rules/simulate")
{
    Content = JsonContent.Create(new
    {
        cardBrand = "<cardBrand>",
        bin = "<bin>",
        cardIssuer = "<cardIssuer>",
        currency = "SAR",
        amount = 100m,
        country = "<country>",
        merchantId = "<merchantId>",
        paymentMethod = "<paymentMethod>",
        customerCountry = "<customerCountry>",
        transactionType = "<transactionType>",
        cardScheme = "<cardScheme>",
        deviceType = "<deviceType>",
        ipCountry = "<ipCountry>",
        metadata = new Dictionary<string, object?>
        {
            ["key"] = "value",
        },
        channel = "<channel>",
        declineReason = "<declineReason>",
        environment = "<environment>",
        workflowId = "<workflowId>",
        versionId = "<versionId>",
        trafficBucket = 1,
    })
};

using var response = await http.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/simulate", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    cardBrand: "<cardBrand>",
    bin: "<bin>",
    cardIssuer: "<cardIssuer>",
    currency: "SAR",
    amount: 100,
    country: "<country>",
    merchantId: "<merchantId>",
    paymentMethod: "<paymentMethod>",
    customerCountry: "<customerCountry>",
    transactionType: "<transactionType>",
    cardScheme: "<cardScheme>",
    deviceType: "<deviceType>",
    ipCountry: "<ipCountry>",
    metadata: {
      key: "value",
    },
    channel: "<channel>",
    declineReason: "<declineReason>",
    environment: "<environment>",
    workflowId: "<workflowId>",
    versionId: "<versionId>",
    trafficBucket: 1,
  }),
});

console.log(res.status, await res.text());
// Generated from the OpenAPI schema.
type SimulationContextRequest = {
  cardBrand?: string | null;
  bin?: string | null;
  cardIssuer?: string | null;
  currency?: string | null;
  amount?: number | null;
  country?: string | null;
  merchantId?: string | null;
  paymentMethod?: string | null;
  customerCountry?: string | null;
  transactionType?: string | null;
  cardScheme?: string | null;
  deviceType?: string | null;
  ipCountry?: string | null;
  metadata?: Record<string, string> | null;
  channel?: string | null;
  declineReason?: string | null;
  environment?: string | null;
  workflowId?: string | null;
  versionId?: string | null;
  trafficBucket?: number | null;
};

const body: SimulationContextRequest = {
  cardBrand: "<cardBrand>",
  bin: "<bin>",
  cardIssuer: "<cardIssuer>",
  currency: "SAR",
  amount: 100,
  country: "<country>",
  merchantId: "<merchantId>",
  paymentMethod: "<paymentMethod>",
  customerCountry: "<customerCountry>",
  transactionType: "<transactionType>",
  cardScheme: "<cardScheme>",
  deviceType: "<deviceType>",
  ipCountry: "<ipCountry>",
  metadata: {
    key: "value",
  },
  channel: "<channel>",
  declineReason: "<declineReason>",
  environment: "<environment>",
  workflowId: "<workflowId>",
  versionId: "<versionId>",
  trafficBucket: 1,
};

const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/simulate", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify(body),
});

console.log(res.status, await res.text());
import os
import requests

response = requests.post(
    "https://api.sandbox.meem-dev.example/api/v1/routing-rules/simulate",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    json={
        "cardBrand": "<cardBrand>",
        "bin": "<bin>",
        "cardIssuer": "<cardIssuer>",
        "currency": "SAR",
        "amount": 100,
        "country": "<country>",
        "merchantId": "<merchantId>",
        "paymentMethod": "<paymentMethod>",
        "customerCountry": "<customerCountry>",
        "transactionType": "<transactionType>",
        "cardScheme": "<cardScheme>",
        "deviceType": "<deviceType>",
        "ipCountry": "<ipCountry>",
        "metadata": {
            "key": "value",
        },
        "channel": "<channel>",
        "declineReason": "<declineReason>",
        "environment": "<environment>",
        "workflowId": "<workflowId>",
        "versionId": "<versionId>",
        "trafficBucket": 1,
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

The response schema isn't published in the spec yet.

Routing rule history

GET/api/v1/routing-rules/history

ConsoleBearer token

Bearer token. The required permission isn't published in the spec.

Used by the Meem console. Not part of the merchant integration surface and may change without notice.

Headers

  • Authorizationstringrequired
  • X-Correlation-Idstringoptional
  • X-Merchant-Contextstringoptional

Request body

No request body.

Status codes

The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide

  • 200OK
  • 401Missing, expired or invalid token or credentials
  • 403Authenticated but not allowed (permission or merchant context)
  • 429Rate limit exceeded; wait for Retry-After

Example request

curl "https://api.sandbox.meem-dev.example/api/v1/routing-rules/history" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN"
using System.Net.Http.Headers;

using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));

using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.sandbox.meem-dev.example/api/v1/routing-rules/history");

using var response = await http.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/history", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
  },
});

console.log(res.status, await res.text());
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/history", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
  },
});

console.log(res.status, await res.text());
import os
import requests

response = requests.get(
    "https://api.sandbox.meem-dev.example/api/v1/routing-rules/history",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

The response schema isn't published in the spec yet.

Routing rule analytics

GET/api/v1/routing-rules/analytics

ConsoleBearer token

Bearer token. The required permission isn't published in the spec.

Used by the Meem console. Not part of the merchant integration surface and may change without notice.

Query parameters

  • sinceDaysinteger (int32)optional

    Default: 30

Headers

  • Authorizationstringrequired
  • X-Correlation-Idstringoptional
  • X-Merchant-Contextstringoptional

Request body

No request body.

Status codes

The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide

  • 200OK
  • 401Missing, expired or invalid token or credentials
  • 403Authenticated but not allowed (permission or merchant context)
  • 429Rate limit exceeded; wait for Retry-After

Example request

curl "https://api.sandbox.meem-dev.example/api/v1/routing-rules/analytics" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN"
using System.Net.Http.Headers;

using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));

using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.sandbox.meem-dev.example/api/v1/routing-rules/analytics");

using var response = await http.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/analytics", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
  },
});

console.log(res.status, await res.text());
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/routing-rules/analytics", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
  },
});

console.log(res.status, await res.text());
import os
import requests

response = requests.get(
    "https://api.sandbox.meem-dev.example/api/v1/routing-rules/analytics",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

The response schema isn't published in the spec yet.

Documentation reflects the platform as verified on 3 December 2026. Placeholder hosts and credentials are used throughout; your real sandbox host and keys are provided at onboarding.