The full, maintained walkthrough is the Subscriptions integration guide, and every endpoint is listed in the Subscriptions API reference. This page summarizes the steps.
1. Get your keys
- Log in to the sandbox Merchant Dashboard for sandbox keys, or the Bolt Merchant Dashboard for production keys.
- Go to Administration > API.
- Copy the API key and the Publishable key.
Every Subscriptions endpoint needs both keys, sent as the X-API-Key and X-Publishable-Key headers. If either is missing or invalid, the request returns 401. Use https://api-sandbox.boltapp.com while testing and https://api.boltapp.com in production.
2. Create a product and its plans
Create a product and its plans in one call. The product sets the price (unit_price, in cents); each plan sets a billing frequency, and plans take no unit_price. New products start as draft, which shoppers can’t buy, so pass "status": "active" or activate the product in the dashboard.
curl --request POST 'https://api-sandbox.boltapp.com/v1/subscriptions/products' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'X-Publishable-Key: YOUR_PUBLISHABLE_KEY' \
--data '{
"name": "Bolt+ Membership",
"sku": "BOLTPLUS",
"unit_price": 999,
"status": "active",
"plans": [
{ "sku": "BOLTPLUS-MONTH", "name": "Bolt+ monthly", "frequency": 1, "frequency_unit": "month" },
{ "sku": "BOLTPLUS-YEAR", "name": "Bolt+ yearly", "frequency": 1, "frequency_unit": "year" }
]
}'
POST /v2/subscriptions/products also creates a product and its plans in one call, with a product object and per-plan trial, initial_period, and currency. Products created with either version are the same products. On Bolt Cart, manage a plan’s trial and promotions with the plan trial and promotion endpoints.
3. Sell with checkout links
The response returns a Bolt-hosted checkout_link for each plan of a product created with a SKU. Place the link wherever shoppers subscribe. When the checkout completes, Bolt creates the subscription and emails the shopper a confirmation.
If you run your own checkout instead, set subscription_plan_id to the plan’s ID on the cart item.
4. Manage subscriptions
| Task | Endpoint |
|---|---|
| List subscriptions | GET /v1/subscriptions |
| Get a subscription | GET /v1/subscriptions/{subscriptionId} |
| Get a subscription’s orders | GET /v1/subscriptions/{subscriptionId}/orders |
| Pause or unpause | POST /v1/subscriptions/{subscriptionId}/pause, /unpause |
Cancel now, or at period end on Bolt Cart ("at_period_end": true) |
POST /v1/subscriptions/{subscriptionId}/cancel |
| Revoke a scheduled cancellation | POST /v1/subscriptions/{subscriptionId}/revoke_cancellation |
| Revoke a scheduled plan change | POST /v1/subscriptions/{subscriptionId}/revoke_plan_change |
| Read or change payment recovery settings | GET, PUT /v1/subscriptions/dunning_settings |
On Bolt Cart, a subscription with an unpaid renewal invoice can’t be unpaused or canceled until the invoice is paid; the request returns 422.
5. Report usage (usage-based plans)
Send metered consumption with POST /v1/usage_events, using both keys. See report usage events.
6. Handle webhooks
Bolt sends a webhook for each subscription event: subscription_created, subscription_renewed, subscription_canceled, subscription_paused, subscription_unpaused, subscription_payment_failed, subscription_ended, and subscription_usage_alert. See the webhooks guide.