# SleetPay - [SleetPay documentation](https://docs.sleetpay.com/index.md): Accept payments, run subscriptions, meter usage and ship licenses. SleetPay is the Merchant of Record, so tax, refunds and chargebacks are ours. - [Getting started](https://docs.sleetpay.com/getting-started.md): Take a payment and react to it in about ten minutes. - [Set up SleetPay with an AI agent](https://docs.sleetpay.com/guides/agents.md): Let a coding agent wire SleetPay into your app as its payment method. You only do the dashboard-only steps. - [Authentication](https://docs.sleetpay.com/guides/authentication.md): API keys, scopes, OAuth tokens and customer session tokens. - [Going live](https://docs.sleetpay.com/guides/going-live.md): A checklist to run before you take real money. - [Accept a payment](https://docs.sleetpay.com/guides/checkout.md): Create hosted checkouts, sell in several currencies, seats and pay-what-you-want. - [Customers and entitlements](https://docs.sleetpay.com/guides/customers.md): Read everything a customer owns in one call and stay in sync with webhooks. - [Subscriptions](https://docs.sleetpay.com/guides/subscriptions.md): Lifecycle, pause and resume, cancellation, plan changes and the events to listen for. - [Usage-based billing](https://docs.sleetpay.com/guides/usage.md): Meter usage with events, bill per unit or from prepaid credits. - [Seats](https://docs.sleetpay.com/guides/seats.md): Per-seat billing, assigning seats to people and checking access. - [License keys](https://docs.sleetpay.com/guides/license-keys.md): Activate and validate license keys from your own software. - [Customer portal](https://docs.sleetpay.com/guides/portal.md): Let customers manage their own billing, signed in from your app. - [Webhooks](https://docs.sleetpay.com/guides/webhooks.md): Signed deliveries, retries, replay and the full event catalog. - [OAuth apps](https://docs.sleetpay.com/guides/oauth.md): Act on other merchants' accounts with OAuth 2.0 and PKCE. - [Errors, limits and pagination](https://docs.sleetpay.com/guides/errors.md): Status codes, idempotency, pagination and the OpenAPI spec. - [TypeScript SDK](https://docs.sleetpay.com/sdks/typescript.md): @sleetpay/sdk: a typed, dependency-free client for Node, Bun, Deno and the edge. - [Python SDK](https://docs.sleetpay.com/sdks/python.md): sleetpay: a dependency-free Python client. - [Next.js adapter](https://docs.sleetpay.com/sdks/nextjs.md): @sleetpay/nextjs: route handlers for checkout, the billing portal, entitlements and verified webhooks. - [Better Auth plugin](https://docs.sleetpay.com/sdks/better-auth.md): @sleetpay/better-auth: checkout, billing portal, entitlements and webhooks keyed to your signed-in users. - [MCP server](https://docs.sleetpay.com/sdks/mcp.md): Let an AI assistant look up customers, orders and subscriptions. - [API reference](https://docs.sleetpay.com/api-reference/introduction.md): Base URL, authentication and conventions for the SleetPay API. - [Create a checkout](https://docs.sleetpay.com/api-reference/checkouts/create-a-checkout.md): Returns a hosted checkout `url`; redirect the buyer there. After payment they land on `success_url?checkout_id=`. Sessions expire after 24 hours. - [Get a checkout](https://docs.sleetpay.com/api-reference/checkouts/get-a-checkout.md) - [List products](https://docs.sleetpay.com/api-reference/products/list-products.md) - [List customers](https://docs.sleetpay.com/api-reference/customers/list-customers.md) - [Create a customer](https://docs.sleetpay.com/api-reference/customers/create-a-customer.md) - [Get a customer](https://docs.sleetpay.com/api-reference/customers/get-a-customer.md) - [Get a customer's entitlements](https://docs.sleetpay.com/api-reference/customers/get-a-customers-entitlements.md): Active and past-due subscriptions, granted benefits, credit balances and metered usage in one read. - [Get a customer by your own user id](https://docs.sleetpay.com/api-reference/customers/get-a-customer-by-your-own-user-id.md) - [Get entitlements by your own user id](https://docs.sleetpay.com/api-reference/customers/get-entitlements-by-your-own-user-id.md) - [List orders](https://docs.sleetpay.com/api-reference/orders/list-orders.md) - [List subscriptions](https://docs.sleetpay.com/api-reference/subscriptions/list-subscriptions.md) - [Get a subscription](https://docs.sleetpay.com/api-reference/subscriptions/get-a-subscription.md) - [Cancel at period end, resume, pause, or change seats](https://docs.sleetpay.com/api-reference/subscriptions/cancel-at-period-end-resume-pause-or-change-seats.md) - [Revoke a subscription now](https://docs.sleetpay.com/api-reference/subscriptions/revoke-a-subscription-now.md) - [List seats](https://docs.sleetpay.com/api-reference/seats/list-seats.md): Pass `subscription_id`, `order_id` or `email`. By email it returns every seat that person holds on a live subscription or paid order. - [Assign a seat](https://docs.sleetpay.com/api-reference/seats/assign-a-seat.md): Idempotent per email. 409 when every paid seat is taken. - [Revoke a seat](https://docs.sleetpay.com/api-reference/seats/revoke-a-seat.md) - [List license keys](https://docs.sleetpay.com/api-reference/license-keys/list-license-keys.md) - [Validate a license key](https://docs.sleetpay.com/api-reference/license-keys/validate-a-license-key.md): Public: call it from your customers' software. `organization_id` plus the secret `key` are the credentials. - [Activate a license key](https://docs.sleetpay.com/api-reference/license-keys/activate-a-license-key.md): Idempotent per `label`. 403 once the activation limit is reached or the key is revoked or expired. - [Deactivate a license key](https://docs.sleetpay.com/api-reference/license-keys/deactivate-a-license-key.md) - [Ingest usage events](https://docs.sleetpay.com/api-reference/usage/ingest-usage-events.md): Send one event or `{ events: [...] }` (1 to 500). Safe to retry: the `idempotencyKey` never double-counts. 402 when a prepaid customer has too few credits. - [List meters](https://docs.sleetpay.com/api-reference/usage/list-meters.md) - [Get a customer's credit balances](https://docs.sleetpay.com/api-reference/credits/get-a-customers-credit-balances.md) - [Transfer credits between customers](https://docs.sleetpay.com/api-reference/credits/transfer-credits-between-customers.md): Atomic, never overdraws (402 with `available`), safe to retry with the same `idempotency_key`. - [Create a customer portal session](https://docs.sleetpay.com/api-reference/customer-sessions/create-a-customer-portal-session.md): Pass exactly one of `customer_id`, `external_customer_id`, `customer_email`. Send the customer to `customer_portal_url`. ## OpenAPI Specs - [openapi](/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.