OrdersCreate
Static Datacenter
Create a Static Datacenter proxy order
Create Static Datacenter Order
Endpoint: POST /orders
Static Datacenter is a duration-type plan whose durations expose a country option. Because the chosen duration has a non-empty options array, the order payload must include a config object containing every option keyed by option.name.
Required Fields
| Field | Type | Required | Notes |
|---|---|---|---|
plan | string (slug) | yes | Plan slug (static-datacenter). |
duration | string (slug) | yes | Duration slug from plan.durations[].slug. |
config | object | yes | Must include every option exposed under the chosen duration. Use option.name as the key and a value drawn from option.options[].value. |
See Common Fields for optional discount_code. Orders use account balance only.
Resolving the country value
Inspect the chosen duration on the plan response. The country option is a select, so the request value must equal one of option.options[].value:
// excerpt from GET /plans/static-datacenter
"durations": [
{
"slug": "30_days",
"options": [
{
"name": "country",
"label": "Country",
"type": "select",
"options": [
{ "value": "ar", "label": "Armenia" }
// ...
]
}
]
}
]Request Body
Use duration and config.country from your chosen tier. Country values are whatever GET /plans/static-datacenter lists under option.options[].value for that duration (integer IDs or string codes such as us).
{
"plan": "static-datacenter",
"duration": "30_days",
"config": {
"country": "us"
}
}