curl --request GET \
--url https://console.advinservers.com/api/v1/client/checkout/options \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.advinservers.com/api/v1/client/checkout/options"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.advinservers.com/api/v1/client/checkout/options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://console.advinservers.com/api/v1/client/checkout/options",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://console.advinservers.com/api/v1/client/checkout/options"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://console.advinservers.com/api/v1/client/checkout/options")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/checkout/options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"value": "paddle_once",
"label": "Credit Card or PayPal",
"shortLabel": "Credit Card or PayPal",
"description": "Pay once by card, PayPal or wallet. Nothing is stored and nothing renews by itself.",
"provider": "paddle",
"providerName": "Paddle",
"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
}
]{
"message": "Unauthenticated."
}{
"message": "This API key is not allowed to do that in this team. It needs the \"snapshot.delete\" permission."
}{
"message": "Too Many Attempts."
}List payment 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>'import requests
url = "https://console.advinservers.com/api/v1/client/checkout/options"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.advinservers.com/api/v1/client/checkout/options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://console.advinservers.com/api/v1/client/checkout/options",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://console.advinservers.com/api/v1/client/checkout/options"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://console.advinservers.com/api/v1/client/checkout/options")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/checkout/options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"value": "paddle_once",
"label": "Credit Card or PayPal",
"shortLabel": "Credit Card or PayPal",
"description": "Pay once by card, PayPal or wallet. Nothing is stored and nothing renews by itself.",
"provider": "paddle",
"providerName": "Paddle",
"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
}
]{
"message": "Unauthenticated."
}{
"message": "This API key is not allowed to do that in this team. It needs the \"snapshot.delete\" permission."
}{
"message": "Too Many Attempts."
}Authorizations
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
The value of renews.
true
Response
The whole set, as a JSON array. There is no envelope and no paging.
The enum's own value, which is what a start request sends back.
"paddle_once"
A short label shown to customers.
"Credit Card or PayPal"
What the picker prints once a choice has been made, where the full label is too long to sit on a button.
"Credit Card or PayPal"
An optional description shown to customers.
"Pay once by card, PayPal or wallet. Nothing is stored and nothing renews by itself."
The value of provider.
"paddle"
The value of provider_name.
"Paddle"
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.
false
[
{
"value": "paddle_once",
"label": "Credit Card or PayPal",
"shortLabel": "Credit Card or PayPal",
"description": "Pay once by card, PayPal or wallet. Nothing is stored and nothing renews by itself.",
"provider": "paddle",
"providerName": "Paddle",
"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
}
]
[
{
"value": "paddle_once",
"label": "Credit Card or PayPal",
"shortLabel": "Credit Card or PayPal",
"description": "Pay once by card, PayPal or wallet. Nothing is stored and nothing renews by itself.",
"provider": "paddle",
"providerName": "Paddle",
"recurring": false
}
]