Get a quote for a server order
Overview
Calculates a server price and returns a signed quote_token. Send plan_key from the catalogue. Optionally send billing_cycle to use a cycle other than the default.
The response includes the plan, product group, location, price, currency, billing cycle, cycle length in months and payment window. Use the token to place the order at the quoted price.
postpaid is true when the servers would go into a postpaid team. amount is then the monthly price, billed by the hour, the billing cycle is always monthly, and the order is checked against the postpaid spending limit instead of account credit.
Requesting a quote does not charge the account or reserve capacity.
Permissions
Requires the server.read (View servers) permission for the selected team. Resources outside that team return 404.
Authorization
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/jsonThe value of plan_key.
Exactly 64 characters
How often the service renews and is billed.
One of: monthly, quarterly, semiannually, annually, biennially, triennially
Response 200
application/jsonThe record, as a JSON object. There is no envelope.
The value of plan.
Show child attributesHide child attributes
The value of key.
The id ID.
The name shown to customers.
The value of vcpu_cores.
Memory in advertised units; 1000 represents 1 GiB.
Advertised disk capacity in GiB.
Transfer allowance in advertised units; 1000 represents 1 TiB and zero means unlimited.
The value of hdd.
Primary disk capacity in GiB.
Secondary hard disk capacity in GiB.
The value of price.
The value of deployment_time.
The billing product identifier.
The value of plan_key.
The value of group.
Show child attributesHide child attributes
The id ID.
The name shown to customers.
The value of location.
Show child attributesHide child attributes
The id ID.
The value of display_name.
The name shown to customers.
The value of flag_url.
The value of cid.
The value of group_name.
The location id ID.
The product group id ID.
The amount in the currency shown by currency.
The three-letter currency code used for monetary amounts.
How often the service renews and is billed.
The value of billing_cycle_months.
How many minutes the original payment window allowed.
The value of postpaid.
The value of quote_token.
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.
- 422
- A field is missing or invalid, or the resource cannot accept this change in its current state. Check
messagefor details. Field validation also includes anerrorsobject keyed by field name. - 429
- Too many requests. The
Retry-Afterheader says how many seconds to wait. Limits are per account, so several keys on one account share them.
Still stuck? Contact our team
View as Markdown