Skip to content

Buy a snapshot storage

POST/snapshots/storages

Overview

Orders a snapshot storage of size_gb GiB, between the catalogue's min_gb and max_gb, paid from account credit. An optional name of up to 64 characters labels it. Returns the storage awaiting payment; snapshots can be stored in it once its status is active. If more credit is needed, status_label shows Needs funds and progress_message gives the amount. Add funds before the payment deadline or the order expires. A postpaid team cannot buy a snapshot storage: it pays for each snapshot by the hour instead.

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/snapshots/storages' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
  "size_gb": 200,
  "name": null
}'
{
  "uuid": "403f9bb0-bea0-4885-8960-8f6a3f27a21a",
  "uuid_short": "Uuid short",
  "name": "Storage 3",
  "status": "pending_payment",
  "status_label": "Provisioning",
  "progress_message": null,
  "needs_funds": false,
  "size_gb": 200,
  "capacity": 214748364800,
  "used": 0,
  "remaining": 214748364800,
  "snapshots_count": 0,
  "is_suspended": false,
  "is_usable": false,
  "billing": {
    "service_id": null,
    "invoice_id": null,
    "invoice_url": null,
    "checkout_uuid": null,
    "invoice_status": null,
    "amount": "3.00",
    "currency": "USD",
    "billing_cycle": "Monthly",
    "payment_due_at": "2026-09-14T17:12:09+00:00",
    "payment_window_minutes": 30,
    "paid_at": null
  },
  "cancellation_type": null,
  "cancellation_requested_at": null,
  "autopay": false,
  "can_cancel": false,
  "can_withdraw_cancellation": false,
  "can_resize": false,
  "pending_resize": null,
  "created_at": "2026-09-14T16:42:09+00:00"
}

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>.

Body

application/json
size_gbintegerrequired

The value of size_gb.

50 to 10000

namestring | null

The name shown to customers.

At most 64 characters

Response 201

application/json

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

uuidstringrequired

The uuid UUID.

uuid_shortstringrequired

The value of uuid_short.

namestringrequired

The name shown to customers.

statusstringrequired

The value of status.

One of: pending_payment, active, pending_cancellation, terminating, terminated, expired, payment_review

status_labelstringrequired

The status in the customer's words, with suspension first.

progress_messagestring | nullrequired

What the purchase is waiting on, when it is waiting on something.

needs_fundsbooleanrequired

Whether the purchase is waiting for the account to hold enough credit.

size_gbintegerrequired

The size bought, in whole GiB.

capacityintegerrequired

The size bought, in bytes.

usedintegerrequired

What the finished snapshots in it occupy, in bytes.

remainingintegerrequired

Capacity less used, never below nought, in bytes.

snapshots_countintegerrequired

The number of snapshots count.

is_suspendedbooleanrequired

Whether billing has suspended it. Its snapshots are frozen while it is.

is_usablebooleanrequired

Whether snapshots may be taken into, restored from, deleted from or moved in or out of it.

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.

cancellation_typestring | nullrequired

The value of cancellation_type.

One of: immediate, end_of_billing, null

cancellation_requested_atstring | nullrequired

The date and time for cancellation requested at, in UTC.

autopaybooleanrequired

The value of autopay.

can_cancelbooleanrequired

Whether the customer can cancel.

can_withdraw_cancellationbooleanrequired

Whether an end-of-period cancellation can still be taken back.

can_resizebooleanrequired

Whether the customer can resize.

pending_resizeobject | nullrequired

A change of size still being paid for or written to billing.

Show child attributes
uuidstringrequired

The uuid UUID.

from_gbintegerrequired

The value of from_gb.

to_gbintegerrequired

The value of to_gb.

statusstringrequired

The value of status.

One of: pending, completed, expired, payment_review

needs_fundsbooleanrequired

Whether the charge is waiting for the account to hold enough credit.

progress_messagestring | nullrequired

The value of progress_message.

amountstringrequired

The prorated charge for a larger size.

refund_amountstringrequired

The prorated credit for a smaller size.

currencystringrequired

The three-letter currency code used for monetary amounts.

created_atstring | nullrequired

The date and time for created at, in UTC.

created_atstring | nullrequired

The date and time for created at, in UTC.

Errors

400
Snapshot storage is not for sale at the moment, the account already holds as many storages as it may, the team is postpaid, or the currency could not be verified.
401
The key was missing, malformed, revoked, or belongs to an account that no longer exists.
402
The account credit does not cover the first period.
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.
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.