Flash Proxy Reseller API
  • Getting Started
    • Authorization
    • Formatting Proxies
  • Sub-Users
    • Create a sub-user
    • Get all sub-users
    • Get sub-user by ID
    • Update a sub-user
  • Proxy Plans
    • Purchase a plan
    • Update a plan
  • Reseller
    • Reseller Balance
  • Countries
    • Get Countries
    • Get States
    • Get Cities
Powered by GitBook
On this page
  1. Proxy Plans

Update a plan

PreviousPurchase a planNextReseller Balance

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, and the status of the plan.

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
statusstring · enumOptionalPossible values:
Responses
200
Successful response
application/json
400
Bad request
404
Sub user or plan not found
500
Internal server error
put
PUT /api/{sub-user-id}/plan/{plan-id} HTTP/1.1
Host: api.flashproxy.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 33

{
  "gigabytes": 1,
  "status": "ACTIVE"
}
{
  "success": true,
  "data": {}
}