---
title: "Create Stripe Checkout Session"
method: POST
path: "/stripe/checkout"
---

# Create Stripe Checkout Session

`POST /stripe/checkout`

Create a Stripe Checkout Session for purchasing credits with Isometric verification.
This endpoint returns a Stripe Checkout URL to redirect the user to for completing the payment.

## Headers

- `x-client-secret` string, required — A secret token identifying the client connecting to the API

## Request body

- CreateStripeCheckoutSessionRequest
  - `quantity_kg` integer, required — The quantity of credits to purchase, in kilograms. This field can handle bigint values.
  - `frequency` 'one_time' | 'monthly' | 'yearly', required
  - `isometric_terms_and_conditions_accepted` boolean, required — Whether the user has accepted the Isometric terms and conditions; the request will fail if this is not set to true
  - `supplier_terms_and_conditions_accepted` boolean, required — Whether the user has accepted the supplier terms and conditions; the request will fail if this is not set to true
  - `customer_email` string, nullable — The email of the customer to prefill the checkout session with. If not provided, the customer will be prompted to enter their email during checkout.
  - `success_url` string, required — The URL to redirect customer to after a successful payment
  - `cancel_url` string, required — The URL to redirect customer to after a cancelled or failed payment

## Response `200`

Successful Response

- StripeCheckoutResponse
  - `redirect_url` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/isometric/apis/isometric-registry-api.md) · [All operations](https://skmtc.net/isometric/apis/isometric-registry-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/isometric/isometric-registry-api/revisions/2e31eeb1cb99/schema)
