Skip to content

Cancel a plan change

POST/servers/{server}/upgrades/{upgrade}/cancel

Overview

Cancels a plan change awaiting payment and releases its reserved capacity. Paid changes cannot be cancelled through this endpoint. Contact support if a paid change needs attention. Invoice checks continue after the response; check the change again until its status is final.

Permissions

Requires the billing.purchase (Make purchases) permission for the selected team. Resources outside that team return 404.

curl --request POST \
  --url 'https://console.advinservers.com/api/v1/client/servers/{server}/upgrades/{upgrade}/cancel' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
{
  "uuid": "2946b7c6-1b8d-4279-880f-629c9dd8f48c",
  "uuid_short": "Uuid short",
  "status": "pending_payment",
  "status_label": "Paying from account credit",
  "stage": "awaiting_billing",
  "progress": 0,
  "progress_message": "Paying for the change from your account credit.",
  "location_change_fee": "0.00",
  "billing": {
    "service_id": null,
    "invoice_id": null,
    "invoice_url": null,
    "checkout_uuid": null,
    "invoice_status": null,
    "amount": "6.00",
    "currency": "USD",
    "billing_cycle": null,
    "payment_due_at": "2026-09-14T17:12:09+00:00",
    "payment_window_minutes": null,
    "paid_at": null
  },
  "source_location": "Kansas City, MO",
  "target_location": "Kansas City, MO",
  "requires_migration": false,
  "crosses_location": false,
  "requires_ip_replacement": false,
  "resize_disk": true,
  "plan_name": "Standard 8 GB",
  "product_group_name": "Standard VPS",
  "source_cpu": 4,
  "source_memory": 4294967296,
  "source_disk": 85899345920,
  "source_bandwidth": 5497558138880,
  "target_cpu": 6,
  "target_memory": 8589934592,
  "target_disk": 171798691840,
  "target_bandwidth": 10995116277760,
  "transferred_bytes": null,
  "total_bytes": null,
  "can_cancel": true,
  "error": null,
  "support_reference": null,
  "created_at": "2026-09-14T16:42:09+00:00",
  "started_at": null,
  "completed_at": null
}

Authorization

Authorizationstringheaderrequired

Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.

Send it as Bearer <token>.

Path parameters

serverstringrequired

The server uuid short

upgradestringrequired

The upgrade uuid short

Response 202

application/json

The request was accepted and is being carried out in the background.

uuidstringrequired

The uuid UUID.

uuid_shortstringrequired

The value of uuid_short.

statusstringrequired

The value of status.

One of: pending_payment, queued, stopping, migrating, resizing, networking, finalizing, completed, failed, expired, payment_review, cancelled

status_labelstringrequired

The value of status_label.

stagestring | nullrequired

The value of stage.

progressintegerrequired

The value of progress.

progress_messagestring | nullrequired

The value of progress_message.

location_change_feestring | nullrequired

The value of location_change_fee.

billingobjectrequired

The value of billing.

Show child attributes
service_idinteger | nullrequired

The customer's service number, once a recurring service exists.

invoice_idinteger | nullrequired

The customer's invoice number, once an invoice exists.

invoice_urlstring | nullrequired

A complete URL where the invoice can be paid.

checkout_uuidstring | nullrequired

The checkout UUID, or null when no checkout is available.

checkout_uuid_shortstring | nullrequired

The value of checkout_uuid_short.

invoice_statusstring | nullrequired

The current invoice status, or null before an invoice exists.

amountstring | nullrequired

The amount in the currency shown by currency.

currencystring | nullrequired

The three-letter currency code used for amount.

billing_cyclestring | nullrequired

How often the service renews, or null for a one-time charge.

payment_due_atstring | nullrequired

When payment is due before the reservation is released.

payment_window_minutesinteger | nullrequired

How many minutes the original payment window allowed.

paid_atstring | nullrequired

When the charge was paid, or null while payment is outstanding.

source_locationstring | nullrequired

The value of source_location.

target_locationstring | nullrequired

The value of target_location.

requires_migrationbooleanrequired

Whether this action requires migration.

crosses_locationbooleanrequired

The value of crosses_location.

requires_ip_replacementbooleanrequired

Whether this action requires ip replacement.

resize_diskbooleanrequired

The value of resize_disk.

plan_namestring | nullrequired

The value of plan_name.

product_group_namestring | nullrequired

The value of product_group_name.

source_cpuinteger | nullrequired

The plan the customer bought, spelled out against what the server has today. These are the snapshot taken at checkout, so they keep describing the change even after the feed moves on.

source_memoryinteger | nullrequired

The value of source_memory.

source_diskinteger | nullrequired

The value of source_disk.

source_bandwidthinteger | nullrequired

The value of source_bandwidth.

target_cpuinteger | nullrequired

The value of target_cpu.

target_memoryinteger | nullrequired

The value of target_memory.

target_diskinteger | nullrequired

The value of target_disk.

target_bandwidthinteger | nullrequired

The value of target_bandwidth.

transferred_bytesinteger | nullrequired

The value of transferred_bytes.

total_bytesinteger | nullrequired

The value of total_bytes.

can_cancelbooleanrequired

Whether the customer can cancel.

errorstring | nullrequired

A customer-safe explanation of the failure. Internal billing diagnostics are never published here.

support_referencestring | nullrequired

The value of support_reference.

created_atstring | nullrequired

The date and time for created at, in UTC.

started_atstring | nullrequired

The date and time for started at, in UTC.

completed_atstring | nullrequired

The date and time for completed at, in UTC.

Errors

401
The key was missing, malformed, revoked, or belongs to an account that no longer exists.
403
Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
404
The resource was not found in the selected team. Resources in another account or team also return 404.
422
A field is missing or invalid, or the resource cannot accept this change in its current state. Check message for details. Field validation also includes an errors object keyed by field name.
429
Too many requests. The Retry-After header says how many seconds to wait. Limits are per account, so several keys on one account share them.