Flash Proxy
  • Authorization
  • Important
  • Reseller
    • Get balance
    • Formatting Proxies
  • Residential Proxies
  • Unlimited Proxies
  • Sub-users
    • Create a sub-user
    • Get all sub-users
    • Get sub-user by ID
    • Update sub-user
  • Proxy Plans
    • Purchase a plan
    • Update a plan
    • Delete a plan
  • Countries
    • Get countries
    • Get states
    • Get cities
    • Get ASNs
Powered by GitBook
On this page
  1. Proxy Plans

Update a plan

PreviousPurchase a planNextDelete a plan

Last updated 8 months ago

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.

You cannot update ISP_PRIVATE plans

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
400
Bad request
application/json
404
Plan not found
application/json
500
Internal server error
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-06-02T23:43:16.484Z",
    "end_date": "2025-06-02T23:43:16.484Z",
    "max_bytes": "text",
    "bytes_used": "text",
    "status": "text",
    "createdAt": "2025-06-02T23:43:16.484Z"
  }
}