---
title: "POST /api/v1/billing/credit-purchases"
method: POST
path: "/api/v1/billing/credit-purchases"
tags: ["billing"]
---

# POST /api/v1/billing/credit-purchases

`POST /api/v1/billing/credit-purchases`

## Request

- Base URL: `https://api.clerkchat.co` (the document declares no server; this is the origin it was published from)
- URL: `https://api.clerkchat.co/api/v1/billing/credit-purchases`
- Auth: none required

## Request body

- object
  - `amountDollars` integer, required

## Response `200`

BillingCreditPurchase

- BillingCreditPurchaseEncoded
  - `id` string, required
  - `amountDollars` union, required
    - number
    - 'Infinity' | '-Infinity' | 'NaN'
  - `credits` union, required
    - number
    - 'Infinity' | '-Infinity' | 'NaN'
  - `status` 'pending' | 'completed' | 'failed' | 'refunded', required
  - `createdAt` union, required
    - number
    - 'Infinity' | '-Infinity' | 'NaN'
  - `completedAt` union, required
    - number
    - 'Infinity' | '-Infinity' | 'NaN'

## Other responses

- `400`: BadRequest
- `401`: Unauthorized
- `403`: Forbidden
- `503`: PersistenceUnavailable

---

[API](https://skmtc.dev/clerkchat/apis/clerk-chat-api.md) · [All operations](https://skmtc.dev/clerkchat/apis/clerk-chat-api/llms.txt) · [OpenAPI document](https://skmtc.dev/clerkchat/apis/clerk-chat-api/revisions/cc318e39e1d0?raw)
