Update a plan

This endpoint allows you to update a users plan. You must pass the sub-user ID and the plan ID.

You are able to update the amount of GB that the user has as well as the end_date of the plan. end_date is a UNIX timestamp.

You cannot make the value of GB lower than the amount of GB that the user has already used. For example, if the user has a 5GB plan, and has used 2GB, you cannot make the new value lower than 2GB.

We issue refunds for any unused data. You will also be charged more if you add more data to a plan.

The expiration date will not be extended, it will remain the same.

Update a plan

put
Authorizations
Path parameters
sub-user-idstringRequired
plan-idstringRequired
Body
gigabytesinteger · min: 1Optional
end_datenumberOptional

Unix timestamp representing the new end date

Responses
200
Successful update
application/json
put
PUT /api/{sub-user-id}/plan/{plan-id} HTTP/1.1
Host: reseller.flashproxy.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 28

{
  "gigabytes": 1,
  "end_date": 1
}
{
  "success": true,
  "data": {
    "id": 1,
    "proxy_type": "text",
    "start_date": "2025-08-01T22:53:31.159Z",
    "end_date": "2025-08-01T22:53:31.159Z",
    "max_bytes": "text",
    "bytes_used": "text",
    "status": "text",
    "createdAt": "2025-08-01T22:53:31.159Z"
  }
}

Last updated