Skip to content
Meem Payment

API reference · Integration

Payment links

Create, list, cancel, regenerate and share payment links. Public link endpoints are called from the customer's browser.

Create a payment link

POST/api/v1/payment-links

IntegrationBearer tokenPermission: payment_links.manage

Create a payment link.

Guide

Headers

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

Request bodyapplication/json · CreatePaymentLinkRequest

  • merchantIdstring (uuid)nullable
  • amountnumber (double)nullable

    Fixed amount. Omit it and set minAmount to let the customer enter the amount.

  • minAmountnumber (double)nullable

    Bounds for a customer-entered amount. Positive; minAmount ≤ maxAmount.

  • maxAmountnumber (double)nullable

    Bounds for a customer-entered amount. Positive; minAmount ≤ maxAmount.

  • currencystringnullable

    Three-letter ISO code. Defaults to SAR.

  • merchantReferencestringnullable

    Your reference and the text shown to the customer.

  • descriptionstringnullable

    Your reference and the text shown to the customer.

  • customerNamestringnullable

    Optional customer details. customerEmail must contain @.

  • customerEmailstringnullable

    Optional customer details. customerEmail must contain @.

  • customerPhonestringnullable

    Optional customer details. customerEmail must contain @.

  • itemsarray<PaymentLinkItem>nullable

    Line items: name, quantity ≥ 1, unitPrice ≥ 0.

    Show child attributes PaymentLinkItem (3)
    • namestringnullable
    • quantityinteger (int32)
    • unitPricenumber (double)
  • expiresAtstring (date-time)nullable

    Must be in the future.

  • singleUseboolean

    Defaults to true (one successful payment). Set false for a reusable link.

  • maxUsesinteger (int32)nullable

    For reusable links: at least 1. Omit for unlimited uses.

  • allowedPaymentMethodsarray<string>nullable

    Known method codes only, e.g. card, mada.

  • workflowIdstringnullable

    Pin a published routing workflow.

  • checkoutProfileIdstring (uuid)nullable

    One of your active checkout profiles.

  • successUrlstringnullable

    Absolute https URLs.

  • failureUrlstringnullable

    Absolute https URLs.

  • metadatamap<string, string>nullable

    Your own key-value pairs.

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

  • 201Created
  • 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/payment-links" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 500,
    "currency": "SAR",
    "merchantReference": "INV-3001",
    "description": "Invoice INV-3001",
    "customerEmail": "customer@example.com",
    "expiresAt": "2026-12-31T20:59:59Z",
    "singleUse": true,
    "successUrl": "https://shop.example.com/paid",
    "metadata": {
      "invoice": "INV-3001"
    }
  }'
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/payment-links")
{
    Content = JsonContent.Create(new
    {
        amount = 500m,
        currency = "SAR",
        merchantReference = "INV-3001",
        description = "Invoice INV-3001",
        customerEmail = "customer@example.com",
        expiresAt = "2026-12-31T20:59:59Z",
        singleUse = true,
        successUrl = "https://shop.example.com/paid",
        metadata = new Dictionary<string, object?>
        {
            ["invoice"] = "INV-3001",
        },
    })
};

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/payment-links", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    amount: 500,
    currency: "SAR",
    merchantReference: "INV-3001",
    description: "Invoice INV-3001",
    customerEmail: "customer@example.com",
    expiresAt: "2026-12-31T20:59:59Z",
    singleUse: true,
    successUrl: "https://shop.example.com/paid",
    metadata: {
      invoice: "INV-3001",
    },
  }),
});

console.log(res.status, await res.text());
// Generated from the OpenAPI schema.
type CreatePaymentLinkRequest = {
  merchantId?: string | null;
  amount?: number | null;
  minAmount?: number | null;
  maxAmount?: number | null;
  currency?: string | null;
  merchantReference?: string | null;
  description?: string | null;
  customerName?: string | null;
  customerEmail?: string | null;
  customerPhone?: string | null;
  items?: Record<string, unknown> /* PaymentLinkItem */[] | null;
  expiresAt?: string | null;
  singleUse?: boolean;
  maxUses?: number | null;
  allowedPaymentMethods?: string[] | null;
  workflowId?: string | null;
  checkoutProfileId?: string | null;
  successUrl?: string | null;
  failureUrl?: string | null;
  metadata?: Record<string, string> | null;
};

