# Regoria merchant API

> The merchant API of Regoria: products and plans, hosted checkout and orders, customers and the portal, charges, refunds and payment methods, subscriptions, balance and payouts, disputes, webhook endpoints and your account. Amounts are integer cents in USD. Every call takes your API key as the bearer token. Live base URL https://api.staging.regoria.com, sandbox https://api.sandbox.staging.regoria.com.

Everything in one file: http://docs.staging.regoria.com/llms-full.txt

MCP server (search_docs, get_guide, get_operation, get_event, list_operations): http://docs.staging.regoria.com/mcp/docs

## Guides

- [Getting started](http://docs.staging.regoria.com/guides/getting-started.md): A test key, your first call, a product and a hosted checkout in ten minutes.
- [Authentication and API keys](http://docs.staging.regoria.com/guides/authentication.md): Bearer keys, test and live modes, scopes, store-bound keys, rotation and revocation.
- [Test mode and the sandbox](http://docs.staging.regoria.com/guides/test-mode.md): What the sandbox is, what differs from live, and how to exercise every flow without moving money.
- [Idempotency](http://docs.staging.regoria.com/guides/idempotency.md): The Idempotency-Key header on operations that create money state, what a replay returns, and the conflicts.
- [Pagination, sorting and filtering](http://docs.staging.regoria.com/guides/pagination.md): Numbered pages, X-Total-Count and Link, the sort parameter, key[] filters and date ranges in your time zone.
- [Errors](http://docs.staging.regoria.com/guides/errors.md): The errors[] shape, the stable keys and their statuses, Retry-After, and the correlation id to quote to support.
- [Webhooks](http://docs.staging.regoria.com/guides/webhooks.md): Endpoints, the signed envelope and how to verify it, retries and backoff, replay, disabling and the event catalogue.
- [Hosted checkout end to end](http://docs.staging.regoria.com/guides/hosted-checkout.md): Open a session, send the buyer, receive order.paid, fulfil the order; plus saved cards and server-side orders.
- [Subscriptions](http://docs.staging.regoria.com/guides/subscriptions.md): Recurring prices, how a subscription starts, renewals and past due, plan changes with buyer confirmation, pause and resume, cancellation, and merchant-managed billing.
- [Refunds and disputes](http://docs.staging.regoria.com/guides/refunds-and-disputes.md): Partial and full refunds, approval holds, how a refund settles against your balance; chargebacks and retrievals, evidence and fees.
- [Customers and the portal](http://docs.staging.regoria.com/guides/customers-and-portal.md): Your customer_ref as the key, the customer record, saved cards, and one-time links into the hosted customer portal.
- [Balance and payouts](http://docs.staging.regoria.com/guides/balance-and-payouts.md): How a sale becomes balance, the reserve, monthly payouts, balance transactions and payout reconciliation.
- [Versioning and deprecation](http://docs.staging.regoria.com/guides/versioning.md): The /v1 path, what counts as an additive change, the Deprecation and Sunset headers and the 90-day rule, the changelog and the spec fingerprint.
- [Rate limits](http://docs.staging.regoria.com/guides/rate-limits.md): Requests per minute per key, the RateLimit-* headers, the 429 answer and how to back off.
- [Security and PCI scope](http://docs.staging.regoria.com/guides/security.md): Card data never reaches you, what you may store, keys and webhook secrets, TLS, and what to do if a secret leaks.
- [Build with AI](http://docs.staging.regoria.com/guides/build-with-ai.md): Point a coding agent at these docs: the MCP server, llms.txt, a CLAUDE.md snippet with the rules, and three prompts that work.
- [Changelog](http://docs.staging.regoria.com/guides/changelog.md): Every change to the merchant API, newest first, with the spec fingerprint it published.

## Reference

- [OpenAPI 3.1 document](http://docs.staging.regoria.com/openapi.json): every /v1 operation with schemas, examples, scopes and code samples
- [Interactive reference](http://docs.staging.regoria.com/reference)
- [Postman collection](http://docs.staging.regoria.com/downloads/postman.json)

## Events

- [Event catalogue](http://docs.staging.regoria.com/events.md)
- [charge.declined](http://docs.staging.regoria.com/events/charge.declined.md): A card charge was declined.
- [checkout.abandoned](http://docs.staging.regoria.com/events/checkout.abandoned.md): A checkout session expired without a payment.
- [checkout.completed](http://docs.staging.regoria.com/events/checkout.completed.md): A checkout session was paid: its session, order, subscription and customer together.
- [dispute.closed](http://docs.staging.regoria.com/events/dispute.closed.md): A dispute closed, won or lost.
- [dispute.opened](http://docs.staging.regoria.com/events/dispute.opened.md): A chargeback or retrieval was opened against a charge.
- [order.access_revoked](http://docs.staging.regoria.com/events/order.access_revoked.md): Access to a paid order was revoked (refund or dispute).
- [order.in_review](http://docs.staging.regoria.com/events/order.in_review.md): An order was held for review before fulfilment.
- [order.paid](http://docs.staging.regoria.com/events/order.paid.md): An order was paid: the charge captured and the order is yours to fulfil.
- [order.review_closed](http://docs.staging.regoria.com/events/order.review_closed.md): A review on an order closed, approved or rejected.
- [payment_method.created](http://docs.staging.regoria.com/events/payment_method.created.md): A card was saved for a customer.
- [payment_method.updated](http://docs.staging.regoria.com/events/payment_method.updated.md): A saved card was updated (expiry or account updater).
- [payout.sent](http://docs.staging.regoria.com/events/payout.sent.md): A payout was sent to your bank account.
- [refund.issued](http://docs.staging.regoria.com/events/refund.issued.md): A refund was issued on a charge.
- [subscription.cancelled](http://docs.staging.regoria.com/events/subscription.cancelled.md): A subscription was canceled.
- [subscription.past_due](http://docs.staging.regoria.com/events/subscription.past_due.md): A renewal failed and the subscription is past due.
- [subscription.pause_cancelled](http://docs.staging.regoria.com/events/subscription.pause_cancelled.md): A scheduled pause was cleared before it took effect; the subscription keeps renewing.
- [subscription.pause_scheduled](http://docs.staging.regoria.com/events/subscription.pause_scheduled.md): A pause was scheduled for the end of the current period, by the buyer or by you.
- [subscription.paused](http://docs.staging.regoria.com/events/subscription.paused.md): A subscription was paused.
- [subscription.payment_method_changed](http://docs.staging.regoria.com/events/subscription.payment_method_changed.md): The card a subscription renews on changed.
- [subscription.plan_change_scheduled](http://docs.staging.regoria.com/events/subscription.plan_change_scheduled.md): A plan change was scheduled for the next period.
- [subscription.plan_changed](http://docs.staging.regoria.com/events/subscription.plan_changed.md): A subscription moved to another plan.
- [subscription.renewed](http://docs.staging.regoria.com/events/subscription.renewed.md): A subscription renewed for a new period.
- [subscription.resumed](http://docs.staging.regoria.com/events/subscription.resumed.md): A paused subscription was resumed and charged for a new period.
- [subscription.started](http://docs.staging.regoria.com/events/subscription.started.md): A subscription started and its first period was paid.
- [subscription.trial_ending](http://docs.staging.regoria.com/events/subscription.trial_ending.md): A trial ends within your trial-ending lead days; sent with the buyer's reminder email.
- [subscription.updated](http://docs.staging.regoria.com/events/subscription.updated.md): A subscription changed status, plan, price, card or cancellation; the full subscription.
- [Event payloads as JSON Schema](http://docs.staging.regoria.com/downloads/events.schema.json)
