Generate pricing estimate
POST/pricing/estimate
Return an estimate and breakdown of the cost of a configuration
Request
- application/json
Body
Array [
]
The customer's name
resources
object[]
required
Possible values: [consumer
, business
]
currency
object
required
All 'currency[]' params are mutually exclusive, only one can be provided.
country
object
required
All 'country[]' params are mutually exclusive, only one can be provided.
Responses
- 200
- 400
- 403
- 404
- 429
Return an estimate and breakdown of the cost of a configuration
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
estimate
object
required
resources
object[]
package
object
nullable
Possible values: [public
, private
]
icon
object
nullable
group
object
currency
object
{
"estimate": {
"resources": [
{
"resource": "string",
"description": "string",
"quantity": 0,
"per_month": 0,
"per_month_inc_tax": 0,
"per_month_each": 0,
"per_hour": 0,
"per_hour_inc_tax": 0,
"per_hour_each": 0,
"package": {
"id": "string",
"name": "string",
"permalink": "string",
"cpu_cores": 0,
"ipv4_addresses": 0,
"memory_in_gb": 0,
"storage_in_gb": 0,
"monthly_bandwidth_allowance_in_gb": 0,
"privacy": "public",
"icon": {
"url": "string",
"file_name": "string",
"file_type": "string",
"file_size": 0,
"digest": "string",
"token": "string"
},
"use_dedicated_cpus": true,
"group": {
"id": "string",
"name": "string"
}
}
}
],
"per_month": 0,
"per_month_inc_tax": 0,
"per_hour": 0,
"per_hour_inc_tax": 0,
"currency": {
"id": "string",
"name": "string",
"iso_code": "string",
"symbol": "string"
},
"tax_rate": 0,
"pdf_url": "string"
}
}
400 error response
- application/json
- Schema
- Example (from schema)
Schema
- MissingResourcesSchema
- InvalidEstimateResourceSchema
- InvalidEstimateQuantitySchema
oneOf
You must provide at least one resource in the resources array
Possible values: [missing_resources
]
The provided resource is not valid
Possible values: [invalid_estimate_resource
]
detail
object
The quantity for the provided resource must be greater than zero
Possible values: [invalid_estimate_quantity
]
detail
object
{}
403 error response
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [internal_auth_error
]
detail
object
{
"code": "internal_auth_error",
"description": "string",
"detail": {
"details": "string"
}
}
404 error response
- application/json
- Schema
- Example (from schema)
Schema
- CurrencyNotFoundSchema
- CountryNotFoundSchema
oneOf
No currency was found matching any of the criteria provided in the arguments
Possible values: [currency_not_found
]
No country was found matching any of the criteria provided in the arguments
Possible values: [country_not_found
]
{}
You have reached the rate limit for this type of request
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [rate_limit_reached
]
detail
object
The total number of requests per minute that are permitted
{
"code": "rate_limit_reached",
"description": "string",
"detail": {
"total_permitted": 0
}
}