const body: CreatePaymentLinkRequest = {
  amount: 500,
  currency: "SAR",
  merchantReference: "INV-3001",
  description: "Invoice INV-3001",
  customerEmail: "customer@example.com",
  expiresAt: "2026-12-31T20:59:59Z",
  singleUse: true,
  successUrl: "https://shop.example.com/paid",
  metadata: {
    invoice: "INV-3001",
  },
};

const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/payment-links", {
  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/payment-links",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    json={
        "amount": 500,
        "currency": "SAR",
        "merchantReference": "INV-3001",
        "description": "Invoice INV-3001",
        "customerEmail": "customer@example.com",
        "expiresAt": "2026-12-31T20:59:59Z",
        "singleUse": True,
        "successUrl": "https://shop.example.com/paid",
        "metadata": {
            "invoice": "INV-3001",
        },
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

{
  "id": "3b0f8f0e-7f61-4bf6-9a2f-6c5a1d0e9b11",
  "merchantId": "<merchant_id>",
  "publicId": "<public_id>",
  "url": "https://checkout.sandbox.meem-dev.example/link/<public_id>",
  "qrCodeUrl": "/api/v1/public/payment-links/<public_id>/qr.svg",
  "amount": 500,
  "minAmount": null,
  "maxAmount": null,
  "currency": "SAR",
  "merchantReference": "INV-3001",
  "expiresAt": "2026-12-31T20:59:59+00:00",
  "maxUses": 1,
  "singleUse": true,
  "usedCount": 0,
  "reservedCount": 0,
  "status": "Active",
  "createdAt": "2026-12-03T09:00:00+00:00"
}

GET/api/v1/payment-links

IntegrationBearer tokenPermission: payment_links.read

List payment links, optionally by status.

Guide

  • merchantIdstring (uuid)optional
  • statusPaymentLinkStatusoptional

    One of: Active · Pending · PartiallyUsed · Paid · Expired · Cancelled · UsageLimitReached

  • 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

Example response

The response schema isn't published in the spec yet. See the guide for what it returns. Guide

GET/api/v1/payment-links/stats

IntegrationBearer tokenPermission: payment_links.read

Payment link statistics.

Guide

  • merchantIdstring (uuid)optional
  • 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

Example response

The response schema isn't published in the spec yet. See the guide for what it returns. Guide

GET/api/v1/payment-links/{id}

IntegrationBearer tokenPermission: payment_links.read

Retrieve a payment link.

Guide

  • idstring (uuid)required
  • 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

Example response

The response schema isn't published in the spec yet. See the guide for what it returns. Guide

GET/api/v1/payment-links/{id}/payments

IntegrationBearer tokenPermission: payment_links.read

Payments made through a link.

Guide

  • idstring (uuid)required
  • 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

Example response

The response schema isn't published in the spec yet. See the guide for what it returns. Guide

Cancel a payment link

POST/api/v1/payment-links/{id}/cancel

IntegrationBearer tokenPermission: payment_links.manage

Cancel a payment link.

Guide

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/payment-links/<id>/cancel" \
  -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/payment-links/<id>/cancel");

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/payment-links/<id>/cancel", {
  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/payment-links/<id>/cancel", {
  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/payment-links/<id>/cancel",
    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. See the guide for what it returns. Guide

Regenerate a payment link

POST/api/v1/payment-links/{id}/regenerate

IntegrationBearer tokenPermission: payment_links.manage

Issue a new public URL for a link, optionally with a new expiry.

Guide

Path parameters

  • idstring (uuid)required

Headers

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

Request bodyapplication/json · RegenerateRequest

  • expiresAtstring (date-time)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 POST "https://api.sandbox.meem-dev.example/api/v1/payment-links/<id>/regenerate" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "expiresAt": "2026-12-31T20:59:59Z"
  }'
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/payment-links/<id>/regenerate")
{
    Content = JsonContent.Create(new
    {
        expiresAt = "2026-12-31T20:59:59Z",
    })
};

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/payment-links/<id>/regenerate", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    expiresAt: "2026-12-31T20:59:59Z",
  }),
});

console.log(res.status, await res.text());
// Generated from the OpenAPI schema.
type RegenerateRequest = {
  expiresAt?: string | null;
};

