Skip to content

Developers

Build on REM Payments

A REST API, signed webhooks, a Python server SDK, React screens and an MCP server for AI agents. The full developer docs live in REM Blogs.

Developer documentation

API and tokens

  • REST API at /api/, with an OpenAPI reference at /api/docs.
  • API tokens belong to an organization and carry scopes: read, write, finance, admin. Shown once, stored hashed.
  • Publishable keys let your pricing page read an app’s public catalogue without a secret.

Webhooks

  • Outbound events such as checkout.completed, payment.captured, payment.refunded, subscription.renewed, subscription.past_due, invoice.paid, plan.price_scheduled, entitlements.changed and credits.granted.
  • Signed with your endpoint’s secret; verify with the SDK’s verify_webhook.
  • Retried until your endpoint answers with success; every delivery is listed and can be replayed.

SDKs

  • Python: rem_payments — connect, PaymentsClient, CreditsClient (balance, hold, settle, release, usage), verify_webhook and a webhook processor that keeps plan state.
  • React: @rem/payments-react — PricingTable, PlanCard, BalanceCard, UsageTable and invoice views.

MCP server for agents

Everything the dashboard can do is also an MCP tool, so an AI agent can run REM Payments with an API token, limited to that token's scopes and organization.