Zum Hauptinhalt springen

Create an Order

POST/orders/
v2
POST
order-create-order

Request

Responses

application/json
  • orderIdstring
    required

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"orderData":{"customerId":"0f5ec9cd-1b1b-4850-9061-fcebe765c62d","description":"My first project","diskspaceInGiB":20,"promotionCode":"123456","recommendationCode":"mp-123456","spec":{"machineType":"prospace.2cpu.4gb"},"useFreeTrial":true},"orderType":"projectHosting"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/orders