# Open billing portal

`opensend billing portal`

Answers with the address of the page where the card, the plan and past invoices are managed.

Needs the scope: `workspace:write`

## Returns

The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. [Output and scripts](https://opensend.sh/docs/scripting) lists the codes.

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

## Example

CLI:

```bash
opensend billing portal
```

Answer:

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