---
title: "Get Checkout Session Status"
method: GET
path: "/v1/billing/checkout/{session_id}/status"
tags: ["Billing"]
---

# Get Checkout Session Status

`GET /v1/billing/checkout/{session_id}/status`

## Request

- Base URL: `https://api.robosystems.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.robosystems.ai/v1/billing/checkout/{session_id}/status`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Poll after returning from Stripe Checkout. Status progresses: pending_payment → provisioning → active. When active, resource_id is populated. `operation_id` is always null for webhook-driven provisioning and cannot be used to follow progress — poll this endpoint instead.

## Path parameters

- `session_id` string, required

## Response `200`

Successful Response

- CheckoutStatusResponse: Status of a checkout session.
  - `status` string, required: Checkout status: 'pending_payment', 'provisioning', 'active', 'failed', 'canceled'
  - `subscription_id` string, required: Internal subscription ID
  - `resource_id` string, nullable: Resource ID (graph_id for both graphs and repositories) once provisioned. For repositories, this is the repository slug (e.g., 'sec')
  - `operation_id` string, nullable: Always null. Webhook-driven provisioning passes no operation id (`_trigger_resource_provisioning` calls `run_graph_provisioning` with `operation_id=None`), so there is no SSE stream to follow — poll the status endpoint instead. Retained rather than removed because it is on a published response shape; wiring it is a feature, not a fix.
  - `error` string, nullable: Error message if checkout failed

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: Access denied
- `404`: Resource not found
- `422`: Validation Error
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/robosystems/apis/robosystems-api.md) · [All operations](https://skmtc.dev/robosystems/apis/robosystems-api/llms.txt) · [OpenAPI document](https://skmtc.dev/robosystems/apis/robosystems-api/revisions/e661e2d5ca6a?raw)
