Subscription Plans
Endpoints for creating, updating, deleting recurring-billing plans and attaching one or many plans to a product. When a shopper visits Checkout for a product, every attached plan is shown alongside the one-time price.
All endpoints require:
Authorization: Bearer <merchant_api_token>
Content-Type: application/json
Idempotency-Key
on mutating calls
Customer-level subscription lifecycle (pause, cancel, etc.) is managed in the merchant dashboard and is not part of this public API.
Create Plan
Body
Success 201
List Plans
Optional query: status=ACTIVE|ARCHIVED
.
Retrieve a Plan
Update Plan
Send only the fields you’re changing.
Archive Plan
Returns 204 No Content. Archiving blocks new checkouts but leaves existing subscribers intact.
Attach Plan(s) to a Product
Attach one or many plans in a single call.
Body
Success 200
Detach Plan(s) from a Product
Remove one or more plans without affecting the rest.
Body
Success 200
Plan Status Values
Status | Meaning |
---|---|
ACTIVE | Plan is available for new sign-ups |
ARCHIVED | Hidden from checkout; active subscribers unaffected |