---
title: "Buy the editor (monthly, yearly or perpetual) with Stripe Checkout; redirect the user to `url`"
method: POST
path: "/editor/subscribe"
tags: ["Dashboard"]
---

# Buy the editor (monthly, yearly or perpetual) with Stripe Checkout; redirect the user to \`url\`

`POST /editor/subscribe`

## Request

- Base URL: `https://api.eu.doconda.com/v1`
- URL: `https://api.eu.doconda.com/v1/editor/subscribe`
- Auth: HTTP bearer

## Request body

- object
  - `plan` 'monthly' | 'yearly' | 'perpetual': monthly: charged every month. yearly: charged once a year. perpetual: one payment, the licence never expires.

## Response `200`

Checkout created.

- object
  - `url` string, uri, required

## Other responses

- `401`: unauthorized (missing, unknown or revoked key; expired session).
- `403`: session_required: dashboard only.
- `409`: editor_already_active
- `501`: billing_not_configured

---

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