---
title: "Turn automatic top-up on or off"
method: PUT
path: "/v1/billing/auto-recharge"
tags: ["Billing"]
---

# Turn automatic top-up on or off

`PUT /v1/billing/auto-recharge`

## Request

- Base URL: `https://ratchetgate.com`
- URL: `https://ratchetgate.com/v1/billing/auto-recharge`
- Auth: HTTP bearer

When enabled, credit is bought automatically once the balance falls below threshold_micros. Requires a card already on file — this endpoint never collects card details. Capped at a small number of charges a day whatever the settings say, so a runaway loop drains an allowance rather than a card.

## Request body

- object
  - `enabled` boolean, required
  - `threshold_micros` integer
  - `pack_id` 'pack_25' | 'pack_100' | 'pack_500'

## Response `200`

Default Response

- object

## Other responses

- `400`: Invalid request.
- `401`: Missing or invalid API key.
- `402`: Insufficient prepaid credit.
- `403`: Scope, policy, or budget refusal.
- `404`: Not found.
- `409`: Conflicting state or idempotency-key reuse.
- `413`: Payload too large.
- `429`: Rate limit exceeded.

---

[API](https://skmtc.dev/ratchetgate/apis/ratchet-api.md) · [All operations](https://skmtc.dev/ratchetgate/apis/ratchet-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ratchetgate/apis/ratchet-api/revisions/5712f33c692f?raw)
