Developer portal
Build on Meem Payment
One REST API in front of your payment providers. Authenticate with client credentials, create payments or hosted checkout sessions, and let your routing workflows pick the provider. Every sample on these pages is raw HTTP you can run against the sandbox.
Start here
- Getting startedFrom API credentials to a first sandbox payment, status check and webhook in about fifteen minutes.
- AuthenticationOAuth 2.0 client credentials at
POST /api/v1/auth/token, returning a short-lived, merchant-scoped bearer token. - Payments APIAuthorize, purchase, capture, void and refund through one contract, whichever provider the workflow selects.
- Hosted checkoutCreate a session server-side, redirect the customer, and read the result on return. Card data never touches your server.
- WebhooksHMAC-SHA256 signed payment events with retries, a failed-delivery queue and manual replay.
- API referenceEvery endpoint, parameter and request schema, generated from the platform's OpenAPI document.
Two ways to integrate
| Aspect | Hosted checkout (recommended) | Direct Payments API |
|---|---|---|
| Card data | Collected on the Meem-hosted page; never reaches your server. | You send a card token server-to-server. |
| How | POST /api/v1/checkout/sessions → redirect to checkoutUrl → read paymentId and status on return. | POST /api/v1/payments with cardToken. |
| Recovery | Available: after a conclusive decline the customer can choose another card or method. | Not covered: server-to-server payments don't get the recovery page. |
| After payment | Same lifecycle (capture, void, refund, status) and the same webhooks. | Same lifecycle and webhooks. |
Payment links sit on top of hosted checkout: a link opens a checkout session for the customer. See Payment links.
Key concepts
| Concept | What it means for your integration |
|---|---|
| Merchant and sub-account | Your API credentials belong to one merchant. Every request is scoped to it; another merchant's resources return 404. A parent merchant can act for its own sub-account with X-Merchant-Context. |
| Gateway account | Your contract with a PSP, stored per merchant and per environment (Sandbox or Production) with its own credentials. Meem never moves funds; your PSP does. |
| Workflow | A published routing graph that picks the gateway account and the failover plan for each payment. You can name one with workflowId or let triggers resolve it. See Workflow selection. |
| Payment and attempts | A payment has one lifecycle status and one or more gateway attempts (failover creates a new attempt, never a second charge while an outcome is unknown). |
| Environment | Sandbox and Production never fall back to each other. A payment runs only on accounts of its environment. |
Raw HTTP, no SDKs (yet)
Meem doesn't publish client libraries or native mobile SDKs today. The API is plain JSON over HTTPS, so every example uses what you already have: cURL, C# HttpClient, fetch in JavaScript and TypeScript, and Python requests.
- Available
REST API under
/api/v1with an OpenAPI (Swagger) document - Available
Hosted checkout and payment links (EN/AR, RTL)
- Sandbox
Hosted fields (card iframes on your own page)
Sandbox only today; production card capture needs PSP tokenization.
- Planned
Client libraries and native mobile SDKs
Sandbox first
The sandbox runs the real orchestration engine against two built-in mock gateways, Mock 1 and Mock 2. Test card numbers drive approvals, declines, timeouts, failover and 3-D Secure, so you can exercise every branch before connecting a PSP. See Sandbox and testing.
Build a reliable integration
- IdempotencyRetry money movements safely with
Idempotency-Key. - Errors and status codes200, 402, 409, 422, 404 and 502, and the codes that come with them.
- Workflow selectionHow a payment finds its routing workflow, and how to pin one.
- End-to-end examplesComplete flows: checkout, authorize-capture, refunds and failover tests.
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.