---
title: "Create Purchase Session"
method: POST
path: "/payments/purchases/purchase-session"
tags: ["Payments"]
---

# Create Purchase Session

`POST /payments/purchases/purchase-session`

Creates a purchase session for completing a purchase.

## Request body

- object
  - `full_code` string, required — The verification code, given as a query parameter in the purchase URL
  - `price_id` string, required — The Hexclave price ID to purchase
  - `quantity` integer — The quantity to purchase

## Response `200`

Successful response

- object
  - `client_secret` string — Stripe client secret used by the browser to confirm payment or setup via Stripe Elements. Omitted when no confirmation step is required from the customer.
  - `stripe_intent_type` 'payment' | 'setup' — Whether client_secret is a PaymentIntent (immediate charge) or SetupIntent (e.g. free trial card collection). Omitted when client_secret is omitted.

---

[API](https://skmtc.net/hexclave/apis/hexclave-rest-api-2.md) · [All operations](https://skmtc.net/hexclave/apis/hexclave-rest-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hexclave/hexclave-rest-api-2/versions/1c982df54232/schema)
