Creates a new Order with the provided OrderViewModel and returns a model with the created order id. The order is created asynchronously. If the provider does not answer in time, the order moves to the PendingConfirmation status while the system checks whether the provider created it. Do not create the same order again until it leaves that status. When the tenant has the similar order warning enabled and an equivalent order (same customer, provider instance, offer, billing frequency, term and quantity) may already exist on the provider, the request is answered with 409 and a body with the code "similar_request_unconfirmed" and the equivalent orders. Send the order again with "confirmSimilarOrder": true to create it anyway.
Headers
-
The domain used to access the portal.
-
This header is optional and by setting it you can correlate the audit logs made by this request.
Body
The order info to create the order.
-
The GUID identifier for the order.
-
The GUID identifier for the offer.
-
The GUID identifier for the customer.
-
The GUID identifier for the reseller.
-
The GUID identifier for the provider instance.
-
The name to set in the subscription created by this order. This may be up to 255 characters.
-
The term duration for this entity. Possible values: NoTerm, OneMonth, OneYear, ThreeYears or FiveYears
Additional properties are NOT allowed.
-
The billing frequency for this entity. Possible values: OneTime, Monthly, Annual, Triennial or None
Additional properties are NOT allowed.
-
The offer segment. Possible values: Commercial, Education, Government or NonProfit
Additional properties are NOT allowed.
-
The order operation type. Possible values: CreateSubscription
Additional properties are NOT allowed.
-
The quantity of licenses to provision for this order.
-
This value object contains the price margin for this entity.
Additional properties are NOT allowed.
-
The internal identifier to set in the subscription created by this order. This may be up to 255 characters.
-
The po number to set in the subscription created by this order. This may be up to 255 characters.
-
Represents the action to take when a subscription reaches its end of term.
Additional properties are NOT allowed.
-
The status of the order. Possible values: Processing, Provisioning, Provisioned, Completed, Failed, PendingPOUpload, POUploadComplete, Suspended or PendingConfirmation
Additional properties are NOT allowed.
-
The date in which this order was created.
-
The provider specific data for this order. For generic provider subscriptions, this should not be set.
-
The GUID identifier for the parent subscription of this order.
-
Set to true to create the order even though an equivalent order was sent to the provider and is not confirmed yet. When false, such an order is answered with a 409 listing the equivalent orders.
-
The error message if status is failed.
-
The provider's offer identifier.
-
The email of the user who placed the order.
curl \
--request POST 'https://api.cloudcockpit.com/v1/Orders' \
--header "Content-Type: application/json" \
--header "X-Tenant: portal.cloudcockpit.com" \
--header "Authorization: Bearer eyJ0eXAiO..." \
--header "X-Correlation-Id: string" \
--data '{
"id": "string",
"offerId": "string",
"customerId": "string",
"resellerId": "string",
"providerInstanceId": "string",
"subscriptionName": "string",
"termDuration": {},
"billingFrequency": {},
"segment": {},
"operation": {},
"quantity": 42,
"subscriptionMargin": {
"marginRule": {}
},
"subscriptionInternalId": "string",
"poNumber": "string",
"autoRenew": {},
"status": {},
"createdDate": "2026-05-04T09:42:00Z",
"providerData": "string",
"parentSubscriptionId": "string",
"confirmSimilarOrder": true,
"errorMessage": "string",
"providerOfferId": "string",
"orderedByEmail": "string"
}'
# Headers
X-Tenant: portal.cloudcockpit.com
Authorization: Bearer eyJ0eXAiO...
X-Correlation-Id: string
# Payload
{
"id": "string",
"offerId": "string",
"customerId": "string",
"resellerId": "string",
"providerInstanceId": "string",
"subscriptionName": "string",
"termDuration": {},
"billingFrequency": {},
"segment": {},
"operation": {},
"quantity": 42,
"subscriptionMargin": {
"marginRule": {}
},
"subscriptionInternalId": "string",
"poNumber": "string",
"autoRenew": {},
"status": {},
"createdDate": "2026-05-04T09:42:00Z",
"providerData": "string",
"parentSubscriptionId": "string",
"confirmSimilarOrder": true,
"errorMessage": "string",
"providerOfferId": "string",
"orderedByEmail": "string"
}
{
"orderId": "573b2955-f31f-4edd-9a52-0226e0b0111f"
}
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}
{
"code": "string",
"requests": [
{
"id": "string",
"kind": "string",
"createdDate": "2026-05-04T09:42:00Z",
"status": "string",
"quantity": 42,
"offerName": "string"
}
]
}
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}