---
search:
  tags:
    - Billing
    - POST
seo:
  description: >-
    Moves an organisation to another plan. The change takes effect at once and…
    Reference for the POST /_luna/orgs/{org}/billing/plan endpoint in the Luna
    API.
sidebar:
  label: Choose a plan
  badge: POST
title: Choose a plan
type: openapi-operation
---
Moves an organisation to another plan. The change takes effect at once and the answer has `plan`, or the plan needs a card first and the answer has the `url` of a Stripe Checkout page.

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

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

- `plan` (string, required) — The plan's name.
- `successUrl` (string, required) — The \`http\` or \`https\` URL to return to after Stripe Checkout, when the plan needs one.
- `cancelUrl` (string, required) — The \`http\` or \`https\` URL to return to when the person backs out of Stripe Checkout.

Request body example:

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

**Responses**

- `200` — The plan now in effect, or where to pay for it.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

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