---
title: Create Quote
slug: create-quote
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "tLf5Qv6HGQd5jRF7NtYRF",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.nue.io/cpq/quotes",
    "servers": [
      {
        "url": "https://api.nue.io/cpq/quotes",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/cpq/quotes",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Create Quote",
    "description": "<p>Creates a new quote with full pricing engine execution. The request body contains quote header fields (any valid Quote field as top-level properties), a <code>products</code> array, and optionally <code>priceTags</code> and <code>opportunity</code> objects.</p>\n<p>The pricing engine resolves products by SKU, matches Price Book Entries by UOM/currency/attributes, expands bundles, applies discounts and price tags, and persists the quote and all line items.</p>\n<p><strong>Key behaviors:</strong></p>\n<ul>\n<li>Products are identified by <code>productSku</code> + <code>uom</code> (not Price Book Entry ID)</li>\n<li>Bundle add-ons are specified via the <code>addOns</code> array on the parent product</li>\n<li>Header-level discounts propagate to all lines without their own discount</li>\n<li>Custom fields can be set as top-level properties on the request body</li>\n<li>The response includes structured warnings even on success</li>\n</ul>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "<p>Quote header fields are set as top-level properties. The <code>products</code> array defines products to add.</p>",
          "schema": [
            {
              "name": "name",
              "kind": "required",
              "type": "string",
              "description": "Quote name.",
              "example": "Enterprise Deal Q1 2025"
            },
            {
              "name": "opportunityId",
              "kind": "required",
              "type": "string",
              "description": "Opportunity ID to associate the quote with.",
              "example": "opp-123e4567-e89b-12d3-a456-426614174000"
            },
            {
              "name": "priceBookId",
              "kind": "optional",
              "type": "string",
              "description": "Price book ID. Defaults to the Standard Price Book."
            },
            {
              "name": "subscriptionStartDate",
              "kind": "optional",
              "type": "string<date>",
              "description": "Subscription start date. Defaults to today.",
              "example": "2025-01-01",
              "format": "date"
            },
            {
              "name": "subscriptionEndDate",
              "kind": "optional",
              "type": "string<date>",
              "description": "<p>Subscription end date. Calculated from start + term if not provided.</p>",
              "example": "2026-01-01",
              "format": "date"
            },
            {
              "name": "subscriptionTerm",
              "kind": "optional",
              "type": "number",
              "description": "<p>Subscription term. Provide any two of start/end/term — the third is calculated.</p>",
              "example": 12
            },
            {
              "name": "subscriptionTermDimension",
              "kind": "optional",
              "type": "string<Month | Year>",
              "description": "Term dimension.",
              "example": "Month",
              "enum": [
                "Month",
                "Year"
              ]
            },
            {
              "name": "discount",
              "kind": "optional",
              "type": "number",
              "description": "<p>Header-level discount percentage (0-100). Propagates to all undiscounted lines.</p>",
              "example": 10
            },
            {
              "name": "discountAmount",
              "kind": "optional",
              "type": "number",
              "description": "<p>Header-level discount amount. Distributed proportionally across lines.</p>"
            },
            {
              "name": "currencyIsoCode",
              "kind": "optional",
              "type": "string",
              "description": "<p>Currency ISO code (multi-currency orgs). Defaults to the tenant's default currency.</p>",
              "example": "USD"
            },
            {
              "name": "products",
              "kind": "required",
              "type": "array",
              "description": "Products to add to the quote.",
              "modelRef": "#/components/schemas/AddQuoteProductRequest",
              "customType": "AddQuoteProductRequest[]",
              "schema": [
                {
                  "name": "productSku",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p>The product SKU (StockKeepingUnit). Exactly one of <code>productSku</code> or <code>productName</code> must be supplied — passing both, or neither, returns a <code>PRODUCT_SKU_AND_NAME_EXCLUSIVE</code> validation error.</p>",
                  "example": "NUE_PLATFORM"
                },
                {
                  "name": "productName",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p>The product name. Alternative to <code>productSku</code>. The first matching active product is selected; if multiple products share the name an <code>AMBIGUOUS_PRODUCT_NAME</code> error is returned and you should use <code>productSku</code> instead.</p>",
                  "example": "Nue Platform"
                },
                {
                  "name": "priceBookEntryId",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p>Specific Price Book Entry ID. Narrows the candidate-PBE list to this entry. The PBE must still satisfy the order's currency and pricing-attribute conditions — if it does not, the API returns <code>PRICEBOOK_ENTRY_MISMATCH</code>.</p>",
                  "example": "01uxx000000ABCDEF"
                },
                {
                  "name": "quantity",
                  "kind": "optional",
                  "type": "number",
                  "description": "<p>Number of units. Required for top-level products. For add-ons, defaults to the bundle option's <code>DefaultQuantity</code>.</p>",
                  "example": 10,
                  "minimum": 0
                },
                {
                  "name": "uom",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p>Unit of Measure name (must match an existing UOM, e.g. <code>User/Month</code>, <code>Hour</code>, <code>Each</code>). For top-level products, supply at least one of <code>priceBookEntryId</code>, <code>uom</code>, or <code>customPricingAttributes</code>.</p>",
                  "example": "User/Month"
                },
                {
                  "name": "startDate",
                  "kind": "optional",
                  "type": "string<date>",
                  "description": "<p>Per-product start date override. Defaults to the quote header's start date.</p>",
                  "example": "2025-01-01",
                  "format": "date"
                },
                {
                  "name": "endDate",
                  "kind": "optional",
                  "type": "string<date>",
                  "description": "<p>Per-product end date override. If <code>subscriptionTerm</code> is provided, the end date is calculated from <code>startDate</code> + <code>subscriptionTerm</code>.</p>",
                  "example": "2026-01-01",
                  "format": "date"
                },
                {
                  "name": "subscriptionTerm",
                  "kind": "optional",
                  "type": "number",
                  "description": "<p>Per-product subscription term override. Must be > 0. Defaults to the quote header's term.</p>",
                  "example": 12,
                  "minimum": 0
                },
                {
                  "name": "subscriptionTermDimension",
                  "kind": "optional",
                  "type": "string<Month | Year>",
                  "description": "Term dimension for the subscription term.",
                  "example": "Month",
                  "enum": [
                    "Month",
                    "Year"
                  ]
                },
                {
                  "name": "autoRenew",
                  "kind": "optional",
                  "type": "boolean",
                  "description": "<p>Whether this product line auto-renews. Defaults to the quote-level or product-level setting.</p>",
                  "example": true
                },
                {
                  "name": "evergreen",
                  "kind": "optional",
                  "type": "boolean",
                  "description": "<p>Whether this is an evergreen subscription (no fixed term). Cannot be combined with <code>subscriptionTerm</code> or <code>endDate</code>.</p>",
                  "example": false
                },
                {
                  "name": "billingPeriod",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p>Billing period override. Per-line, both label (<code>Monthly</code>) and API value (<code>Month</code>) are accepted. Top-level header <code>billingPeriod</code> requires the API value.</p>",
                  "example": "Month"
                },
                {
                  "name": "billingTiming",
                  "kind": "optional",
                  "type": "string<In Advance | In Arrears>",
                  "description": "<p>Billing timing override — whether billed before or after service delivery.</p>",
                  "example": "In Advance",
                  "enum": [
                    "In Advance",
                    "In Arrears"
                  ]
                },
                {
                  "name": "renewalTerm",
                  "kind": "optional",
                  "type": "number",
                  "description": "<p>Renewal term in months. Must be > 0.</p>",
                  "example": 12,
                  "minimum": 0
                },
                {
                  "name": "discount",
                  "kind": "optional",
                  "type": "number",
                  "description": "<p>Discretionary discount percentage (0-100). Overrides header-level discount for this product. If both <code>discount</code> and <code>discountAmount</code> are set, <code>discount</code> takes precedence.</p>",
                  "example": 15.5,
                  "minimum": 0,
                  "maximum": 100
                },
                {
                  "name": "discountAmount",
                  "kind": "optional",
                  "type": "number",
                  "description": "<p>Discretionary discount amount (currency). Ignored if <code>discount</code> is also provided.</p>",
                  "example": 100,
                  "minimum": 0
                },
                {
                  "name": "priceTags",
                  "kind": "optional",
                  "type": "array",
                  "description": "Price or discount tags to apply to this product.",
                  "modelRef": "#/components/schemas/PriceTagInput",
                  "customType": "PriceTagInput[]",
                  "schema": [
                    {
                      "name": "code",
                      "kind": "optional",
                      "type": "string",
                      "description": "The price tag code.",
                      "example": "REGR_DISC_QTY_TIERED"
                    },
                    {
                      "name": "id",
                      "kind": "optional",
                      "type": "string",
                      "description": "The price tag ID.",
                      "example": "a0dcU000005sZRrQAM"
                    }
                  ]
                },
                {
                  "name": "customPricingAttributes",
                  "kind": "optional",
                  "type": "array",
                  "description": "<p>Custom Price Book Entry field values used to disambiguate multi-attribute pricing. Each entry's <code>name</code> must be the <strong>full Salesforce field API name</strong> including the namespace prefix and <code>__c</code> suffix (for example <code>Ruby__PricingAttribute_3__c</code>). Multiple attributes are AND'd together when filtering candidate PBEs.</p>",
                  "modelRef": "#/components/schemas/CustomPricingAttribute",
                  "customType": "CustomPricingAttribute[]",
                  "schema": [
                    {
                      "name": "name",
                      "kind": "required",
                      "type": "string",
                      "description": "<p>Full Salesforce field API name on the PriceBookEntry, including the package namespace prefix and <code>__c</code> suffix. Examples: <code>Ruby__PricingAttribute_3__c</code>, <code>Ruby__Segment__c</code>. Bare names without namespace or <code>__c</code> are rejected with <code>Invalid field &#x3C;name> for PricebookEntry</code>.</p>",
                      "example": "Ruby__PricingAttribute_3__c"
                    },
                    {
                      "name": "value",
                      "kind": "required",
                      "type": "string",
                      "description": "The value to match against the PriceBookEntry field. Compared as a string.",
                      "example": "New Business"
                    }
                  ]
                },
                {
                  "name": "addOns",
                  "kind": "optional",
                  "type": "array",
                  "description": "<p>Optional add-on products for bundles. Each add-on is itself a product request object.</p>",
                  "modelRef": "#/components/schemas/AddQuoteProductRequest",
                  "customType": "AddQuoteProductRequest[]",
                  "schema": [
                    {
                      "name": "",
                      "description": "",
                      "customType": "Circular-Reference"
                    }
                  ]
                },
                {
                  "name": "productOptionId",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p>For add-on lines, targets a specific bundle option slot (RIM-20981). When set, productSku/productName become optional.</p>"
                },
                {
                  "name": "netSalesPrice",
                  "kind": "optional",
                  "type": "number",
                  "description": "<p>Explicit unit net sales price; back-calculates the discount. Mutually exclusive with discount and discountAmount.</p>"
                },
                {
                  "name": "paymentTerm",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p>Per-line payment term override, e.g. 'Net 30'.</p>"
                },
                {
                  "name": "coTermAsset",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p>Change-order only. Co-terminate this new line with the named Salesforce subscription number.</p>"
                },
                {
                  "name": "parentLineId",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p>Update API only. Adds this product as an option child under the existing bundle line with this id, resolved against that bundle's live option config. May target the root bundle line or a nested sub-bundle line. Omit for a top-level add.</p>",
                  "example": "0QLRu00000AAvDcIAL"
                },
                {
                  "name": "customFields",
                  "kind": "optional",
                  "type": "map",
                  "description": "<p>Line-level custom field name/value pairs applied directly onto the created line item. Keys are Salesforce API names on the line object (QuoteLineItem or OrderProduct); an unknown field name is rejected. Supported on /cpq/quotes, /cpq/orders, and the addLineItems action of the </p><div></div> endpoints.<p></p>",
                  "example": "{\"CostCenter__c\":\"CC-1042\",\"Ruby__IncludedUnits__c\":25}",
                  "customType": "map<string, string>",
                  "schema": []
                },
                {
                  "name": "rampValues",
                  "kind": "optional",
                  "type": "array",
                  "description": "<p>Per-ramp Line Attribute values for a ramped line. Each entry sets custom field values on one ramp line, addressed by rampLineIndex. Ramp lines not named inherit the line-level value, then the Pricebook Entry default. Supported on /cpq/quotes and /cpq/orders.</p>",
                  "modelRef": "#/components/schemas/RampValueInput",
                  "customType": "RampValueInput[]",
                  "schema": [
                    {
                      "name": "rampLineIndex",
                      "kind": "optional",
                      "type": "integer",
                      "description": "<p>Which ramp line to apply the values to, 1-based in schedule order.</p>",
                      "example": 1
                    },
                    {
                      "name": "startDate",
                      "kind": "optional",
                      "type": "string<date>",
                      "description": "<p>The ramp line's start date, accepted as a readable alias for rampLineIndex. Ramp line dates are derived by the pricing engine, so this is not the addressing key; when both are given they must agree.</p>",
                      "example": "2026-01-01",
                      "format": "date"
                    },
                    {
                      "name": "fieldValues",
                      "kind": "optional",
                      "type": "map",
                      "description": "<p>Field name/value pairs applied to this ramp line only, overriding what it would otherwise inherit from its parent line.</p>",
                      "example": "{\"Overage_Rate__c\":3}",
                      "customType": "map<string, string>",
                      "schema": []
                    }
                  ]
                }
              ]
            },
            {
              "name": "priceTags",
              "kind": "optional",
              "type": "array",
              "description": "<p>Quote-level price or discount tags.</p>",
              "modelRef": "#/components/schemas/PriceTagInput",
              "customType": "PriceTagInput[]",
              "schema": [
                {
                  "name": "code",
                  "kind": "optional",
                  "type": "string",
                  "description": "The price tag code.",
                  "example": "REGR_DISC_QTY_TIERED"
                },
                {
                  "name": "id",
                  "kind": "optional",
                  "type": "string",
                  "description": "The price tag ID.",
                  "example": "a0dcU000005sZRrQAM"
                }
              ]
            },
            {
              "name": "opportunity",
              "kind": "optional",
              "type": "map",
              "description": "Optional Opportunity object with fields to set.",
              "example": "",
              "customType": "map<string, string>",
              "schema": []
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "ApiKeyAuth",
          "name": "nue-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Quote created successfully.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Response from Create Quote or Preview Quote endpoints.",
            "customType": "CreateQuoteResponse",
            "schema": [
              {
                "name": "status",
                "kind": "optional",
                "type": "string<SUCCEED | FAILURE>",
                "description": "Result status.",
                "enum": [
                  "SUCCEED",
                  "FAILURE"
                ]
              },
              {
                "name": "data",
                "kind": "optional",
                "type": "object",
                "description": "The quote and its line items.",
                "modelRef": "#/components/schemas/QuoteData",
                "customType": "QuoteData",
                "schema": [
                  {
                    "name": "quote",
                    "kind": "optional",
                    "type": "object",
                    "description": "<p>The Quote object with all calculated pricing fields. Contains an <code>id</code> if committed; <code>null</code> id if previewed.</p>",
                    "example": "",
                    "schema": [
                      {
                        "name": "id",
                        "kind": "optional",
                        "type": "string",
                        "nullable": true,
                        "description": "Quote record ID. Null in preview mode."
                      },
                      {
                        "name": "name",
                        "kind": "optional",
                        "type": "string",
                        "description": "Quote name."
                      },
                      {
                        "name": "opportunityId",
                        "kind": "optional",
                        "type": "string",
                        "description": "Associated Opportunity ID."
                      },
                      {
                        "name": "subscriptionStartDate",
                        "kind": "optional",
                        "type": "string<date>",
                        "description": "Quote subscription start date.",
                        "format": "date"
                      },
                      {
                        "name": "subscriptionEndDate",
                        "kind": "optional",
                        "type": "string<date>",
                        "description": "Quote subscription end date.",
                        "format": "date"
                      },
                      {
                        "name": "subscriptionTerm",
                        "kind": "optional",
                        "type": "number",
                        "description": "Subscription term."
                      },
                      {
                        "name": "listTotal",
                        "kind": "optional",
                        "type": "number",
                        "description": "Sum of all line item list total prices."
                      },
                      {
                        "name": "subtotal",
                        "kind": "optional",
                        "type": "number",
                        "description": "List total minus system discount amounts."
                      },
                      {
                        "name": "totalPrice",
                        "kind": "optional",
                        "type": "number",
                        "description": "Subtotal minus discretionary discount amounts."
                      },
                      {
                        "name": "discount",
                        "kind": "optional",
                        "type": "number",
                        "description": "<p>Header-level discount percentage.</p>"
                      },
                      {
                        "name": "discountAmount",
                        "kind": "optional",
                        "type": "number",
                        "description": "<p>Header-level discount amount.</p>"
                      },
                      {
                        "name": "currencyIsoCode",
                        "kind": "optional",
                        "type": "string",
                        "description": "<p>Currency ISO code (multi-currency orgs).</p>"
                      }
                    ]
                  },
                  {
                    "name": "quoteLineItems",
                    "kind": "optional",
                    "type": "array",
                    "description": "<p>All line items in flattened, depth-first order. Bundle parents appear first, followed by their children.</p>",
                    "modelRef": "#/components/schemas/QuoteLineItemDTO",
                    "customType": "QuoteLineItemDTO[]",
                    "schema": [
                      {
                        "name": "id",
                        "kind": "optional",
                        "type": "string",
                        "description": "Internal line item ID."
                      },
                      {
                        "name": "parentId",
                        "kind": "optional",
                        "type": "string",
                        "nullable": true,
                        "description": "<p>Parent line item ID (for bundle children). Null for root products.</p>"
                      },
                      {
                        "name": "quoteLineItem",
                        "kind": "optional",
                        "type": "object",
                        "description": "The line item with all calculated pricing fields.",
                        "example": "",
                        "schema": [
                          {
                            "name": "id",
                            "kind": "optional",
                            "type": "string",
                            "nullable": true,
                            "description": "Record ID. Null in preview mode."
                          },
                          {
                            "name": "productSku",
                            "kind": "optional",
                            "type": "string",
                            "description": "Product SKU."
                          },
                          {
                            "name": "productName",
                            "kind": "optional",
                            "type": "string",
                            "description": "Product name."
                          },
                          {
                            "name": "quantity",
                            "kind": "optional",
                            "type": "number",
                            "description": "Number of units."
                          },
                          {
                            "name": "listPrice",
                            "kind": "optional",
                            "type": "number",
                            "description": "<p>Per-unit list price from the Price Book Entry.</p>"
                          },
                          {
                            "name": "subscriptionTerm",
                            "kind": "optional",
                            "type": "number",
                            "description": "Term applied to this line."
                          },
                          {
                            "name": "listTotalPrice",
                            "kind": "optional",
                            "type": "number",
                            "description": "ListPrice x Quantity x Term."
                          },
                          {
                            "name": "systemDiscount",
                            "kind": "optional",
                            "type": "number",
                            "description": "<p>System discount percentage (from price/discount tags).</p>"
                          },
                          {
                            "name": "systemDiscountAmount",
                            "kind": "optional",
                            "type": "number",
                            "description": "System discount amount."
                          },
                          {
                            "name": "subtotal",
                            "kind": "optional",
                            "type": "number",
                            "description": "ListTotalPrice minus SystemDiscountAmount."
                          },
                          {
                            "name": "salesPrice",
                            "kind": "optional",
                            "type": "number",
                            "description": "<p>Per-unit sales price.</p>"
                          },
                          {
                            "name": "netSalesPrice",
                            "kind": "optional",
                            "type": "number",
                            "description": "<p>Per-unit net sales price after system discount.</p>"
                          },
                          {
                            "name": "discount",
                            "kind": "optional",
                            "type": "number",
                            "description": "Discretionary discount percentage."
                          },
                          {
                            "name": "discountAmount",
                            "kind": "optional",
                            "type": "number",
                            "description": "Discretionary discount amount."
                          },
                          {
                            "name": "totalPrice",
                            "kind": "optional",
                            "type": "number",
                            "description": "Subtotal minus DiscountAmount."
                          },
                          {
                            "name": "totalAmount",
                            "kind": "optional",
                            "type": "number",
                            "description": "TotalPrice plus TaxAmount."
                          },
                          {
                            "name": "subscriptionStartDate",
                            "kind": "optional",
                            "type": "string<date>",
                            "description": "<p>Line-level start date.</p>",
                            "format": "date"
                          },
                          {
                            "name": "subscriptionEndDate",
                            "kind": "optional",
                            "type": "string<date>",
                            "description": "<p>Line-level end date.</p>",
                            "format": "date"
                          },
                          {
                            "name": "billingPeriod",
                            "kind": "optional",
                            "type": "string",
                            "description": "Billing period."
                          },
                          {
                            "name": "billingTiming",
                            "kind": "optional",
                            "type": "string",
                            "description": "Billing timing."
                          },
                          {
                            "name": "autoRenew",
                            "kind": "optional",
                            "type": "boolean",
                            "description": "<p>Auto-renewal setting.</p>"
                          },
                          {
                            "name": "evergreen",
                            "kind": "optional",
                            "type": "boolean",
                            "description": "Whether this is an evergreen subscription."
                          }
                        ]
                      },
                      {
                        "name": "uom",
                        "kind": "optional",
                        "type": "object",
                        "description": "The resolved Unit of Measure.",
                        "example": "",
                        "schema": [
                          {
                            "name": "name",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          },
                          {
                            "name": "quantityDimension",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          },
                          {
                            "name": "termDimension",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          }
                        ]
                      },
                      {
                        "name": "product",
                        "kind": "optional",
                        "type": "object",
                        "description": "Product metadata.",
                        "example": "",
                        "schema": [
                          {
                            "name": "id",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          },
                          {
                            "name": "name",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          },
                          {
                            "name": "sku",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          },
                          {
                            "name": "revenueModel",
                            "kind": "optional",
                            "type": "string",
                            "description": "<p>Revenue model: Recurring, OneTime, Usage, Credit, CRBD, CCRBD.</p>"
                          }
                        ]
                      },
                      {
                        "name": "productOption",
                        "kind": "optional",
                        "type": "object",
                        "nullable": true,
                        "description": "<p>Product option details (for bundle children).</p>",
                        "example": "",
                        "schema": [
                          {
                            "name": "id",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          },
                          {
                            "name": "optionType",
                            "kind": "optional",
                            "type": "string",
                            "description": "<p>Type: Bundled, Required, Optional, Recommended.</p>"
                          }
                        ]
                      },
                      {
                        "name": "appliedPriceTags",
                        "kind": "optional",
                        "type": "array",
                        "description": "<p>Price/discount tags applied to this line.</p>",
                        "example": "",
                        "itemType": "object",
                        "customType": "object[]",
                        "schema": [
                          {
                            "name": "id",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          },
                          {
                            "name": "name",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          },
                          {
                            "name": "code",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          },
                          {
                            "name": "type",
                            "kind": "optional",
                            "type": "string",
                            "description": "Price or Discount."
                          }
                        ]
                      },
                      {
                        "name": "childrenLineItems",
                        "kind": "optional",
                        "type": "array",
                        "description": "<p>Nested child line items (for bundle parents).</p>",
                        "modelRef": "#/components/schemas/QuoteLineItemDTO",
                        "customType": "QuoteLineItemDTO[]",
                        "schema": [
                          {
                            "name": "",
                            "description": "",
                            "customType": "Circular-Reference"
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "name": "warnings",
                "kind": "optional",
                "type": "array",
                "description": "<p>Non-fatal warnings (present even on success).</p>",
                "modelRef": "#/components/schemas/Message",
                "customType": "Message[]",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Severity level: Error, Warning, or FATAL.</p>"
                  },
                  {
                    "name": "errorType",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Specific error or warning code (e.g., PRODUCT_SKU_OR_NAME_REQUIRED, DUPLICATE_PRICE_TAG).</p>"
                  },
                  {
                    "name": "message",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Human-readable description.</p>"
                  }
                ]
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "description": "<p>Error details. Populated when <code>status</code> is <code>FAILURE</code>.</p>",
                "modelRef": "#/components/schemas/Message",
                "customType": "Message[]",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Severity level: Error, Warning, or FATAL.</p>"
                  },
                  {
                    "name": "errorType",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Specific error or warning code (e.g., PRODUCT_SKU_OR_NAME_REQUIRED, DUPLICATE_PRICE_TAG).</p>"
                  },
                  {
                    "name": "message",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Human-readable description.</p>"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/CreateQuoteResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Validation error in the request.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Error response",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "code",
                "kind": "optional",
                "type": "integer",
                "description": "HTTP status code",
                "example": 400
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "Error message",
                "example": "Bad Request"
              },
              {
                "name": "details",
                "kind": "optional",
                "type": "string",
                "description": "Detailed error information",
                "example": "Required field 'name' is missing"
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "<p>Authentication failed — missing or invalid API key.</p>",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "500",
        "description": "Internal server error.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Error response",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "code",
                "kind": "optional",
                "type": "integer",
                "description": "HTTP status code",
                "example": 400
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "Error message",
                "example": "Bad Request"
              },
              {
                "name": "details",
                "kind": "optional",
                "type": "string",
                "description": "Detailed error information",
                "example": "Required field 'name' is missing"
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "65KaRE81Br_G2ScBTUt-z",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.nue.io/cpq/quotes \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"name\": \"Enterprise Deal Q1 2025\",\n     \"opportunityId\": \"opp-123e4567-e89b-12d3-a456-426614174000\",\n     \"products\": [\n     {\n     \"customPricingAttributes\": [\n     {\n     \"name\": \"Ruby__PricingAttribute_3__c\",\n     \"value\": \"New Business\"\n     }\n     ]\n     }\n     ]\n     }'"
        },
        {
          "id": "5MrXbW-zDs63otEw59Byk",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"name\": \"Enterprise Deal Q1 2025\",\n   \"opportunityId\": \"opp-123e4567-e89b-12d3-a456-426614174000\",\n   \"products\": [\n      {\n         \"customPricingAttributes\": [\n            {\n               \"name\": \"Ruby__PricingAttribute_3__c\",\n               \"value\": \"New Business\"\n            }\n         ]\n      }\n   ]\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/cpq/quotes\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "N0wmQ8OnPhcBT4mSZdhHe",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/cpq/quotes\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"name\": \"Enterprise Deal Q1 2025\",\n   \"opportunityId\": \"opp-123e4567-e89b-12d3-a456-426614174000\",\n   \"products\": [\n      {\n         \"customPricingAttributes\": [\n            {\n               \"name\": \"Ruby__PricingAttribute_3__c\",\n               \"value\": \"New Business\"\n            }\n         ]\n      }\n   ]\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "t4t1vaMcDKqgvXE4CKsOI",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/cpq/quotes\"\n\npayload = json.dumps({\n   \"name\": \"Enterprise Deal Q1 2025\",\n   \"opportunityId\": \"opp-123e4567-e89b-12d3-a456-426614174000\",\n   \"products\": [\n      {\n         \"customPricingAttributes\": [\n            {\n               \"name\": \"Ruby__PricingAttribute_3__c\",\n               \"value\": \"New Business\"\n            }\n         ]\n      }\n   ]\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "65KaRE81Br_G2ScBTUt-z"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Quote created successfully.\n{\n  \"status\": \"\",\n  \"data\": {\n    \"quote\": {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"opportunityId\": \"\",\n      \"subscriptionStartDate\": \"\",\n      \"subscriptionEndDate\": \"\",\n      \"subscriptionTerm\": 0,\n      \"listTotal\": 0,\n      \"subtotal\": 0,\n      \"totalPrice\": 0,\n      \"discount\": 0,\n      \"discountAmount\": 0,\n      \"currencyIsoCode\": \"\"\n    },\n    \"quoteLineItems\": [\n      {\n        \"id\": \"\",\n        \"parentId\": \"\",\n        \"quoteLineItem\": {\n          \"id\": \"\",\n          \"productSku\": \"\",\n          \"productName\": \"\",\n          \"quantity\": 0,\n          \"listPrice\": 0,\n          \"subscriptionTerm\": 0,\n          \"listTotalPrice\": 0,\n          \"systemDiscount\": 0,\n          \"systemDiscountAmount\": 0,\n          \"subtotal\": 0,\n          \"salesPrice\": 0,\n          \"netSalesPrice\": 0,\n          \"discount\": 0,\n          \"discountAmount\": 0,\n          \"totalPrice\": 0,\n          \"totalAmount\": 0,\n          \"subscriptionStartDate\": \"\",\n          \"subscriptionEndDate\": \"\",\n          \"billingPeriod\": \"\",\n          \"billingTiming\": \"\",\n          \"autoRenew\": false,\n          \"evergreen\": false\n        },\n        \"uom\": {\n          \"name\": \"\",\n          \"quantityDimension\": \"\",\n          \"termDimension\": \"\"\n        },\n        \"product\": {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"sku\": \"\",\n          \"revenueModel\": \"\"\n        },\n        \"productOption\": {\n          \"id\": \"\",\n          \"optionType\": \"\"\n        },\n        \"appliedPriceTags\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"code\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"childrenLineItems\": [\n          {\n            \"\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"warnings\": [\n    {\n      \"errorCode\": \"\",\n      \"errorType\": \"\",\n      \"message\": \"\"\n    }\n  ],\n  \"errors\": [\n    {\n      \"errorCode\": \"\",\n      \"errorType\": \"\",\n      \"message\": \"\"\n    }\n  ]\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// Validation error in the request.\n{\n  \"code\": 400,\n  \"message\": \"Bad Request\",\n  \"details\": \"Required field 'name' is missing\"\n}"
        },
        {
          "id": "response-2-401",
          "language": "401",
          "code": "// Authentication failed — missing or invalid API key.\n"
        },
        {
          "id": "response-3-500",
          "language": "500",
          "code": "// Internal server error.\n{\n  \"code\": 400,\n  \"message\": \"Bad Request\",\n  \"details\": \"Required field 'name' is missing\"\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}