cURL
curl --request GET \
--url https://app.example.com/v1/public/finance/bookings/<bookingId>/payment-optionsconst response = await fetch("https://app.example.com/v1/public/finance/bookings/<bookingId>/payment-options", {
method: "GET",
});
const data = await response.json();import requests
response = requests.get(
"https://app.example.com/v1/public/finance/bookings/<bookingId>/payment-options"
)
data = response.json()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{operatorDomain}/v1/public/finance/bookings/{bookingId}/payment-options",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://{operatorDomain}/v1/public/finance/bookings/{bookingId}/payment-options"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{operatorDomain}/v1/public/finance/bookings/{bookingId}/payment-options")
.asString();require 'uri'
require 'net/http'
url = URI("https://{operatorDomain}/v1/public/finance/bookings/{bookingId}/payment-options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"kind": "deposit",
"amountCents": 30000,
"currency": "EUR",
"label": "Pay deposit",
"scheduleId": "<string>",
"guaranteeId": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>",
"details": {}
}Customer portal
Get a booking's payment options
List the payment options offered for a booking (full, deposit, schedule installment, guarantee). Requires the checkout payment:read capability.
GET
/
v1
/
public
/
finance
/
bookings
/
{bookingId}
/
payment-options
cURL
curl --request GET \
--url https://app.example.com/v1/public/finance/bookings/<bookingId>/payment-optionsconst response = await fetch("https://app.example.com/v1/public/finance/bookings/<bookingId>/payment-options", {
method: "GET",
});
const data = await response.json();import requests
response = requests.get(
"https://app.example.com/v1/public/finance/bookings/<bookingId>/payment-options"
)
data = response.json()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{operatorDomain}/v1/public/finance/bookings/{bookingId}/payment-options",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://{operatorDomain}/v1/public/finance/bookings/{bookingId}/payment-options"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{operatorDomain}/v1/public/finance/bookings/{bookingId}/payment-options")
.asString();require 'uri'
require 'net/http'
url = URI("https://{operatorDomain}/v1/public/finance/bookings/{bookingId}/payment-options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"kind": "deposit",
"amountCents": 30000,
"currency": "EUR",
"label": "Pay deposit",
"scheduleId": "<string>",
"guaranteeId": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>",
"details": {}
}⌘I