---
title: "Create the Stripe payment intent for a checkout"
method: POST
path: "/create-intent/{checkoutId}"
tags: ["Checkout"]
---

# Create the Stripe payment intent for a checkout

`POST /create-intent/{checkoutId}`

## Request

- Base URL: `https://ps.shoppable.com`
- URL: `https://ps.shoppable.com/create-intent/{checkoutId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/shoppable/apis/shoppable-checkout-api/docs/create-intent/:checkoutId/post.ts> (a function with typed inputs; its response is checked against the schema)

Returns the `clientSecret`; confirm payment client-side with Stripe.js.

## Path parameters

- `checkoutId` string, required

## Headers

- `Idempotency-Key` string

## Request body

- object

## Response `200`

Payment intent

- object
  - `clientSecret` string

## Other responses

- `401`: Session token expired or invalid

---

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