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, 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
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
sub-user-idstringRequired
plan-idstringRequired
Body
gigabytesinteger · min: 1Optional
statusstring · enumOptionalPossible values:
Responses
200

Successful response

application/json
put
/api/{sub-user-id}/plan/{plan-id}
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": {}
}

Last updated