Skip to content

Get a checkout

GET/checkout/{uuid}

Overview

Returns a checkout's purchase details, itemised total, payment options and next payment step. enabled is false if payments are unavailable. Checkouts belonging to another account return 404.

Permissions

Requires the billing.purchase (Make purchases) permission for the selected team. Resources outside that team return 404.

curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/checkout/{uuid}' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
{
  "uuid": "53a832f9-e85e-44b5-af03-2ef26110686d",
  "uuid_short": "Uuid short",
  "status": "awaiting_gateway",
  "status_label": "Waiting for payment",
  "progress_message": "Opening the payment form…",
  "last_error_code": null,
  "description": "Account credit · 25.00 USD",
  "line_items": [
    {
      "label": "Account credit",
      "amount": "25.00 USD"
    },
    {
      "label": "Added to your balance once the payment clears",
      "amount": null
    }
  ],
  "amount": "25.00",
  "currency": "USD",
  "total_display": "25.00 USD",
  "option": "stripe_once",
  "options": [
    {
      "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
    }
  ],
  "merchant_of_record": false,
  "notes": null,
  "promo_code": null,
  "redirect_url": null,
  "stripe": {
    "publishable_key": "Publishable key",
    "client_secret": "Client secret"
  },
  "return_path": "/billing",
  "expires_at": "2026-09-14T17:12:09+00:00",
  "settled_at": null,
  "created_at": "2026-09-14T16:42:09+00:00",
  "is_live": true,
  "can_choose": false,
  "is_settling": false,
  "paypal_account": "Paypal account",
  "payment_card": "Payment card",
  "enabled": true
}

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>.

Path parameters

uuidstringrequired

The uuid ID.

Response 200

application/json

The record, as a JSON object. There is no envelope.

enabledbooleanrequired

Whether the panel is taking payments at all.

uuidstringrequired

The uuid UUID.

uuid_shortstringrequired

The value of uuid_short.

statusstringrequired

The value of status.

One of: draft, awaiting_gateway, charging, recording, paid, expired, cancelled

status_labelstringrequired

The status in the customer's words, written once on the enum.

progress_messagestring | nullrequired

The value of progress_message.

last_error_codestring | nullrequired

The value of last_error_code.

descriptionstringrequired

What is being bought, or the invoice number when no name is available.

line_itemsobject[]required

The value of line_items.

Show child attributes
labelstringrequired

A short label shown to customers.

amountstring | nullrequired

The amount in the currency shown by currency.

amountstringrequired

The decimal string the row holds. Money is never a float here: this is the figure the customer is about to be charged.

currencystringrequired

The three-letter currency code used for monetary amounts.

total_displaystringrequired

The amount and its currency, rendered ready to print.

optionstring | nullrequired

The value of option.

One of: stripe_once, stripe_subscription, stripe_checkout, paypal_once, paypal_subscription, btcpay_once, nowpayments_once, null

optionsobject[]required

The value of options.

Show child attributes
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.

merchant_of_recordbooleanrequired

Whether the payment provider was the seller of record, shown as small print. Only older checkouts were.

notesstring | nullrequired

Optional notes about the request.

promo_codestring | nullrequired

The value of promo_code.

redirect_urlstring | nullrequired

Where to send the customer, if anywhere.

stripeobject | nullrequired

Set while the attempt charges a saved card, which the page confirms.

Show child attributes
publishable_keystringrequired

Stripe's publishable key, which is public by design.

client_secretstringrequired

Only confirms this one charge, on the account's own card.

return_pathstring | nullrequired

The value of return_path.

expires_atstring | nullrequired

When this action or checkout expires, in UTC.

settled_atstring | nullrequired

The date and time for settled at, in UTC.

created_atstring | nullrequired

The date and time for created at, in UTC.

is_livebooleanrequired

Whether the checkout can still accept another payment attempt.

can_choosebooleanrequired

Whether the customer can choose.

is_settlingbooleanrequired

Whether the resource is settling.

paypal_accountstring | nullrequired

The saved PayPal account this attempt charges, by its uuid.

payment_cardstring | nullrequired

The saved card this attempt charges, by its uuid.

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.
404
The resource was not found in the selected team. Resources in another account or team also return 404.
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.