Create a quote

A request to create a quote is submitted as followed.

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

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.

Response
{
  "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"
  }
}

Last updated

Was this helpful?