# The Composable SaaS CheckoutOS.

Faster payments. Fewer rebuilds. Bolt gives SaaS companies REST APIs for checkout, payments and subscriptions, authenticated with your X-API-Key and X-Publishable-Key headers.

- Sandbox and Production Keys
- REST API + TypeScript SDK
- Native Subscriptions

[Explore CheckoutOS](https://www.boltapp.com/developers/checkout-os) [Read Subscriptions API Docs](https://help.boltapp.com/api-reference/guides/subscriptions/)

server.ts

REST API:

server.ts

```
// Server only: your API key never reaches the browser
const res = await fetch('https://api-sandbox.boltapp.com/v1/merchant/orders', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-API-Key': process.env.BOLT_API_KEY,
    // Also required when your division uses Bolt Subscriptions
    'X-Publishable-Key': process.env.BOLT_PUBLISHABLE_KEY,
  },
  body: JSON.stringify({
    channel: 'browser',
    cart: {
      order_reference: 'order_1001',
      currency: 'USD',
      total_amount: 4900, // minor units: $49.00
      items: [
        {
          reference: 'pro_plan',
          name: 'Pro plan',
          sku: 'PRO-PLAN',
          unit_price: 4900,
          quantity: 1,
          total_amount: 4900,
        },
      ],
    },
  }),
});
const { token } = await res.json(); // pass only the token to the browser
```

Example requests, not a runnable sandbox. No API request is sent from this page. Use production base URL https://api.boltapp.com with production keys.

Billing, Decoupled and Scalable

## Enterprise Infrastructure

Flexible SaaS billing that works with any processor.

### Complex Billing, Handled.

Free trials, coupons and discounts, proration, and usage-based and metered billing. Bolt Subscriptions works with any processor.

MonthlyAnnually

```
POST /v1/usage_events
GET  /v1/subscriptions
```

### Tax, Through Integrations.

Bolt works with your tax provider through tax integrations, so tax shows up in checkout and on itemized invoices.

- Tax integration
- Itemized invoice

### Fewer Failed Renewals.

Failed-payment retries and renewal reminders help keep subscribers billing. Webhooks tell your backend when a renewal succeeds or a payment fails.

1.  Charge failed
2.  Scheduled retry
3.  Charge succeededWebhook: subscription\_renewed

The MRR Multiplier

## The Lifecycle of a SaaS Customer

Illustration only: billing without and with failed-payment retries and renewal reminders. Not customer data.

- Failed payments

    Retries + reminders

- Implementation time

    Typically a few days to a few weeks

- Traditional Setup
- Bolt CheckoutOS

Ecosystem & SDK Delivery

## Developer-ready from the first line of code.

A REST API with a TypeScript SDK, docs and webhooks. From other languages, call the REST API with your X-API-Key and X-Publishable-Key headers.

---

This is the markdown version of https://www.boltapp.com/developers/saas
