Path Parameters
string
required
The unique identifier of the checkout session to retrieve.
Response
A successful request returns HTTP200 OK with the full checkout session object.
object
The requested checkout session.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
GET /api/v1/checkout-sessions/:checkoutSessionId — retrieves a checkout session by ID including payment plan, service, subscriptions, and user details.
GET https://api.retempo.xyz/api/v1/checkout-sessions/:checkoutSessionId
200 OK with the full checkout session object.
Show checkoutSession fields
null if not set.PENDING, PAID, EXPIRED, or CANCELLED.null if not set.id, name, and status.id, name, amount, and currency.userId was associated, otherwise null.PENDING.{
"checkoutSession": {
"id": "clz1checkout789",
"serviceId": "clz1abc2def3ghi4",
"paymentPlanId": "clz1plan567",
"userId": null,
"status": "PENDING",
"expiresAt": "2025-06-02T10:00:00.000Z",
"createdAt": "2025-06-01T10:10:00.000Z",
"service": {
"id": "clz1abc2def3ghi4",
"name": "DataStream Pro",
"status": "ACTIVE"
},
"paymentPlan": {
"id": "clz1plan567",
"name": "Pro Monthly",
"amount": "49.000000",
"currency": "USDC"
},
"user": null,
"subscriptions": []
}
}
curl https://api.retempo.xyz/api/v1/checkout-sessions/clz1checkout789
| Status | Message | Condition |
|---|---|---|
404 Not Found | Checkout session was not found. | No session exists for the provided ID. |
subscriptions array in the response — a non-empty list means payment was completed and a subscription is active.