---
title: "Purchase Credits"
method: POST
path: "/api/billing/credits/purchase"
---

# Purchase Credits

`POST /api/billing/credits/purchase`

Create a Stripe Checkout session for a one-time credit purchase.

## Request body

- CreditPurchaseRequest — Request schema for purchasing credits
  - `amountCents` integer, required
  - `successUrl` string, required
  - `cancelUrl` string, required
  - `eventId` string, nullable
  - `fbc` string, nullable
  - `fbp` string, nullable

## Response `200`

Successful Response

- CreditPurchaseResponse — Response schema for credit purchase checkout session
  - `success` boolean
  - `checkoutUrl` string, required
  - `checkoutSessionId` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/latted/apis/motion-graphics-designer-api.md) · [All operations](https://skmtc.dev/latted/apis/motion-graphics-designer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/latted/motion-graphics-designer-api/revisions/36d149b525df/schema)
