---
title: "Update auto-refill billing preferences"
method: PATCH
path: "/user/billing-config"
tags: ["Account"]
---

# Update auto-refill billing preferences

`PATCH /user/billing-config`

## Request

- Base URL: `https://riskmodels.app/api`
- URL: `https://riskmodels.app/api/user/billing-config`
- Auth: HTTP bearer

Partial update of `auto_top_up`, `auto_top_up_amount` (must be 20, 50, or 100), and/or `auto_top_up_threshold` (USD, 5–50). Requires a saved payment method to enable auto-refill.

## Request body

- object
  - `auto_top_up` boolean
  - `auto_top_up_amount` 20 | 50 | 100
  - `auto_top_up_threshold` number

## Response `200`

Updated fields.

- object
  - `success` boolean
  - `auto_top_up` boolean
  - `auto_top_up_amount` number
  - `auto_top_up_threshold` number

## Other responses

- `400`: Validation or missing payment method.
- `401`: Unauthorized.
- `500`: Server error.

---

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