# Refresh Vendor Users

`PATCH https://api.torbox.app/v1/api/vendors/refresh`

- Operation ID: `refresh_vendor_users`
- Group: Vendors
- Auth: API key, `Authorization: Bearer <api key>` (Sign in with TorBox gives the same key)

### Overview

Refreshes every user that is owned by your vendor account. Each user's plan is set to your vendor account's `plan`, and each user's `premium_expires_at` is set to your vendor account's `paid_until`. Your vendor account's `current_users` is then recounted from the users it owns.

Your vendor account must be active: approved (its status is no longer "pending"), on a paid plan (its `plan` is not 0) and with a `paid_until` date that has not passed. Otherwise the request is rejected and no user is changed.

This endpoint takes no parameters and returns no data.

### Authorization

Requires an API key using the Authorization Bearer Header. Works with an API key from any plan, including the free plan.

## Responses

- `200` Successful Response
- `401` Unauthorized
- `403` Forbidden
- `404` Not Found
- `429` Too Many Requests
- `500` Internal Server Error
- `503` Service Unavailable
