Skip to content
Meem Payment

API reference · Console

Settlements and reconciliation

Settlement records with a manual status workflow, and reconciliation runs that match a settlement file against payments and resolve discrepancies.

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

List settlements

GET/api/v1/settlements

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

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

Create a settlement

POST/api/v1/settlements

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

  • merchantIdstring (uuid)
  • gatewayNamestringnullable
  • currencystringnullable
  • grossAmountnumber (double)
  • feeAmountnumber (double)
  • netAmountnumber (double)
  • settlementDatestring (date-time)
  • statusstringnullable

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/settlements" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "merchantId": "<merchantId>",
    "gatewayName": "<gatewayName>",
    "currency": "SAR",
    "grossAmount": 100,
    "feeAmount": 100,
    "netAmount": 100,
    "settlementDate": "2026-12-31T20:59:59Z",
    "status": "<status>"
  }'
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/settlements")
{
    Content = JsonContent.Create(new
    {
        merchantId = "<merchantId>",
        gatewayName = "<gatewayName>",
        currency = "SAR",
        grossAmount = 100m,
        feeAmount = 100m,
        netAmount = 100m,
        settlementDate = "2026-12-31T20:59:59Z",
        status = "<status>",
    })
};

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/settlements", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    merchantId: "<merchantId>",
    gatewayName: "<gatewayName>",
    currency: "SAR",
    grossAmount: 100,
    feeAmount: 100,
    netAmount: 100,
    settlementDate: "2026-12-31T20:59:59Z",
    status: "<status>",
  }),
});

console.log(res.status, await res.text());
// Generated from the OpenAPI schema.
type CreateSettlementRequest = {
  merchantId?: string;
  gatewayName?: string | null;
  currency?: string | null;
  grossAmount?: number;
  feeAmount?: number;
  netAmount?: number;
  settlementDate?: string;
  status?: string | null;
};

const body: CreateSettlementRequest = {
  merchantId: "<merchantId>",
  gatewayName: "<gatewayName>",
  currency: "SAR",
  grossAmount: 100,
  feeAmount: 100,
  netAmount: 100,
  settlementDate: "2026-12-31T20:59:59Z",
  status: "<status>",
};

const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/settlements", {
  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/settlements",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    json={
        "merchantId": "<merchantId>",
        "gatewayName": "<gatewayName>",
        "currency": "SAR",
        "grossAmount": 100,
        "feeAmount": 100,
        "netAmount": 100,
        "settlementDate": "2026-12-31T20:59:59Z",
        "status": "<status>",
    },
    timeout=30,
)
print(response.status_code, response.text)

Example response

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

Retrieve a settlement

GET/api/v1/settlements/{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/settlements/<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/settlements/<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/settlements/<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/settlements/<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/settlements/<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 settlement's status

POST/api/v1/settlements/{id}/status

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

  • statusstringnullable

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

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

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

const body: UpdateSettlementStatusRequest = {
  status: "<status>",
};

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

Example response

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

Run a reconciliation

POST/api/v1/reconciliation/runs

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

  • gatewayNamestringnullable
  • fromstring (date-time)
  • tostring (date-time)
  • fileContentstringnullable

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/reconciliation/runs" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "gatewayName": "<gatewayName>",
    "from": "2026-12-31T20:59:59Z",
    "to": "2026-12-31T20:59:59Z",
    "fileContent": "<fileContent>"
  }'
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/reconciliation/runs")
{
    Content = JsonContent.Create(new
    {
        gatewayName = "<gatewayName>",
        from = "2026-12-31T20:59:59Z",
        to = "2026-12-31T20:59:59Z",
        fileContent = "<fileContent>",
    })
};

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/reconciliation/runs", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    gatewayName: "<gatewayName>",
    from: "2026-12-31T20:59:59Z",
    to: "2026-12-31T20:59:59Z",
    fileContent: "<fileContent>",
  }),
});

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

const body: RunReconciliationRequest = {
  gatewayName: "<gatewayName>",
  from: "2026-12-31T20:59:59Z",
  to: "2026-12-31T20:59:59Z",
  fileContent: "<fileContent>",
};

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

Example response

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

Retrieve a reconciliation run

GET/api/v1/reconciliation/runs/{runId}

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

  • runIdstring (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/reconciliation/runs/<runId>" \
  -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/reconciliation/runs/<runId>");

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/reconciliation/runs/<runId>", {
  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/reconciliation/runs/<runId>", {
  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/reconciliation/runs/<runId>",
    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.

Resolve a discrepancy

POST/api/v1/reconciliation/discrepancies/{discrepancyId}/resolve

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

  • discrepancyIdstring (uuid)required

Headers

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

Request bodyapplication/json · ResolveDiscrepancyRequest

  • resolutionNotestringnullable

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/reconciliation/discrepancies/<discrepancyId>/resolve" \
  -H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "resolutionNote": "<resolutionNote>"
  }'
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/reconciliation/discrepancies/<discrepancyId>/resolve")
{
    Content = JsonContent.Create(new
    {
        resolutionNote = "<resolutionNote>",
    })
};

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/reconciliation/discrepancies/<discrepancyId>/resolve", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    resolutionNote: "<resolutionNote>",
  }),
});

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

const body: ResolveDiscrepancyRequest = {
  resolutionNote: "<resolutionNote>",
};

const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/reconciliation/discrepancies/<discrepancyId>/resolve", {
  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/reconciliation/discrepancies/<discrepancyId>/resolve",
    headers={
        "Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
    },
    json={
        "resolutionNote": "<resolutionNote>",
    },
    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.