# 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 call resolves to the answer, already parsed. A call the API refuses throws `OpenSendError` with the code and the message of the answer. [SDK](https://opensend.sh/docs/sdk) lists the errors of the client itself.

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

## Example

TypeScript:

```ts
await opensend.billing.portal()
```

CLI:

```bash
opensend billing portal
```

Answer:

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