List plan upgrades
const url = 'https://api.trueproxies.com/v1/services/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/upgrades';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.trueproxies.com/v1/services/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/upgrades \ --header 'Authorization: Bearer <token>'Plans this service can move up to now: a faster speed or a longer term on the same service and login, never a downgrade. Each option shows the new plan’s price, the credit for unused time, the amount due and the new expiry; unavailable options carry a reason. To upgrade, create an invoice with POST /v1/invoices using this service_id and the chosen offer_key, then pay it within an hour.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Owned sub-customer UUID. Resellers only; reads require reseller:read and writes reseller:purchase in addition to the operation scope. X-Customer-Id header is an alternative. Not allowed for me, wallet, trial, API keys, or reseller-management routes.
Responses
Section titled “Responses”Ok
object
A plan the service can move up to now, priced with credit for unused time.
object
Credit for unused time on the current plan.
Amount to pay now, at least 50 cents.
When the upgraded plan would end if paid now; the new term starts at payment.
The new plan’s price for the payer.
Why an option is not available now.
Example
{ "items": [ { "currency": "USD", "reason": "capacity_unavailable", "term": "hour" } ]}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}