RevKeen Docs
Api reference

Retrieve a checkout session

Retrieve a checkout session by its ID.


Related endpoints

  • POST /checkout-sessions — Create a checkout session
  • POST /checkout-sessions/{id}/expire — Expire a checkout session

Common errors

  • 401 unauthenticated — missing, malformed, or revoked API key.
  • 404 resource_missing — the referenced resource does not exist or is not visible to your key.
GET
/checkout-sessions/{id}
x-api-key<token>

Your RevKeen API key (powered by Unkey). Get it from Dashboard > Settings > API Keys. Use rk_sandbox_* for test mode and rk_live_* for production.

In: header

Path Parameters

id*string
Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl "https://api.revkeen.com/v2/checkout-sessions/550e8400-e29b-41d4-a716-446655440000" \  -H "x-api-key: $REVKEEN_API_KEY"
{
  "data": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "object": "checkout_session",
    "status": "string",
    "mode": "string",
    "amount_total": 0,
    "currency": "string",
    "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
    "payment_intent_id": "7e322e88-5311-4979-b283-b9a687137f41",
    "invoice_id": "f4c4edb8-11e0-4b33-bcc1-482dc59ebb32",
    "subscription_id": "aa11a4c2-a467-43db-b413-c4ab0f5cf627",
    "url": "string",
    "success_url": "string",
    "cancel_url": "string",
    "expires_at": "string",
    "created_at": "string",
    "allowed_methods": [
      "card",
      "in_store"
    ],
    "selected_method": null
  },
  "requestId": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}