---
title: "Recharge User Account"
method: POST
path: "/admin/recharge"
tags: ["Admin", "Admin"]
---

# Recharge User Account

`POST /admin/recharge`

Recharge a user's account with validation (admin only)

Validates that:
- amount/0.2 = quota
- gift_quota = quota (equal bonus) only if amount ≥ 5.00, otherwise gift_quota should be 0
- If the user doesn't exist, creates a new user
- Updates total_recharge by adding the amount

## Request body

- RechargeRequest
  - `email` string, email, required
  - `name` string, nullable
  - `amount` number, required
  - `quota` integer, required
  - `gift_quota` integer

## Response `200`

Successful Response

- RechargeResponse
  - `user_id` integer, required
  - `email` string, required
  - `name` string, nullable
  - `total_quota` integer, required
  - `used_quota` integer, required
  - `gift_quota` integer
  - `total_recharge` number
  - `remaining_quota` integer
  - `payment_amount` number, required
  - `added_quota` integer, required
  - `added_gift_quota` integer, required
  - `api_key` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/deepshare/apis/markdown-to-docx-converter.md) · [All operations](https://skmtc.dev/deepshare/apis/markdown-to-docx-converter/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/deepshare/markdown-to-docx-converter/revisions/3c4ed7b0427a/schema)
