OrdersCreate
Datacenter
Create a Datacenter proxy order
Create Datacenter Order
Endpoint: POST /orders
Datacenter is a duration-type plan. Each duration exposes configurable options (often speed or threads — confirm on GET /plans/datacenter). The order payload must include a config object with every required option for the chosen duration, keyed by option.name.
Required Fields
| Field | Type | Required | Notes |
|---|---|---|---|
plan | string (slug) | yes | Plan slug (datacenter). |
duration | string (slug) | yes | Duration slug from plan.durations[].slug (e.g. 1_week). |
config | object | yes | Must include every option exposed under the chosen duration. |
See Common Fields for optional discount_code. Orders use account balance only.
Resolving option values
Inspect the chosen duration on GET /plans/datacenter. For a range / number option, send a number within min…max aligned to step when present. For select options, send one of option.options[].value.
Example excerpt if the duration exposes speed:
"durations": [
{
"slug": "1_week",
"options": [
{
"name": "speed",
"label": "Speed",
"type": "range",
"min": 1,
"max": 100,
"step": 1
}
]
}
]Request Body
{
"plan": "datacenter",
"duration": "1_week",
"config": {
"speed": 10
}
}