---
title: "Create Stripe Checkout session for credit pack purchase"
method: POST
path: "/v1/billing/buy-credits"
tags: ["Billing"]
---

# Create Stripe Checkout session for credit pack purchase

`POST /v1/billing/buy-credits`

## Request

- Base URL: `https://api.sprixen.com`
- URL: `https://api.sprixen.com/v1/billing/buy-credits`
- Auth: `bearer` (a scheme the document does not define)

## Request body

- BuyCreditsDto
  - `pack` '50' | '150' | '200' | '500', required: Credit pack size: 50, 150, 200, or 500
  - `successUrl` string: URL to redirect after successful payment
  - `cancelUrl` string: URL to redirect if checkout is cancelled

## Response `201`

Checkout URL returned

---

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