Skip to content

List payment options

GET/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).

curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/checkout/options' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/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
  }
]

Authorization

Authorizationstringheaderrequired

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.

Send it as Bearer <token>.

Query parameters

renewsbooleandefault: false

The value of renews.

Response 200

application/json

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

valuestringrequired

The enum's own value, which is what a start request sends back.

labelstringrequired

A short label shown to customers.

shortLabelstringrequired

What the picker prints once a choice has been made, where the full label is too long to sit on a button.

descriptionstringrequired

An optional description shown to customers.

providerstringrequired

The value of provider.

providerNamestringrequired

The value of provider_name.

recurringbooleanrequired

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.

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.