Purchase a plan

To purchase a plan, you must have created a sub-user. You must then pass the type of proxy plan you would like to purchase, along with the number of gigabytes.

You cannot purchase multiple of the same plan on the same sub-user. To learn about updating a specific plan, head to Update a Plan

For ISP_PRIVATE, put the quantity as 1, we use the duration value to determine the plans expiry

Purchase a plan for a sub user

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
sub-user-idstringRequired
Body
typestring · enumRequiredPossible values:
quantitynumber · min: 0.01Required
regionstring · enumOptionalPossible values:
durationstring · enumOptionalPossible values:
end_datenumberOptional

Unix timestamp representing the end date

Responses
200

Successful purchase

application/json
post
/api/{sub-user-id}/purchase
POST /api/{sub-user-id}/purchase HTTP/1.1
Host: reseller.flashproxy.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 83

{
  "type": "RESIDENTIAL",
  "quantity": 1,
  "region": "DE",
  "duration": "MONTHLY",
  "end_date": 1
}
{
  "success": true,
  "data": {
    "id": 1
  }
}

Last updated