Get a checkout session
curl --request GET \
--url https://api.wakapay.cash/checkout-sessions/{id}import requests
url = "https://api.wakapay.cash/checkout-sessions/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.wakapay.cash/checkout-sessions/{id}', 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://api.wakapay.cash/checkout-sessions/{id}",
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://api.wakapay.cash/checkout-sessions/{id}"
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://api.wakapay.cash/checkout-sessions/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wakapay.cash/checkout-sessions/{id}")
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{
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "waiting_payment",
"source": "API",
"from_payment_link": true,
"anonymous": true,
"requires_payer_identity": true,
"identity_options": [
"<string>"
],
"product_payment_link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total_amount_crypto": "8.33333333",
"crypto_currency": "USDT",
"crypto_options": [
{
"ticker": "USDT",
"id": "tether",
"unit_price_fiat": "600.00000000",
"amount": "8.33333333"
}
],
"fiat_currency": "XAF",
"total_amount_fiat": "5000.00000000",
"wallet_address": "<string>",
"supported_networks": [
"<string>"
],
"expires_at": "2023-11-07T05:31:56Z",
"overpaid": true,
"bound_tx_hash": "<string>",
"payer_wallet_address": "<string>",
"chain_id": "<string>",
"user": {
"id": "<string>",
"email": "<string>",
"telegram_id": "<string>",
"username": "<string>"
}
}{
"statusCode": 401,
"message": "Missing X-Wakapay-Key, X-Wakapay-Timestamp, or X-Wakapay-Signature",
"error": "Unauthorized"
}Checkout
Get a checkout session
Returns the full checkout session used by hosted checkout (amounts, wallet, crypto options, payer fields). No merchant API key required.
GET
/
checkout-sessions
/
{id}
Get a checkout session
curl --request GET \
--url https://api.wakapay.cash/checkout-sessions/{id}import requests
url = "https://api.wakapay.cash/checkout-sessions/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.wakapay.cash/checkout-sessions/{id}', 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://api.wakapay.cash/checkout-sessions/{id}",
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://api.wakapay.cash/checkout-sessions/{id}"
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://api.wakapay.cash/checkout-sessions/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wakapay.cash/checkout-sessions/{id}")
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{
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "waiting_payment",
"source": "API",
"from_payment_link": true,
"anonymous": true,
"requires_payer_identity": true,
"identity_options": [
"<string>"
],
"product_payment_link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total_amount_crypto": "8.33333333",
"crypto_currency": "USDT",
"crypto_options": [
{
"ticker": "USDT",
"id": "tether",
"unit_price_fiat": "600.00000000",
"amount": "8.33333333"
}
],
"fiat_currency": "XAF",
"total_amount_fiat": "5000.00000000",
"wallet_address": "<string>",
"supported_networks": [
"<string>"
],
"expires_at": "2023-11-07T05:31:56Z",
"overpaid": true,
"bound_tx_hash": "<string>",
"payer_wallet_address": "<string>",
"chain_id": "<string>",
"user": {
"id": "<string>",
"email": "<string>",
"telegram_id": "<string>",
"username": "<string>"
}
}{
"statusCode": 401,
"message": "Missing X-Wakapay-Key, X-Wakapay-Timestamp, or X-Wakapay-Signature",
"error": "Unauthorized"
}Path Parameters
Checkout session UUID.
Example:
"550e8400-e29b-41d4-a716-446655440000"
Response
Checkout session details.
Available options:
pending, waiting_payment, partial, paid, expired, failed Example:
"waiting_payment"
Example:
"API"
Example:
"8.33333333"
Example:
"USDT"
Show child attributes
Show child attributes
Example:
"XAF"
Example:
"5000.00000000"
Merchant receiving wallet.
Show child attributes
Show child attributes