Skip to content
Meem Payment

API reference · Integration

Recovery

Decline recovery in hosted checkout: the customer chooses another card or eligible method after a conclusive decline.

Evaluate recovery

POST/api/v1/checkout/sessions/{token}/recovery

IntegrationPublic

Evaluate whether recovery is offered after a decline (hosted page).

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

Guide

Path parameters

  • tokenstringrequired

Headers

  • 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

curl -X POST "https://api.sandbox.meem-dev.example/api/v1/checkout/sessions/<token>/recovery"
using System.Net.Http.Headers;

using var http = new HttpClient();

using var request = new HttpRequestMessage(HttpMethod.Post, "https://api.sandbox.meem-dev.example/api/v1/checkout/sessions/<token>/recovery");

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/checkout/sessions/<token>/recovery", {
  method: "POST",
});

console.log(res.status, await res.text());
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/checkout/sessions/<token>/recovery", {
  method: "POST",
});

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

response = requests.post(
    "https://api.sandbox.meem-dev.example/api/v1/checkout/sessions/<token>/recovery",
    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

Read a recovery session

GET/api/v1/checkout/recovery/{token}

IntegrationPublic

Read a recovery session and its alternatives (hosted page).

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

Guide

Path parameters

  • tokenstringrequired

Headers

  • 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

curl "https://api.sandbox.meem-dev.example/api/v1/checkout/recovery/<token>"
using System.Net.Http.Headers;

using var http = new HttpClient();

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

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/checkout/recovery/<token>", {
  method: "GET",
});

console.log(res.status, await res.text());
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/checkout/recovery/<token>", {
  method: "GET",
});

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

response = requests.get(
    "https://api.sandbox.meem-dev.example/api/v1/checkout/recovery/<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

Select a recovery alternative

POST/api/v1/checkout/recovery/{token}/select

IntegrationPublic

Select the customer's chosen recovery alternative (hosted page).

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

Guide

Path parameters

  • tokenstringrequired

Headers

  • Content-Typestringrequired
  • X-Correlation-Idstringoptional

Request bodyapplication/json · RecoverySelectRequest

  • optionstringnullable
  • attemptinteger (int32)

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
  • 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/checkout/recovery/<token>/select" \
  -H "Content-Type: application/json" \
  -d '{
    "option": "<option>",
    "attempt": 1
  }'
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/checkout/recovery/<token>/select")
{
    Content = JsonContent.Create(new
    {
        option = "<option>",
        attempt = 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/checkout/recovery/<token>/select", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    option: "<option>",
    attempt: 1,
  }),
});

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

const body: RecoverySelectRequest = {
  option: "<option>",
  attempt: 1,
};

const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/checkout/recovery/<token>/select", {
  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/checkout/recovery/<token>/select",
    json={
        "option": "<option>",
        "attempt": 1,
    },
    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

List recovery sessions

GET/api/v1/recovery-sessions

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

  • merchantIdstring (uuid)optional
  • fromstring (date-time)optional
  • tostring (date-time)optional
  • takeinteger (int32)optional

    Default: 200

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

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