---
title: "PATCH /api/v1/billing/auto-charge"
method: PATCH
path: "/api/v1/billing/auto-charge"
tags: ["billing"]
---

# PATCH /api/v1/billing/auto-charge

`PATCH /api/v1/billing/auto-charge`

## 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/auto-charge`
- Auth: none required

## Request body

- union
  - object
    - `enabled` false, required
  - object
    - `enabled` true, required
    - `amountDollars` integer, required
    - `spendingCapDollars` integer, required

## Response `200`

BillingCreditAutoChargeSettings

- BillingCreditAutoChargeSettingsEncoded
  - `enabled` boolean, required
  - `amountDollars` union, required
    - number
    - 'Infinity' | '-Infinity' | 'NaN'
  - `spendingCapDollars` union, required
    - number
    - 'Infinity' | '-Infinity' | 'NaN'
  - `updatedAt` 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)
