---
title: "Enable or disable email pack auto-recharge"
method: PATCH
path: "/orgs/v1/{org_id}/billing/auto-recharge"
tags: ["Billing"]
---

# Enable or disable email pack auto-recharge

`PATCH /orgs/v1/{org_id}/billing/auto-recharge`

## Request

- Base URL: `https://api.run402.com`
- URL: `https://api.run402.com/orgs/v1/{org_id}/billing/auto-recharge`
- Auth: one of:
  - API key in header `SIGN-IN-WITH-X`
  - API key in header `x-admin-key`

When enabled, the platform automatically repurchases a $5 email pack when email_credits_remaining drops below the threshold. Threshold must be a non-negative safe integer. Unknown organizations return 404. Requires a saved Stripe payment method, admin key, or an org role of billing or higher. 3 consecutive failures automatically disable auto-recharge.

## Path parameters

- `org_id` string, uuid, required

## Request body

- object
  - `enabled` boolean, required
  - `threshold` integer

## Response `200`

Auto-recharge updated

- AutoRechargeResponse
  - `status` 'ok', required
  - `org_id` string, required
  - `enabled` boolean, required
  - `threshold` integer, nullable, required

## Other responses

- `400`: Invalid threshold or request body
- `401`: Missing or invalid auth
- `403`: Billing role required
- `404`: Organization not found
- `410`: Organization is not active

---

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