const body: RegenerateRequest = {
  expiresAt: "2026-12-31T20:59:59Z",
};

const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/payment-links/<id>/regenerate", {
  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/payment-links/<id>/regenerate",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    json={
        "expiresAt": "2026-12-31T20:59:59Z",
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

The response schema isn't published in the spec yet. See the guide for what it returns. Guide

Share a payment link

POST/api/v1/payment-links/{id}/share

IntegrationBearer tokenPermission: payment_links.manage

Share a link by email or SMS (simulated notifier today).

Guide

Path parameters

  • idstring (uuid)required

Headers

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

Request bodyapplication/json · ShareRequest

  • channelstringnullable
  • recipientstringnullable

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 POST "https://api.sandbox.meem-dev.example/api/v1/payment-links/<id>/share" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "channel": "<channel>",
    "recipient": "<recipient>"
  }'
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/payment-links/<id>/share")
{
    Content = JsonContent.Create(new
    {
        channel = "<channel>",
        recipient = "<recipient>",
    })
};

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/payment-links/<id>/share", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    channel: "<channel>",
    recipient: "<recipient>",
  }),
});

console.log(res.status, await res.text());
// Generated from the OpenAPI schema.
type ShareRequest = {
  channel?: string | null;
  recipient?: string | null;
};

const body: ShareRequest = {
  channel: "<channel>",
  recipient: "<recipient>",
};

const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/payment-links/<id>/share", {
  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/payment-links/<id>/share",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    json={
        "channel": "<channel>",
        "recipient": "<recipient>",
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

The response schema isn't published in the spec yet. See the guide for what it returns. Guide

Open a payment link

POST/api/v1/public/payment-links/{publicId}/open

IntegrationPublic

Open a link and start a checkout session (customer browser).

No API token: called by the hosted checkout page or the customer's browser.

Guide

Path parameters

  • publicIdstringrequired

Headers

  • Content-Typestringrequired
  • X-Correlation-Idstringoptional

Request bodyapplication/json · OpenRequest

  • amountnumber (double)nullable
  • localestringnullable

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
  • 404Unknown resource, or one that belongs to another merchant
  • 410Expired checkout session or unavailable payment link
  • 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/public/payment-links/<publicId>/open" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 100,
    "locale": "<locale>"
  }'
using System.Net.Http.Headers;
using System.Net.Http.Json;

using var http = new HttpClient();

using var request = new HttpRequestMessage(HttpMethod.Post, "https://api.sandbox.meem-dev.example/api/v1/public/payment-links/<publicId>/open")
{
    Content = JsonContent.Create(new
    {
        amount = 100m,
        locale = "<locale>",
    })
};

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/public/payment-links/<publicId>/open", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    amount: 100,
    locale: "<locale>",
  }),
});

console.log(res.status, await res.text());
// Generated from the OpenAPI schema.
type OpenRequest = {
  amount?: number | null;
  locale?: string | null;
};

const body: OpenRequest = {
  amount: 100,
  locale: "<locale>",
};

const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/public/payment-links/<publicId>/open", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify(body),
});

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

response = requests.post(
    "https://api.sandbox.meem-dev.example/api/v1/public/payment-links/<publicId>/open",
    json={
        "amount": 100,
        "locale": "<locale>",
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

The response schema isn't published in the spec yet. See the guide for what it returns. Guide

GET/api/v1/public/payment-links/{publicId}

IntegrationPublic

Public link summary (customer browser).

No API token: called by the hosted checkout page or the customer's browser.

Guide

  • publicIdstringrequired
  • X-Correlation-Idstringoptional

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
  • 404Unknown resource, or one that belongs to another merchant
  • 410Expired checkout session or unavailable payment link
  • 429Rate limit exceeded; wait for Retry-After

Example request

Example response

The response schema isn't published in the spec yet. See the guide for what it returns. Guide

GET/api/v1/public/payment-links/{publicId}/qr.svg

IntegrationPublic

QR code of the public link URL (SVG).

No API token: called by the hosted checkout page or the customer's browser.

Guide

  • publicIdstringrequired
  • X-Correlation-Idstringoptional

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
  • 404Unknown resource, or one that belongs to another merchant
  • 429Rate limit exceeded; wait for Retry-After

Example request

Example response

The response schema isn't published in the spec yet. See the guide for what it returns. Guide

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.