cURL
curl --request GET \ --url https://api.videodb.io/billing/checkouts \ --header 'x-access-token: <api-key>'
{ "success": true, "data": [ { "id": "cs_test_xxx", "amount": 100, "currency": "usd", "status": "completed", "created_at": "2023-11-07T05:31:56Z" } ] }
Retrieve a list of all checkout sessions and their status
import requests response = requests.get( "https://api.videodb.io/billing/checkouts", headers={"x-access-token": "your_api_key"} ) checkouts = response.json() for checkout in checkouts.get('checkouts', []): print(f"Checkout ID: {checkout.get('id')}") print(f"Amount: ${checkout.get('amount')}") print(f"Status: {checkout.get('status')}") print(f"Created: {checkout.get('created_at')}") print("---")
API key for authentication (sk-xxx format)
10
0
Checkout history
true
Show child attributes