Turn renewals or automatic renewal on or off
const url = 'https://api.trueproxies.com/v1/services/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"auto_pay":true,"auto_pay_consent":{"disclosure_text":"example","disclosure_version":"example"},"label":"example","renewals_enabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.trueproxies.com/v1/services/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "auto_pay": true, "auto_pay_consent": { "disclosure_text": "example", "disclosure_version": "example" }, "label": "example", "renewals_enabled": true }'Set renewals_enabled or auto_pay. Requires billing:write; reseller:purchase also permits this operation. Add customer_id to change a managed customer’s service, which additionally requires reseller:purchase: a managed customer’s renewal is paid from the wallet automatically. Managed customers’ services start with renewals off. Turning renewals off cancels an open renewal invoice and turns automatic renewal off. Free trials and comparison passes cannot be renewed. auto_pay charges the saved card for renewals (for automatic top-up on GB plans); turning it on needs a saved card and auto_pay_consent, the exact sentence the customer saw, and turning it off takes effect at once. Managed customers’ services cannot use automatic renewal.
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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Turns automatic renewal (automatic top-up on GB plans) on or off for this service. Off takes effect at once. On needs a saved card and auto_pay_consent, and cannot be sent with renewals_enabled false on a plan that renews.
Required when auto_pay is true.
object
Refused when blank or longer than 1000 characters, so the stored sentence is exactly what was shown.
Your own name for this service, shown instead of the plan name. Leading and trailing spaces are trimmed; an empty string clears it. No line breaks or control characters.
Examplegenerated
{ "auto_pay": true, "auto_pay_consent": { "disclosure_text": "example", "disclosure_version": "example" }, "label": "example", "renewals_enabled": true}Responses
Section titled “Responses”Ok
object
Automatic renewal is on (automatic top-up on GB plans). The saved card is charged without the customer paying the invoice.
Automatic renewal can be turned on for this service now.
Existing access remains available, but this service cannot be topped up or renewed. New plan purchases are separate.
Free private comparison with fixed speed and expiry; cannot be purchased, topped up or renewed.
Effective limit for this service.
Unlimited service names reflect their actual speed and term; offer_key retains the original billing plan.
Internal API identifier. Use reference for customer-facing display.
The service’s IPs in order, for isp_dedicated; empty until they are set up.
One IP of an isp_dedicated service and the gateway port that reaches it.
object
The IP traffic leaves from; null until it is known.
The customer’s own name for this service. Absent when not set; show display_name then.
Effective limit for this service.
A carrier sold as isp_dedicated, a country and the provider its IPs are registered to.
object
object
IPs bought, for isp_dedicated.
Stable, unique customer-facing reference.
What the next renewal, or a top-up with the same pack, charges. A service keeps the price it was bought or last changed plan at when the catalog price changes. Absent when the service does not renew.
0 for paid residential_ipv4_gb means no additional TrueProxies speed cap. Private comparison passes have a fixed 50000000 bps cap. residential_ipv4_unlimited retains its positive plan speed. Upstream capacity and availability still apply. Trials and datacenter plans retain their speed limits.
Actual fixed duration for a free Unlimited grant, such as 3 hours. Overrides the recurring term label in customer views.
The Unlimited product a free trial (offer_key ipv4_unlimited_trial_1h) runs as, or will start as before its first request. Upgrade plan moves the trial within this product. Absent on other services.
First recorded trial traffic; absent until the first request starts the 30-minute window.
The only destination ports UDP over SOCKS5 reaches on this service (443 and 19302 on Unlimited Pro and on a free trial that runs as Unlimited Pro). Absent when any port the gateway allows works.
Example
{ "pool": { "terms": [ "day" ] }, "product": "residential_ipv4_gb", "reference": "SVC-001001", "status": "pending", "term": "hour", "trial_product": "residential_ipv4_unlimited", "usage_source": "node"}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"}