Extend user subscription
marzban_users_extendRenew a Marzban user by adding relative duration or data to their current expiration and limit, reactivating expired or limited accounts.
Instructions
Renews a user: adds addDuration to their current expiration (or to now, if they have none or it already passed) and/or addData on top of their current data limit. If the user was expired or limited, status is moved back to active. Use this instead of marzban_users_update for renewals — it reads the current expire/limit first so the increment is relative, not an absolute overwrite.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| addData | No | Extra data allowance to add on top of the current limit, e.g. "10GB". | |
| username | Yes | ||
| addDuration | No | Relative duration to add to the current expiration, e.g. "30d". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| user | Yes |