---
title: "Configure balance-floor auto-recharge (opt in/out)"
method: POST
path: "/v1/billing/auto-topup"
---

# Configure balance-floor auto-recharge (opt in/out)

`POST /v1/billing/auto-topup`

## Request

- Base URL: `https://framefetch.net`
- URL: `https://framefetch.net/v1/billing/auto-topup`
- Auth: HTTP bearer

Opt in/out of an automatic off-session card recharge once the balance drops below a threshold. Enabling requires threshold_micros (integer, >= 10,000 micros / $0.01) and amount_micros (must equal one of the pack amounts: 5000000, 21000000, 112000000) and a Stripe customer with a saved card from a prior POST /v1/checkout — 409 PAYMENT_REQUIRED if no card is on file. Disabling only needs { "enabled": false }. At most one recharge fires per drop below the threshold; a declined card disables auto-topup and notifies the account by email.

## Request body

- object
  - `enabled` boolean, required
  - `threshold_micros` integer: Recharge when the balance drops below this many micro-USD. Required to enable.
  - `amount_micros` 5000000 | 21000000 | 112000000: Credit to add per recharge; must match a credit-pack amount. Required to enable.

## Response `200`

Current auto-topup config

- object
  - `auto_topup` object
    - `enabled` boolean
    - `threshold_micros` integer
    - `amount_micros` integer

## Other responses

- `400`: Error envelope
- `401`: Error envelope
- `409`: Error envelope

---

[API](https://skmtc.dev/framefetch/apis/framefetch-api.md) · [All operations](https://skmtc.dev/framefetch/apis/framefetch-api/llms.txt) · [OpenAPI document](https://skmtc.dev/framefetch/apis/framefetch-api/revisions/5584e8eb9bf5?raw)
