---
title: "Checkout Status"
method: GET
path: "/api/billing/checkout/{session_id}"
tags: ["billing"]
---

# Checkout Status

`GET /api/billing/checkout/{session_id}`

## Request

- Base URL: `https://api.heymetra.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.heymetra.com/api/billing/checkout/{session_id}`
- Auth: none declared

What became of a checkout this workspace opened.

A failed first payment never reaches the workspace (no subscription is
stored, so no event moves it), so the session is the only place it can be
read. A session another workspace opened, or one older than a day, is not
found.

## Path parameters

- `session_id` string, required

## Headers

- `authorization` string, nullable
- `x-workspace-id` string, nullable

## Response `200`

Successful Response

- CheckoutStatusOut
  - `session_id` string, required
  - `payment_status` string, nullable, required
  - `access_active` boolean, required
  - `subscription_status` string, required
  - `plan` string, required
  - `trial_ends_at` string, date-time, nullable, required
  - `current_period_end` string, date-time, nullable, required

## Other responses

- `422`: Validation Error

---

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