> 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/quotes/create-a-quote.md).

# Create a quote

A request to create a quote is submitted as followed.&#x20;

{% code title="POST /quotes" 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 %}

The request can optionally contain an array of `availability_request_product_ids`, `instance_product_ids` and `mandatory_product_ids`. These can also be added at a later stage.

{% code title="Response" lineNumbers="true" %}

```json
{
  "data": {
    "id": "645ceb78ad1fa76cc70bf512",
    "name": "QuoteName",
    "instance": {
      "id": "6376061172f5e7bbbb0a1a12",
      "name": "your.instance.here",
      "_document_type": "instance"
    },
    "products": [],
    "quote_number": "2023-0003-TES",
    "currency": "EUR",
    "validity_days": 30,
    "customer": {
      "id": "642a98b4462d53710701a214",
      "name": "Example customer",
      "_document_type": "customer"
    },
    "reference_number": null,
    "total_products": 4,
    "total_mrc": 1234,
    "total_nrc": 120,
    "expiration_date": "2023-06-10",
    "_document_type": "quote"
  }
}
```

{% endcode %}
