---
title: "Create Credit Checkout"
method: POST
path: "/billing/credits/checkout"
tags: ["internal"]
---

# Create Credit Checkout

`POST /billing/credits/checkout`

## Request

- Base URL: `https://api.companydata.dk` (the document declares no server; this is the origin it was published from)
- URL: `https://api.companydata.dk/billing/credits/checkout`
- Auth: HTTP bearer

Create a Stripe checkout session for a one-time credit pack purchase.

## Request body

- CreditCheckoutRequest: Request to create credit pack checkout session.
  - `ga_client_id` string, nullable: GA4 client id from the _ga cookie (analytics attribution)
  - `ga_session_id` string, nullable: GA4 session id from the _ga_<container> cookie (session attribution)
  - `pack_id` string, required: Credit pack ID (pack_5000, pack_25000, pack_100000)
  - `success_url` string, nullable
  - `cancel_url` string, nullable

## Response `200`

Successful Response

- CreditCheckoutResponse: Response with credit pack checkout URL.
  - `checkout_url` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/companydata/apis/companydata-dk-api.md) · [All operations](https://skmtc.dev/companydata/apis/companydata-dk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/companydata/apis/companydata-dk-api/revisions/1cc6c361ae64?raw)
