# Start checkout

`billing_checkout`

Answers with the address of a checkout page for a plan, paid by the month or by the year. The plan changes once it is paid.

Needs the scope: `workspace:write`

## Arguments

- `planId` (string, required): The plan to buy: `pro` or `max`. One of: `free`, `pro`, `max`.
- `interval` (string): Pay by the `month` or by the `year`. By the month when left out. One of: `month`, `year`.

## Returns

The answer comes back under `structuredContent`, with the same JSON as text in `content`. A call the API refuses comes back with `isError` set, and the code and the message under `structuredContent.error`. [MCP](https://opensend.sh/docs/mcp) shows how to connect a client.

- `object` ("checkout"): Always `checkout`.
- `url` (string): The address of the page to send the person to.

## Example

MCP:

```json
{
  "name": "billing_checkout",
  "arguments": {
    "planId": "pro"
  }
}
```

Answer, under structuredContent:

```json
{
  "object": "checkout",
  "url": "https://pay.example.com/checkout/pro"
}
```
