---
title: Preview Order
slug: preview-order
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "CzWnp7UFcHKGYskg00fG4",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.nue.io/cpq/orders:preview",
    "servers": [
      {
        "url": "https://api.nue.io/cpq/orders:preview",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/cpq/orders:preview",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Preview Order",
    "description": "<p>Preview a new order without persisting it (<code>isCommit=false</code>). Runs the full pricing engine — product resolution, bundle expansion, price tags, discounts — and returns the priced order, but does not write to the database.</p>\n<p>Use this endpoint to validate payloads and inspect pricing before committing.</p>",
    "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",
          "example": "{\"customerId\":\"001xx000003GYn1AAG\",\"priceBookId\":\"01sxx000000ABCDEF\",\"subscriptionStartDate\":\"2026-01-01\",\"subscriptionTerm\":12,\"subscriptionTermDimension\":\"Month\",\"currencyIsoCode\":\"USD\",\"billingPeriod\":\"Month\",\"products\":[{\"productSku\":\"PLATFORM-BASE\",\"uom\":\"Each\",\"quantity\":1}]}",
          "examples": [
            {
              "label": "Simple order with one product",
              "value": "{\"customerId\":\"001xx000003GYn1AAG\",\"priceBookId\":\"01sxx000000ABCDEF\",\"subscriptionStartDate\":\"2026-01-01\",\"subscriptionTerm\":12,\"subscriptionTermDimension\":\"Month\",\"currencyIsoCode\":\"USD\",\"billingPeriod\":\"Month\",\"products\":[{\"productSku\":\"PLATFORM-BASE\",\"uom\":\"Each\",\"quantity\":1}]}"
            }
          ],
          "description": "<p>Order properties, products, and price tags</p>",
          "customType": "NewCreateOrderRequest",
          "schema": [
            {
              "name": "customerId",
              "kind": "required",
              "type": "string",
              "description": "<p>The customer (account) ID.</p>"
            },
            {
              "name": "priceBookId",
              "kind": "optional",
              "type": "string",
              "description": "<p>The price book ID used for this order. Optional — defaults to the org's active Standard Price Book.</p>"
            },
            {
              "name": "billingAccountId",
              "kind": "optional",
              "type": "string",
              "description": "<p>The billing account ID. Optional — defaults to the customer's billing account.</p>"
            },
            {
              "name": "billingPeriod",
              "kind": "optional",
              "type": "string<Month | Quarter | Semi-Annual | Annual>",
              "description": "<p>Billing period at the order header. Accepts the values defined on <code>Order.BillingPeriod__c</code>: <code>Month</code>, <code>Quarter</code>, <code>Semi-Annual</code>, <code>Annual</code>. Note: at the header, pass the picklist value, not the label (<code>Monthly</code> is rejected — use <code>Month</code>). At the per-line level (<code>products[].billingPeriod</code>), both label and value are accepted.</p>",
              "enum": [
                "Month",
                "Quarter",
                "Semi-Annual",
                "Annual"
              ]
            },
            {
              "name": "billCycleDay",
              "kind": "optional",
              "type": "string",
              "description": "The day of the month when billing occurs.",
              "example": "1st of Month"
            },
            {
              "name": "description",
              "kind": "optional",
              "type": "string",
              "description": "A description of the order."
            },
            {
              "name": "currencyIsoCode",
              "kind": "optional",
              "type": "string",
              "description": "<p>ISO currency code for the order. In multi-currency orgs, defaults to the customer's <code>Account.CurrencyIsoCode</code>. In single-currency orgs the field is ignored.</p>",
              "example": "USD"
            },
            {
              "name": "subscriptionStartDate",
              "kind": "optional",
              "type": "string<date>",
              "description": "Subscription start date. Defaults to today.",
              "example": "2026-01-01",
              "format": "date"
            },
            {
              "name": "subscriptionEndDate",
              "kind": "optional",
              "type": "string<date>",
              "description": "<p>Subscription end date. Optional — derived from <code>subscriptionStartDate + subscriptionTerm</code> if omitted. The API uses an inclusive end date convention.</p>",
              "example": "2026-12-31",
              "format": "date"
            },
            {
              "name": "subscriptionTerm",
              "kind": "optional",
              "type": "number",
              "description": "<p>Subscription term length. Optional — derived from start + end if <code>subscriptionEndDate</code> is provided, or falls back to the product's default subscription term.</p>",
              "example": 12
            },
            {
              "name": "subscriptionTermDimension",
              "kind": "optional",
              "type": "string<Month | Year>",
              "description": "Unit of measurement for subscription term.",
              "example": "Month",
              "enum": [
                "Month",
                "Year"
              ]
            },
            {
              "name": "autoRenew",
              "kind": "optional",
              "type": "boolean",
              "description": "<p>Whether recurring items will auto-renew. Tenant-dependent — only accepted if <code>Order.AutoRenew__c</code> exists on the tenant's Order metadata.</p>"
            },
            {
              "name": "paymentTerm",
              "kind": "optional",
              "type": "string",
              "description": "<p>Invoice payment schedule. Tenant-dependent — only accepted if <code>Order.PaymentTerm__c</code> exists on the tenant's Order metadata.</p>"
            },
            {
              "name": "opportunityId",
              "kind": "optional",
              "type": "string",
              "description": "<p>Salesforce Opportunity ID. When provided, the pricing engine uses Opportunity-derived pricing-attribute conditions to filter the candidate Price Book Entries.</p>"
            },
            {
              "name": "name",
              "kind": "optional",
              "type": "string",
              "description": "<p>Optional human-readable order name.</p>"
            },
            {
              "name": "partnerPayoutPercentage",
              "kind": "optional",
              "type": "number",
              "description": "<p>Partner payout as a percentage (0-100), shown as Partner Discount % in the Line Editor. Send this or partnerPayoutAmount, not both; Nue derives the other.</p>"
            },
            {
              "name": "partnerPayoutAmount",
              "kind": "optional",
              "type": "number",
              "description": "<p>Partner payout as a fixed amount. Send this or partnerPayoutPercentage, not both; Nue derives the percentage from the record's total price and stores the amount as sent.</p>"
            },
            {
              "name": "products",
              "kind": "required",
              "type": "array",
              "description": "Products to add to the order. At least one product is required.",
              "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>Order-level price 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"
                }
              ]
            }
          ],
          "modelRef": "#/components/schemas/NewCreateOrderRequest",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "ApiKeyAuth",
          "name": "nue-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "<p>Order preview calculated successfully (not persisted)</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "<p>Response from POST /cpq/orders containing the created order and its products.</p>",
            "customType": "CreateOrderCompositeResponse",
            "schema": [
              {
                "name": "order",
                "kind": "optional",
                "type": "map",
                "description": "The created order record with all field values",
                "example": "",
                "customType": "map<string, string>",
                "schema": []
              },
              {
                "name": "orderProducts",
                "kind": "optional",
                "type": "array",
                "description": "The list of order products created",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "itemExample": "",
                "itemDefault": ""
              }
            ],
            "modelRef": "#/components/schemas/CreateOrderCompositeResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Invalid request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "<p>Error envelope returned by the CPQ REST endpoints, including Update Quote, Update Order, and PATCH /api/objects/{Quote,Order}/{id}. <code>errorDetails</code> is omitted when empty.</p>",
            "customType": "ApiErrorResponse",
            "schema": [
              {
                "name": "status",
                "kind": "optional",
                "type": "integer",
                "description": "HTTP status code.",
                "example": 400
              },
              {
                "name": "error",
                "kind": "optional",
                "type": "string",
                "description": "Short error title.",
                "example": "Failed to update quote"
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "<p>Human-readable message. For a single failure it matches the first errorDetails entry.</p>"
              },
              {
                "name": "errorDetails",
                "kind": "optional",
                "type": "array",
                "description": "<p>One entry per failure, each with a semantic errorCode.</p>",
                "modelRef": "#/components/schemas/ErrorDetail",
                "customType": "ErrorDetail[]",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Semantic error code.",
                    "example": "QUOTE_NOT_FOUND"
                  },
                  {
                    "name": "message",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Human-readable error message.</p>"
                  },
                  {
                    "name": "path",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Where in the request the error is about, when it is about one place, for example body.buckets[2]. Absent when the error is about the call as a whole.</p>",
                    "example": "body.buckets[2].allocations[0]"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/ApiErrorResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Unauthorized",
        "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": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.nue.io/cpq/orders:preview \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"customerId\": \"\",\n     \"products\": [\n     {\n     \"customPricingAttributes\": [\n     {\n     \"name\": \"Ruby__PricingAttribute_3__c\",\n     \"value\": \"New Business\"\n     }\n     ]\n     }\n     ]\n     }'"
        },
        {
          "id": "example-1-javascript",
          "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   \"customerId\": \"\",\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/orders:preview\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/cpq/orders:preview\")\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   \"customerId\": \"\",\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": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/cpq/orders:preview\"\n\npayload = json.dumps({\n   \"customerId\": \"\",\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": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Order preview calculated successfully (not persisted)\n{\n  \"order\": \"\",\n  \"orderProducts\": [\n    {}\n  ]\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// Invalid request\n{\n  \"status\": 400,\n  \"error\": \"Failed to update quote\",\n  \"message\": \"\",\n  \"errorDetails\": [\n    {\n      \"errorCode\": \"QUOTE_NOT_FOUND\",\n      \"message\": \"\",\n      \"path\": \"body.buckets[2].allocations[0]\"\n    }\n  ]\n}"
        },
        {
          "id": "response-2-401",
          "language": "401",
          "code": "// Unauthorized\n{\n  \"code\": 400,\n  \"message\": \"Bad Request\",\n  \"details\": \"Required field 'name' is missing\"\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}