---
search:
  tags:
    - Billing
    - POST
seo:
  description: >-
    Starts a Stripe Checkout session that puts a card on file for the plan…
    Reference for the POST /_luna/orgs/{org}/billing/checkout endpoint in the
    Luna API.
sidebar:
  label: Start a checkout
  badge: POST
title: Start a checkout
type: openapi-operation
---
Starts a Stripe Checkout session that puts a card on file for the plan the organisation is on, and returns the URL to send the browser to. The card pays for usage, and for the plan's fee when it has one. It answers 409 when the cluster does not bill through Stripe or the organisation already pays through Stripe.

`POST /_luna/orgs/{org}/billing/checkout`

**Request body** (`application/json`, required)

- `successUrl` (string, required) — The \`http\` or \`https\` URL to return to once payment is set up.
- `cancelUrl` (string, required) — The \`http\` or \`https\` URL to return to when the person backs out.

Request body example:

```json
{
  "successUrl": "string",
  "cancelUrl": "string"
}
```

**Responses**

- `200` — The Stripe Checkout page.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "url": "string"
}
```
