---
title: Partially updates a specific purchase order.
slug: commerce-connect-15/service-api/partially-updates-a-specific-purchase-order
docTags: 
createdAt: 2026-08-28T14:35:17.970Z
---

{
  "id": "EYHDr0d_Xwh0x-5OPjkJ-",
  "type": "api-oas-v2",
  "data": {
    "method": "PATCH",
    "url": "http://localhost:64424/episerverapi/commerce/orders/{orderGroupId}",
    "servers": [
      {
        "url": "http://localhost:64424/episerverapi/commerce/orders/{orderGroupId}"
      },
      {
        "url": "https://localhost:64424/episerverapi/commerce/orders/{orderGroupId}"
      }
    ],
    "name": "Partially updates a specific purchase order.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "orderGroupId",
          "type": "integer<int32>",
          "description": "Purchase order id.",
          "format": "int32"
        }
      ],
      "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": "Purchase order model.",
          "customType": "EPiServer.ServiceApi.Commerce.Models.Order.PurchaseOrderModel",
          "schema": [
            {
              "name": "OrderNumber",
              "kind": "optional",
              "type": "string",
              "description": "An order number used for tracking the order."
            },
            {
              "name": "AddressId",
              "kind": "optional",
              "type": "string",
              "description": "Address ID."
            },
            {
              "name": "AffiliateId",
              "kind": "optional",
              "type": "string<uuid>",
              "description": "<p>Affiliate ID (GUID).</p>",
              "example": "00000000-0000-0000-0000-000000000000",
              "format": "uuid"
            },
            {
              "name": "BillingCurrency",
              "kind": "optional",
              "type": "string",
              "description": "Billing currency."
            },
            {
              "name": "CustomerId",
              "kind": "optional",
              "type": "string<uuid>",
              "description": "<p>Customer ID (GUID).</p>",
              "example": "00000000-0000-0000-0000-000000000000",
              "format": "uuid"
            },
            {
              "name": "CustomerName",
              "kind": "optional",
              "type": "string",
              "description": "Customer name."
            },
            {
              "name": "HandlingTotal",
              "kind": "optional",
              "type": "number<double>",
              "description": "Handling total.",
              "format": "double"
            },
            {
              "name": "InstanceId",
              "kind": "optional",
              "type": "string<uuid>",
              "description": "<p>Instance ID (GUID).</p>",
              "example": "00000000-0000-0000-0000-000000000000",
              "format": "uuid"
            },
            {
              "name": "MarketId",
              "kind": "optional",
              "type": "string",
              "description": "Market ID."
            },
            {
              "name": "Name",
              "kind": "required",
              "type": "string",
              "description": "Order name."
            },
            {
              "name": "OrderAddresses",
              "kind": "optional",
              "type": "array",
              "description": "List of addresses.",
              "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.OrderAddressModel",
              "customType": "EPiServer.ServiceApi.Commerce.Models.Order.OrderAddressModel[]",
              "schema": [
                {
                  "name": "OrderGroupAddressId",
                  "kind": "optional",
                  "type": "integer<int32>",
                  "description": "Gets the order group address id.",
                  "format": "int32"
                },
                {
                  "name": "Name",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the name."
                },
                {
                  "name": "FirstName",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the first name."
                },
                {
                  "name": "LastName",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets last name."
                },
                {
                  "name": "Organization",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the organization."
                },
                {
                  "name": "Line1",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the line1."
                },
                {
                  "name": "Line2",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the line2."
                },
                {
                  "name": "City",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the city."
                },
                {
                  "name": "State",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the state."
                },
                {
                  "name": "CountryCode",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the country code."
                },
                {
                  "name": "CountryName",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the name of the country."
                },
                {
                  "name": "PostalCode",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the postal code."
                },
                {
                  "name": "RegionCode",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the region code."
                },
                {
                  "name": "RegionName",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the name of the region."
                },
                {
                  "name": "DaytimePhoneNumber",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the daytime phone number."
                },
                {
                  "name": "EveningPhoneNumber",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the evening phone number."
                },
                {
                  "name": "FaxNumber",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the fax number."
                },
                {
                  "name": "Email",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the email."
                },
                {
                  "name": "Properties",
                  "kind": "optional",
                  "type": "array",
                  "description": "Gets the list of key value pairs for dealing with custom properties.",
                  "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel",
                  "customType": "EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel[]",
                  "schema": [
                    {
                      "name": "Key",
                      "kind": "optional",
                      "type": "string",
                      "description": "Key of the property."
                    },
                    {
                      "name": "Value",
                      "kind": "optional",
                      "type": "string",
                      "description": "Value of the property."
                    }
                  ]
                }
              ]
            },
            {
              "name": "OrderForms",
              "kind": "optional",
              "type": "array",
              "description": "List of order forms.",
              "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.OrderFormModel",
              "customType": "EPiServer.ServiceApi.Commerce.Models.Order.OrderFormModel[]",
              "schema": [
                {
                  "name": "Shipments",
                  "kind": "optional",
                  "type": "array",
                  "description": "Gets or sets the shipments.",
                  "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.ShipmentModel",
                  "customType": "EPiServer.ServiceApi.Commerce.Models.Order.ShipmentModel[]",
                  "schema": [
                    {
                      "name": "DiscountsModel",
                      "kind": "optional",
                      "type": "array",
                      "description": "Gets the discounts.",
                      "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.DiscountModel",
                      "customType": "EPiServer.ServiceApi.Commerce.Models.Order.DiscountModel[]",
                      "schema": [
                        {
                          "name": "DiscountId",
                          "kind": "optional",
                          "type": "integer<int32>",
                          "description": "Gets or sets the discount id.",
                          "format": "int32"
                        },
                        {
                          "name": "DiscountAmount",
                          "kind": "optional",
                          "type": "number<double>",
                          "description": "Gets or sets the discount amount. Either fixed money value or percentage.",
                          "format": "double"
                        },
                        {
                          "name": "DiscountCode",
                          "kind": "optional",
                          "type": "string",
                          "description": "Gets or sets the discount code. Also known as a coupon code."
                        },
                        {
                          "name": "DiscountName",
                          "kind": "optional",
                          "type": "string",
                          "description": "Gets or sets the name of the discount."
                        },
                        {
                          "name": "DisplayMessage",
                          "kind": "optional",
                          "type": "string",
                          "description": "Gets or sets the display message."
                        },
                        {
                          "name": "DiscountValue",
                          "kind": "optional",
                          "type": "number<double>",
                          "description": "Gets or sets the discount amount. The amount of discount that was applied. It will equal to DiscountAmount\r\nif it is a fixed monetary value. For the percentage based discount this value will be different.",
                          "format": "double"
                        }
                      ]
                    },
                    {
                      "name": "ShipmentId",
                      "kind": "optional",
                      "type": "integer<int32>",
                      "description": "Gets the shipment id.",
                      "format": "int32"
                    },
                    {
                      "name": "ShippingMethodId",
                      "kind": "optional",
                      "type": "string<uuid>",
                      "description": "Gets or sets the shipping method id.",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "format": "uuid"
                    },
                    {
                      "name": "ShippingMethodName",
                      "kind": "optional",
                      "type": "string",
                      "description": "Gets or sets the name of the shipping method."
                    },
                    {
                      "name": "ShippingTax",
                      "kind": "optional",
                      "type": "number<double>",
                      "description": "Gets or sets the shipment tax.",
                      "format": "double"
                    },
                    {
                      "name": "ShippingAddressId",
                      "kind": "optional",
                      "type": "string",
                      "description": "Gets or sets the shipping address name."
                    },
                    {
                      "name": "ShipmentTrackingNumber",
                      "kind": "optional",
                      "type": "string",
                      "description": "Gets or sets the shipment tracking number."
                    },
                    {
                      "name": "ShippingDiscountAmount",
                      "kind": "optional",
                      "type": "number<double>",
                      "description": "Gets or sets the shipping discount amount.",
                      "format": "double"
                    },
                    {
                      "name": "ShippingSubTotal",
                      "kind": "optional",
                      "type": "number<double>",
                      "description": "Gets or sets the shipping sub total.",
                      "format": "double"
                    },
                    {
                      "name": "ShippingTotal",
                      "kind": "optional",
                      "type": "number<double>",
                      "description": "<p>Gets or sets the total shipping cost, including shipping discounts (if any) and shipping tax.</p>",
                      "format": "double"
                    },
                    {
                      "name": "Status",
                      "kind": "optional",
                      "type": "string",
                      "description": "Gets or sets the status."
                    },
                    {
                      "name": "PrevStatus",
                      "kind": "optional",
                      "type": "string",
                      "description": "Gets or sets the previous status."
                    },
                    {
                      "name": "PickListId",
                      "kind": "optional",
                      "type": "integer<int32>",
                      "description": "Gets or sets the pick list id.",
                      "format": "int32"
                    },
                    {
                      "name": "SubTotal",
                      "kind": "optional",
                      "type": "number<double>",
                      "description": "Gets or sets the sub total.",
                      "format": "double"
                    },
                    {
                      "name": "WarehouseCode",
                      "kind": "optional",
                      "type": "string",
                      "description": "Gets or sets the warehouse code."
                    },
                    {
                      "name": "LineItems",
                      "kind": "optional",
                      "type": "array",
                      "description": "Gets or sets the collection of line items.",
                      "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.LineItemModel",
                      "customType": "EPiServer.ServiceApi.Commerce.Models.Order.LineItemModel[]",
                      "schema": [
                        {
                          "name": "LineItemId",
                          "kind": "optional",
                          "type": "integer<int32>",
                          "description": "Gets the identity of the line item.",
                          "format": "int32"
                        },
                        {
                          "name": "Code",
                          "kind": "optional",
                          "type": "string",
                          "description": "Gets the code of the variation content the line item represent. This property works as the connection between the line item and the variation content."
                        },
                        {
                          "name": "DisplayName",
                          "kind": "optional",
                          "type": "string",
                          "description": "Gets or sets the display name."
                        },
                        {
                          "name": "PlacedPrice",
                          "kind": "optional",
                          "type": "number<double>",
                          "description": "Gets the price for one item that this line item represent. This property don't take any discounts in consideration.",
                          "format": "double"
                        },
                        {
                          "name": "ExtendedPrice",
                          "kind": "optional",
                          "type": "number<double>",
                          "description": "<p>Gets the extended price for the line item. Includes order-level discount amount (which is spread over all line items in the shipment) and the line item discount amount.</p>",
                          "format": "double"
                        },
                        {
                          "name": "DiscountedPrice",
                          "kind": "optional",
                          "type": "number<double>",
                          "description": "<p>Gets the line item discounted price. Only calculates the price with the \"line item discount amount,\" that is, the discount for a specific item.</p>",
                          "format": "double"
                        },
                        {
                          "name": "Quantity",
                          "kind": "optional",
                          "type": "number<double>",
                          "description": "Gets or sets the number of items this line item contains.",
                          "format": "double"
                        },
                        {
                          "name": "ReturnQuantity",
                          "kind": "optional",
                          "type": "number<double>",
                          "description": "Gets or sets the returned in stock quantity.",
                          "format": "double"
                        },
                        {
                          "name": "InventoryTrackingStatus",
                          "kind": "optional",
                          "type": "integer<int32>",
                          "description": "Gets or sets the inventory tracking status on whether to check inventory.",
                          "format": "int32",
                          "enum": [
                            "0",
                            "1"
                          ]
                        },
                        {
                          "name": "IsInventoryAllocated",
                          "kind": "optional",
                          "type": "boolean",
                          "description": "<p>Gets or sets a value indicating whether this instance has allocated inventory for the {EPiServer.Commerce.Order.ILineItem.Quantity}.</p>"
                        },
                        {
                          "name": "IsGift",
                          "kind": "optional",
                          "type": "boolean",
                          "description": "Gets or sets a value indicating whether the line item is a gift item."
                        },
                        {
                          "name": "Properties",
                          "kind": "optional",
                          "type": "array",
                          "description": "Gets the list of key value pairs for dealing with custom properties.",
                          "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel",
                          "customType": "EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel[]",
                          "schema": [
                            {
                              "name": "Key",
                              "kind": "optional",
                              "type": "string",
                              "description": "Key of the property."
                            },
                            {
                              "name": "Value",
                              "kind": "optional",
                              "type": "string",
                              "description": "Value of the property."
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Properties",
                      "kind": "optional",
                      "type": "array",
                      "description": "Gets or sets the list of key value pairs for dealing with custom properties.",
                      "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel",
                      "customType": "EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel[]",
                      "schema": [
                        {
                          "name": "Key",
                          "kind": "optional",
                          "type": "string",
                          "description": "Key of the property."
                        },
                        {
                          "name": "Value",
                          "kind": "optional",
                          "type": "string",
                          "description": "Value of the property."
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "LineItems",
                  "kind": "optional",
                  "type": "array",
                  "description": "Gets or sets the line items.",
                  "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.LineItemModel",
                  "customType": "EPiServer.ServiceApi.Commerce.Models.Order.LineItemModel[]",
                  "schema": [
                    {
                      "name": "LineItemId",
                      "kind": "optional",
                      "type": "integer<int32>",
                      "description": "Gets the identity of the line item.",
                      "format": "int32"
                    },
                    {
                      "name": "Code",
                      "kind": "optional",
                      "type": "string",
                      "description": "Gets the code of the variation content the line item represent. This property works as the connection between the line item and the variation content."
                    },
                    {
                      "name": "DisplayName",
                      "kind": "optional",
                      "type": "string",
                      "description": "Gets or sets the display name."
                    },
                    {
                      "name": "PlacedPrice",
                      "kind": "optional",
                      "type": "number<double>",
                      "description": "Gets the price for one item that this line item represent. This property don't take any discounts in consideration.",
                      "format": "double"
                    },
                    {
                      "name": "ExtendedPrice",
                      "kind": "optional",
                      "type": "number<double>",
                      "description": "<p>Gets the extended price for the line item. Includes order-level discount amount (which is spread over all line items in the shipment) and the line item discount amount.</p>",
                      "format": "double"
                    },
                    {
                      "name": "DiscountedPrice",
                      "kind": "optional",
                      "type": "number<double>",
                      "description": "<p>Gets the line item discounted price. Only calculates the price with the \"line item discount amount,\" that is, the discount for a specific item.</p>",
                      "format": "double"
                    },
                    {
                      "name": "Quantity",
                      "kind": "optional",
                      "type": "number<double>",
                      "description": "Gets or sets the number of items this line item contains.",
                      "format": "double"
                    },
                    {
                      "name": "ReturnQuantity",
                      "kind": "optional",
                      "type": "number<double>",
                      "description": "Gets or sets the returned in stock quantity.",
                      "format": "double"
                    },
                    {
                      "name": "InventoryTrackingStatus",
                      "kind": "optional",
                      "type": "integer<int32>",
                      "description": "Gets or sets the inventory tracking status on whether to check inventory.",
                      "format": "int32",
                      "enum": [
                        "0",
                        "1"
                      ]
                    },
                    {
                      "name": "IsInventoryAllocated",
                      "kind": "optional",
                      "type": "boolean",
                      "description": "<p>Gets or sets a value indicating whether this instance has allocated inventory for the {EPiServer.Commerce.Order.ILineItem.Quantity}.</p>"
                    },
                    {
                      "name": "IsGift",
                      "kind": "optional",
                      "type": "boolean",
                      "description": "Gets or sets a value indicating whether the line item is a gift item."
                    },
                    {
                      "name": "Properties",
                      "kind": "optional",
                      "type": "array",
                      "description": "Gets the list of key value pairs for dealing with custom properties.",
                      "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel",
                      "customType": "EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel[]",
                      "schema": [
                        {
                          "name": "Key",
                          "kind": "optional",
                          "type": "string",
                          "description": "Key of the property."
                        },
                        {
                          "name": "Value",
                          "kind": "optional",
                          "type": "string",
                          "description": "Value of the property."
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "Payments",
                  "kind": "optional",
                  "type": "array",
                  "description": "",
                  "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.PaymentModel",
                  "customType": "EPiServer.ServiceApi.Commerce.Models.Order.PaymentModel[]",
                  "schema": [
                    {
                      "name": "Amount",
                      "kind": "optional",
                      "type": "number<double>",
                      "description": "",
                      "format": "double"
                    },
                    {
                      "name": "AuthorizationCode",
                      "kind": "optional",
                      "type": "string",
                      "description": ""
                    },
                    {
                      "name": "BillingAddressId",
                      "kind": "optional",
                      "type": "string",
                      "description": ""
                    },
                    {
                      "name": "CustomerName",
                      "kind": "optional",
                      "type": "string",
                      "description": ""
                    },
                    {
                      "name": "ImplementationClass",
                      "kind": "optional",
                      "type": "string",
                      "description": ""
                    },
                    {
                      "name": "PaymentId",
                      "kind": "optional",
                      "type": "integer<int32>",
                      "description": "",
                      "format": "int32"
                    },
                    {
                      "name": "PaymentMethodId",
                      "kind": "optional",
                      "type": "string<uuid>",
                      "description": "",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "format": "uuid"
                    },
                    {
                      "name": "PaymentMethodName",
                      "kind": "optional",
                      "type": "string",
                      "description": ""
                    },
                    {
                      "name": "PaymentTypeModel",
                      "kind": "optional",
                      "type": "integer<int32>",
                      "description": "",
                      "format": "int32",
                      "enum": [
                        "0",
                        "1",
                        "2",
                        "3",
                        "4",
                        "5"
                      ]
                    },
                    {
                      "name": "Status",
                      "kind": "optional",
                      "type": "string",
                      "description": ""
                    },
                    {
                      "name": "TransactionType",
                      "kind": "optional",
                      "type": "string",
                      "description": ""
                    },
                    {
                      "name": "ValidationCode",
                      "kind": "optional",
                      "type": "string",
                      "description": ""
                    },
                    {
                      "name": "Properties",
                      "kind": "optional",
                      "type": "array",
                      "description": "Custom property item.",
                      "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel",
                      "customType": "EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel[]",
                      "schema": [
                        {
                          "name": "Key",
                          "kind": "optional",
                          "type": "string",
                          "description": "Key of the property."
                        },
                        {
                          "name": "Value",
                          "kind": "optional",
                          "type": "string",
                          "description": "Value of the property."
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "Discounts",
                  "kind": "optional",
                  "type": "array",
                  "description": "Gets or sets the discounts.",
                  "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.DiscountModel",
                  "customType": "EPiServer.ServiceApi.Commerce.Models.Order.DiscountModel[]",
                  "schema": [
                    {
                      "name": "DiscountId",
                      "kind": "optional",
                      "type": "integer<int32>",
                      "description": "Gets or sets the discount id.",
                      "format": "int32"
                    },
                    {
                      "name": "DiscountAmount",
                      "kind": "optional",
                      "type": "number<double>",
                      "description": "Gets or sets the discount amount. Either fixed money value or percentage.",
                      "format": "double"
                    },
                    {
                      "name": "DiscountCode",
                      "kind": "optional",
                      "type": "string",
                      "description": "Gets or sets the discount code. Also known as a coupon code."
                    },
                    {
                      "name": "DiscountName",
                      "kind": "optional",
                      "type": "string",
                      "description": "Gets or sets the name of the discount."
                    },
                    {
                      "name": "DisplayMessage",
                      "kind": "optional",
                      "type": "string",
                      "description": "Gets or sets the display message."
                    },
                    {
                      "name": "DiscountValue",
                      "kind": "optional",
                      "type": "number<double>",
                      "description": "Gets or sets the discount amount. The amount of discount that was applied. It will equal to DiscountAmount\r\nif it is a fixed monetary value. For the percentage based discount this value will be different.",
                      "format": "double"
                    }
                  ]
                },
                {
                  "name": "ReturnComment",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the rma comment."
                },
                {
                  "name": "ReturnType",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p>Gets or sets the Return Type. For example can be \"Refund\", \"Exchange\" etc.</p>"
                },
                {
                  "name": "ReturnAuthCode",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the RMA auth code. Using for procedure RMA authentications."
                },
                {
                  "name": "OrderFormId",
                  "kind": "optional",
                  "type": "integer<int32>",
                  "description": "Gets the order form id.",
                  "format": "int32"
                },
                {
                  "name": "Name",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the name."
                },
                {
                  "name": "BillingAddressId",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the billing address id. The id is the name of the address in OrderAddress collection."
                },
                {
                  "name": "ShippingTotal",
                  "kind": "optional",
                  "type": "number<double>",
                  "description": "<p>Gets or sets the shipping total, does not includes discounts that have been applied to each shipment.</p>",
                  "format": "double"
                },
                {
                  "name": "HandlingTotal",
                  "kind": "optional",
                  "type": "number<double>",
                  "description": "Gets or sets the handling total.",
                  "format": "double"
                },
                {
                  "name": "TaxTotal",
                  "kind": "optional",
                  "type": "number<double>",
                  "description": "Gets or sets the tax total.",
                  "format": "double"
                },
                {
                  "name": "DiscountAmount",
                  "kind": "optional",
                  "type": "number<double>",
                  "description": "Gets or sets the discount amount. This amount includes shipping discounts as well.",
                  "format": "double"
                },
                {
                  "name": "SubTotal",
                  "kind": "optional",
                  "type": "number<double>",
                  "description": "Gets or sets the sub total.",
                  "format": "double"
                },
                {
                  "name": "Total",
                  "kind": "optional",
                  "type": "number<double>",
                  "description": "Gets or sets the total.",
                  "format": "double"
                },
                {
                  "name": "Status",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the status."
                },
                {
                  "name": "RmaNumber",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets the RMA number."
                },
                {
                  "name": "AuthorizedPaymentTotal",
                  "kind": "optional",
                  "type": "number<double>",
                  "description": "Gets or sets the authorized payment total.",
                  "format": "double"
                },
                {
                  "name": "CapturedPaymentTotal",
                  "kind": "optional",
                  "type": "number<double>",
                  "description": "Gets or sets the captured payment total.",
                  "format": "double"
                },
                {
                  "name": "Properties",
                  "kind": "optional",
                  "type": "array",
                  "description": "Gets the list of key value pairs for dealing with custom properties.",
                  "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel",
                  "customType": "EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel[]",
                  "schema": [
                    {
                      "name": "Key",
                      "kind": "optional",
                      "type": "string",
                      "description": "Key of the property."
                    },
                    {
                      "name": "Value",
                      "kind": "optional",
                      "type": "string",
                      "description": "Value of the property."
                    }
                  ]
                }
              ]
            },
            {
              "name": "OrderGroupId",
              "kind": "optional",
              "type": "integer<int32>",
              "description": "Order group ID.",
              "format": "int32"
            },
            {
              "name": "OrderNotes",
              "kind": "optional",
              "type": "array",
              "description": "List of order notes.",
              "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.OrderNoteModel",
              "customType": "EPiServer.ServiceApi.Commerce.Models.Order.OrderNoteModel[]",
              "schema": [
                {
                  "name": "OrderNoteId",
                  "kind": "optional",
                  "type": "integer<int32>",
                  "description": "Gets the order note ID.",
                  "format": "int32"
                },
                {
                  "name": "Created",
                  "kind": "optional",
                  "type": "string<date-time>",
                  "description": "Gets Created date.",
                  "format": "date-time"
                },
                {
                  "name": "CustomerId",
                  "kind": "optional",
                  "type": "string<uuid>",
                  "description": "Gets or sets note customer ID.",
                  "example": "00000000-0000-0000-0000-000000000000",
                  "format": "uuid"
                },
                {
                  "name": "Detail",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets note details."
                },
                {
                  "name": "Title",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets note title."
                },
                {
                  "name": "Type",
                  "kind": "optional",
                  "type": "string",
                  "description": "Gets or sets note type."
                },
                {
                  "name": "LineItemId",
                  "kind": "optional",
                  "type": "integer<int32>",
                  "description": "Gets or sets note related line item ID.",
                  "format": "int32"
                }
              ]
            },
            {
              "name": "Owner",
              "kind": "optional",
              "type": "string",
              "description": "Owner name."
            },
            {
              "name": "OwnerOrg",
              "kind": "optional",
              "type": "string",
              "description": "Owner's organization name."
            },
            {
              "name": "ProviderId",
              "kind": "optional",
              "type": "string",
              "description": "Provider ID."
            },
            {
              "name": "ShippingTotal",
              "kind": "optional",
              "type": "number<double>",
              "description": "Shipping total.",
              "format": "double"
            },
            {
              "name": "Status",
              "kind": "optional",
              "type": "string",
              "description": "<p>Status.\r\nValid values:</p>\n<ul>\n<li>AwaitingExchange</li>\n<li>Cancelled</li>\n<li>Completed</li>\n<li>InProgress</li>\n<li>OnHold</li>\n<li>PartiallyShipped.</li>\n</ul>"
            },
            {
              "name": "SubTotal",
              "kind": "optional",
              "type": "number<double>",
              "description": "<p>Sub-total.</p>",
              "format": "double"
            },
            {
              "name": "TaxTotal",
              "kind": "optional",
              "type": "number<double>",
              "description": "Tax total.",
              "format": "double"
            },
            {
              "name": "Total",
              "kind": "optional",
              "type": "number<double>",
              "description": "Total.",
              "format": "double"
            },
            {
              "name": "Modified",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "Modified date.",
              "format": "date-time"
            },
            {
              "name": "Created",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "Created date.",
              "format": "date-time"
            },
            {
              "name": "Properties",
              "kind": "optional",
              "type": "array",
              "description": "Gets the list of key value pairs for dealing with custom properties.",
              "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel",
              "customType": "EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel[]",
              "schema": [
                {
                  "name": "Key",
                  "kind": "optional",
                  "type": "string",
                  "description": "Key of the property."
                },
                {
                  "name": "Value",
                  "kind": "optional",
                  "type": "string",
                  "description": "Value of the property."
                }
              ]
            }
          ],
          "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.PurchaseOrderModel",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "204",
        "description": "The order is saved.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "If the purchase order model is not valid.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "If order does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "Bm61X38ygfwaRSNMklk3V",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PATCH \\\n     --url http://localhost:64424/episerverapi/commerce/orders/{orderGroupId} \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"Name\": \"\"\n     }'"
        },
        {
          "id": "VjHrBALLLKI6X2h1e0uvT",
          "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\": \"\"\n});\n\nvar requestOptions = {\n   method: 'PATCH',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"http://localhost:64424/episerverapi/commerce/orders/{orderGroupId}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "dQlP2V9M9EXn6tgI_0Hdw",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://localhost:64424/episerverapi/commerce/orders/{orderGroupId}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"Name\": \"\"\n})\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "d254fbOyCISPrjfOChFTy",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://localhost:64424/episerverapi/commerce/orders/{orderGroupId}\"\n\npayload = json.dumps({\n   \"Name\": \"\"\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"PATCH\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "Bm61X38ygfwaRSNMklk3V"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-204",
          "language": "204",
          "code": "// The order is saved.\n{}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// If the purchase order model is not valid.\n"
        },
        {
          "id": "response-2-401",
          "language": "401",
          "code": "// If user does not have enough permission for this request.\n"
        },
        {
          "id": "response-3-404",
          "language": "404",
          "code": "// If order does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-204"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}