---
title: "Create a plan subscription Checkout"
method: POST
path: "/billing/subscription/checkout"
tags: ["billing"]
---

# Create a plan subscription Checkout

`POST /billing/subscription/checkout`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/billing/subscription/checkout`
- Auth: HTTP bearer

## Headers

- `idempotency-key` string, required

## Request body

- object
  - `plan_id` string, required

## Response `200`

Stripe Checkout URL

- object
  - `success` boolean, required
  - `id` string, required
  - `url` string, required

## Other responses

- `409`: Subscription request conflict or already subscribed
- `503`: Subscriptions unavailable

---

[API](https://skmtc.dev/mailly/apis/mailly-api.md) · [All operations](https://skmtc.dev/mailly/apis/mailly-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mailly/apis/mailly-api/revisions/1ceb29637301?raw)
