Skip to content
Meem Payment

API reference · Console

Refund approvals

Maker-checker approval of refunds above a threshold.

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

List refund approvals

GET/api/v1/refund-approvals

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

  • statusstringoptional

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/refund-approvals" \
  -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/refund-approvals");

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/refund-approvals", {
  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/refund-approvals", {
  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/refund-approvals",
    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.

Request a refund approval

POST/api/v1/refund-approvals

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 · RequestRefundApprovalRequest

  • paymentIdstring (uuid)
  • amountnumber (double)
  • currencystringnullable
  • reasonCodestringnullable

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/refund-approvals" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "paymentId": "<paymentId>",
    "amount": 100,
    "currency": "SAR",
    "reasonCode": "<reasonCode>"
  }'
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/refund-approvals")
{
    Content = JsonContent.Create(new
    {
        paymentId = "<paymentId>",
        amount = 100m,
        currency = "SAR",
        reasonCode = "<reasonCode>",
    })
};

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/refund-approvals", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    paymentId: "<paymentId>",
    amount: 100,
    currency: "SAR",
    reasonCode: "<reasonCode>",
  }),
});

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

const body: RequestRefundApprovalRequest = {
  paymentId: "<paymentId>",
  amount: 100,
  currency: "SAR",
  reasonCode: "<reasonCode>",
};

const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/refund-approvals", {
  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/refund-approvals",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    json={
        "paymentId": "<paymentId>",
        "amount": 100,
        "currency": "SAR",
        "reasonCode": "<reasonCode>",
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

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

Approve a refund

POST/api/v1/refund-approvals/{id}/approve

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 · ApprovalDecisionRequest

  • notestringnullable

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/refund-approvals/<id>/approve" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "note": "<note>"
  }'
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/refund-approvals/<id>/approve")
{
    Content = JsonContent.Create(new
    {
        note = "<note>",
    })
};

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

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

const body: ApprovalDecisionRequest = {
  note: "<note>",
};

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

Example response

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

Reject a refund

POST/api/v1/refund-approvals/{id}/reject

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 · ApprovalDecisionRequest

  • notestringnullable

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/refund-approvals/<id>/reject" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "note": "<note>"
  }'
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/refund-approvals/<id>/reject")
{
    Content = JsonContent.Create(new
    {
        note = "<note>",
    })
};

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

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

const body: ApprovalDecisionRequest = {
  note: "<note>",
};

const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/refund-approvals/<id>/reject", {
  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/refund-approvals/<id>/reject",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    json={
        "note": "<note>",
    },
    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.