Skip to content
Meem Payment

Reference

API reference

The Meem Payment REST API lives under /api/v1. Endpoints are generated from the OpenAPI document the platform publishes, grouped by resource, with request examples in cURL, C#, JavaScript, TypeScript and Python. Meem publishes no SDKs, so every example is a plain HTTP call.

Snapshot:
3 December 2026 · main@87ab8e8
OpenAPI
Payment Orchestration API v1 · OpenAPI 3.0.1
endpoints
201 endpoints · 37 for merchant integrations

Base URLs

Sandbox and production are separate environments with separate credentials, and they never fall back to each other. The hosts below are placeholders; your real hosts are provided at onboarding.

Base URLs
EnvironmentBase URL
Sandboxhttps://api.sandbox.meem-dev.example/api/v1
Productionhttps://api.meem-dev.example/api/v1

Authentication

Integrations authenticate with the OAuth 2.0 client credentials grant. Send your client id and secret to POST /api/v1/auth/token as a form, as JSON, or with HTTP Basic, and receive a short-lived, merchant-scoped bearer token.

Send the token on every call as Authorization: Bearer <access_token>. Cache it and reuse it until shortly before expires_in. Repeated failures lock the client out.

Endpoints marked Public are called by the hosted checkout page or the customer's browser and take no token. Console users sign in with a password and a TOTP code instead; integrations should not use those endpoints.

curl -X POST "https://api.sandbox.meem-dev.example/api/v1/auth/token" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "grant_type=client_credentials" \
  --data-urlencode "client_id=$MEEM_CLIENT_ID" \
  --data-urlencode "client_secret=$MEEM_CLIENT_SECRET"
{
  "access_token": "<jwt>",
  "token_type": "Bearer",
  "expires_in": 900,
  "scope": "payments.authorize payments.capture payments.void payments.refund payments.read checkout_sessions.manage payment_links.read payment_links.manage webhooks.read webhooks.manage"
}

Authentication guide

Request headers

Request headers
HeaderWhenPurpose
AuthorizationEvery non-public endpointBearer <access_token> from POST /api/v1/auth/token.
Content-TypeRequests with a bodyapplication/json.
Idempotency-KeyPOST /api/v1/payments, /{id}/capture, /{id}/void, /{id}/refundA fresh UUID per logical operation. Scoped per merchant and endpoint. A replay returns the original response; 409 while the first request is in flight; the same key with a different body returns 422 IDEMPOTENCY_KEY_REUSED. Guide
X-Correlation-IdAny request (optional)Any value you can search for. Echoed in the X-Correlation-Id response header and correlationId, passed to gateway calls and included in webhooks as correlation_id. Generated when omitted. Guide
X-Merchant-ContextParent merchants acting for a sub-account (optional)The sub-account's merchant id. Verified server-side; it can only narrow access. Otherwise 403 merchant_context.forbidden. Guide

Errors and status codes

The HTTP status tells you the kind of outcome and the code field tells you which one. Branch on codes, never on messages. Payment operations return a PaymentResponse; field validation returns ValidationProblemDetails with a code extension when there's a machine-readable reason.

Errors and status codes
StatusMeaning
200OK
201Created
202Accepted
400Malformed request
401Missing, expired or invalid token or credentials
402Declined by the issuer or PSP, or blocked by a risk rule
403Authenticated but not allowed (permission or merchant context)
404Unknown resource, or one that belongs to another merchant
409Conflict: idempotency key in flight, or not allowed in the current status
410Expired checkout session or unavailable payment link
422Validation or business rule (ValidationProblemDetails with code)
429Rate limit exceeded; wait for Retry-After
501Hosted fields outside the sandbox
502No gateway could process the payment

Errors guide with every result code

Rate limits

A global limit applies per user or IP, with a stricter limit on the authentication endpoints and account lockouts after repeated failures. Over the limit you get 429: wait for Retry-After, then retry.

Versioning

The API version is part of the path: every endpoint lives under /api/v1, and the OpenAPI document declares version v1.

The platform documents its API with Swagger (Swashbuckle) at /swagger. This reference is generated from a snapshot of that document, taken on the date shown above.

Resources

Merchant integration

What a merchant backend, the hosted checkout page and the customer's browser call.

Console and back office

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

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.