# List payment options

`GET https://console.advinservers.com/api/v1/client/checkout/options`

### Overview

Lists payment options available at checkout. Call this before creating a purchase so the customer can choose how to pay. Send `renews=true` when the first invoice amount is also the recurring renewal amount. This includes automatic renewal options, which are otherwise omitted.

### Permissions

Requires the account permission `billing.purchase` (Make purchases).

## Authorization

Send `Authorization: Bearer <token>` with the request. Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.

## Query parameters

- `renews` (boolean): The value of `renews`. Defaults to `false`.

## Response 200

The whole set, as a JSON array. There is no envelope and no paging.

- `value` (string, required): The enum's own value, which is what a start request sends back.
- `label` (string, required): A short label shown to customers.
- `shortLabel` (string, required): What the picker prints once a choice has been made, where the full label is too long to sit on a button.
- `description` (string, required): An optional description shown to customers.
- `provider` (string, required): The value of `provider`.
- `providerName` (string, required): The value of `provider_name`.
- `recurring` (boolean, required): Whether choosing this hands the provider a standing schedule rather than taking one payment. Only ever offered where this invoice's amount is what falls due each cycle.

```json
[
  {
    "value": "stripe_once",
    "label": "Credit Card (one-time payment)",
    "shortLabel": "Credit Card",
    "description": "Pay once with a saved card or a new one. Nothing renews by itself.",
    "provider": "stripe",
    "providerName": "Stripe",
    "recurring": false
  },
  {
    "value": "btcpay_once",
    "label": "Cryptocurrency (one-time payment)",
    "shortLabel": "BTCPay",
    "description": "Pay once in Bitcoin or another supported coin. Confirmations can take a few minutes.",
    "provider": "btcpay",
    "providerName": "BTCPay Server",
    "recurring": false
  }
]
```

## Errors

- `401`: The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- `403`: Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- `429`: Too many requests. The `Retry-After` header says how many seconds to wait. Limits are per account, so several keys on one account share them.

## Example request

```bash
curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/checkout/options' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
```
