# Withdraw a snapshot storage cancellation

`POST https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage}/withdraw-cancellation`

### Overview

Withdraws an end-of-period cancellation and continues billing for the storage. Available only when `can_withdraw_cancellation` is true. Immediate cancellations cannot be reversed. Automatic payments remain disabled and must be set up again.

### Permissions

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

## Authorization

Send `Authorization: Bearer <token>` with the request. 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.

## Path parameters

- `snapshotStorage` (string, required): The snapshot storage uuid short

## Response 200

The record, as a JSON object. There is no envelope.

- `uuid` (string, required): The uuid UUID.
- `uuid_short` (string, required): The value of `uuid_short`.
- `name` (string, required): The name shown to customers.
- `status` (string, required): The value of `status`. One of: `pending_payment`, `active`, `pending_cancellation`, `terminating`, `terminated`, `expired`, `payment_review`.
- `status_label` (string, required): The status in the customer's words, with suspension first.
- `progress_message` (string | null, required): What the purchase is waiting on, when it is waiting on something.
- `needs_funds` (boolean, required): Whether the purchase is waiting for the account to hold enough credit.
- `size_gb` (integer, required): The size bought, in whole GiB.
- `capacity` (integer, required): The size bought, in bytes.
- `used` (integer, required): What the finished snapshots in it occupy, in bytes.
- `remaining` (integer, required): Capacity less used, never below nought, in bytes.
- `snapshots_count` (integer, required): The number of snapshots count.
- `is_suspended` (boolean, required): Whether billing has suspended it. Its snapshots are frozen while it is.
- `is_usable` (boolean, required): Whether snapshots may be taken into, restored from, deleted from or moved in or out of it.
- `billing` (object, required): The value of `billing`.
  - `service_id` (integer | null, required): The customer's service number, once a recurring service exists.
  - `invoice_id` (integer | null, required): The customer's invoice number, once an invoice exists.
  - `invoice_url` (string | null, required): A complete URL where the invoice can be paid.
  - `checkout_uuid` (string | null, required): The checkout UUID, or null when no checkout is available.
  - `checkout_uuid_short` (string | null, required): The value of `checkout_uuid_short`.
  - `invoice_status` (string | null, required): The current invoice status, or null before an invoice exists.
  - `amount` (string | null, required): The amount in the currency shown by `currency`.
  - `currency` (string | null, required): The three-letter currency code used for `amount`.
  - `billing_cycle` (string | null, required): How often the service renews, or null for a one-time charge.
  - `payment_due_at` (string | null, required): When payment is due before the reservation is released.
  - `payment_window_minutes` (integer | null, required): How many minutes the original payment window allowed.
  - `paid_at` (string | null, required): When the charge was paid, or null while payment is outstanding.
- `cancellation_type` (string | null, required): The value of `cancellation_type`. One of: `immediate`, `end_of_billing`, `null`.
- `cancellation_requested_at` (string | null, required): The date and time for cancellation requested at, in UTC.
- `autopay` (boolean, required): The value of `autopay`.
- `can_cancel` (boolean, required): Whether the customer can cancel.
- `can_withdraw_cancellation` (boolean, required): Whether an end-of-period cancellation can still be taken back.
- `can_resize` (boolean, required): Whether the customer can resize.
- `pending_resize` (object | null, required): A change of size still being paid for or written to billing.
  - `uuid` (string, required): The uuid UUID.
  - `from_gb` (integer, required): The value of `from_gb`.
  - `to_gb` (integer, required): The value of `to_gb`.
  - `status` (string, required): The value of `status`. One of: `pending`, `completed`, `expired`, `payment_review`.
  - `needs_funds` (boolean, required): Whether the charge is waiting for the account to hold enough credit.
  - `progress_message` (string | null, required): The value of `progress_message`.
  - `amount` (string, required): The prorated charge for a larger size.
  - `refund_amount` (string, required): The prorated credit for a smaller size.
  - `currency` (string, required): The three-letter currency code used for monetary amounts.
  - `created_at` (string | null, required): The date and time for created at, in UTC.
- `created_at` (string | null, required): The date and time for created at, in UTC.

```json
{
  "uuid": "9e83397b-d88e-43ae-bfb7-a8c2e6eda853",
  "uuid_short": "Uuid short",
  "name": "Storage 1",
  "status": "active",
  "status_label": "Active",
  "progress_message": null,
  "needs_funds": false,
  "size_gb": 200,
  "capacity": 214748364800,
  "used": 85899345920,
  "remaining": 128849018880,
  "snapshots_count": 1,
  "is_suspended": false,
  "is_usable": true,
  "billing": {
    "service_id": 7436,
    "invoice_id": 16388,
    "invoice_url": null,
    "checkout_uuid": null,
    "invoice_status": "Paid",
    "amount": "3.00",
    "currency": "USD",
    "billing_cycle": "Monthly",
    "payment_due_at": null,
    "payment_window_minutes": 30,
    "paid_at": "2026-06-03T17:26:52+00:00"
  },
  "cancellation_type": null,
  "cancellation_requested_at": null,
  "autopay": false,
  "can_cancel": false,
  "can_withdraw_cancellation": false,
  "can_resize": true,
  "pending_resize": null,
  "created_at": "2026-06-03T17:26:40+00:00"
}
```

## Errors

- `400`: The cancellation cannot be withdrawn in its current state.
- `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.

## Example request

```bash
curl --request POST \
  --url 'https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage}/withdraw-cancellation' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
```
