---
title: "Create a Stripe Checkout link"
method: POST
path: "/customers/{id}/checkout-sessions"
---

# Create a Stripe Checkout link

`POST /customers/{id}/checkout-sessions`

## Request

- Base URL: `https://api.instalent.io/api/v1`
- URL: `https://api.instalent.io/api/v1/customers/{id}/checkout-sessions`
- Auth: HTTP bearer

Returns a Checkout URL on our Stripe account for the plan chosen. Redirect the customer there; the return URLs must be on a domain allowed for your integration.

## Path parameters

- `id` string, required

## Request body

- object
  - `priceId` string, required
  - `successUrl` string, uri
  - `cancelUrl` string, uri

## Response `200`

Replayed: a pending session for this plan already exists and is returned unchanged.

- object
  - `id` string
  - `url` string, nullable
  - `expiresAt` string
  - `replayed` boolean

## Other responses

- `201`: OK
- `4XX`: Error

---

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