> For the complete documentation index, see [llms.txt](https://docs.trunkstar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trunkstar.com/orders/create-an-order.md).

# Create an order

An order can be created in two ways from a quote or directly from products. Below both are demonstrated.

1. From a quote:

```json
POST /quotes/{id}/order
```

2. Directly from products

{% code title="POST /orders" lineNumbers="true" %}

```json
{
	"name": "QuoteName",
	"customer_id": "1234567",
	"reference_number" : "BlueFish78",
	"availability_request_product_ids": [
		"87sdyf8sgd78sgd31",
	]
	"instance_product_ids": [
		"87sdyf8sgd78sgd32",
		"87sdyf8sgd78sgd33",
		"87sdyf8sgd78sgd34"
	],
	"mandatory_product_ids": []
}
```

{% endcode %}
