---
title: "Start a credit pack purchase"
method: POST
path: "/billing/credit_packs/checkout/"
tags: ["billing"]
---

# Start a credit pack purchase

`POST /billing/credit_packs/checkout/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/billing/credit_packs/checkout/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Start a one-time credit pack purchase via Stripe Checkout. Only available on paid plans; the amount must be within the configured minimum and the remaining monthly purchase limit.

## Request body

- CreditPackCheckoutRequestSchema: Request schema for starting a one-time credit pack purchase.
  - `cancel_path` string, required: Partial path (e.g. /billing) of where the stripe Checkout session should redirect the user if payment is cancelled.
  - `credits` integer, required: The number of credits to purchase.
  - `success_path` string, required: Partial path (e.g. /billing) of where the stripe Checkout session should redirect the user if payment is successful.

## Response `200`

Successful Response

- CreditPackCheckoutResponseSchema: Response schema for a started credit pack purchase.
  - `checkout_url` string, uri, required: The URL to redirect the customer to complete the payment.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: Invalid credit pack purchase request
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/4a6bd71e3f02?raw)
