{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-commerce-cloud/json-schema/salesforce-commerce-cloud-basket-schema.json",
  "title": "Basket",
  "description": "Document representing a basket.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-commerce-cloud-shopper-baskets-api-openapi.yml#/components/schemas/Basket",
  "additionalProperties": {
    "title": "Additional Property Support",
    "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
  },
  "properties": {
    "adjustedMerchandizeTotalTax": {
      "format": "double",
      "description": "The total tax on products in the shipment, including item-level price adjustments but not\nincluding service charges such as shipping. If the Discount Taxation preference is set to Tax\nProducts and Shipping Only Based on Adjusted Price, this amount also includes prorated\norder-level price adjustments. It is read only.",
      "type": "number"
    },
    "adjustedShippingTotalTax": {
      "format": "double",
      "description": "The total tax on shipping charges in the shipment, including shipping price adjustments. It is read only.",
      "type": "number"
    },
    "agentBasket": {
      "description": "Is the basket created by an agent? It is read only.",
      "type": "boolean"
    },
    "basketId": {
      "description": "The unique identifier for the basket. It is read only.",
      "type": "string"
    },
    "billingAddress": {
      "description": "The billing address.",
      "allOf": [
        {
          "$ref": "#/$defs/OrderAddress"
        }
      ]
    },
    "bonusDiscountLineItems": {
      "description": "The bonus discount line items.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/BonusDiscountLineItem"
      }
    },
    "channelType": {
      "description": "The sales channel. It is read only.",
      "enum": [
        "storefront",
        "callcenter",
        "marketplace",
        "dss",
        "store",
        "pinterest",
        "twitter",
        "facebookads",
        "subscriptions",
        "onlinereservation",
        "customerservicecenter",
        "instagramcommerce",
        "tiktok",
        "snapchat",
        "google",
        "whatsapp",
        "youtube",
        "chatgpt",
        "gemini"
      ],
      "type": "string"
    },
    "couponItems": {
      "description": "The coupon items.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/CouponItem"
      }
    },
    "creationDate": {
      "description": "The timestamp when the basket was created. It is read only.",
      "type": "string",
      "format": "date-time"
    },
    "currency": {
      "$ref": "#/$defs/CurrencyCode"
    },
    "customerInfo": {
      "description": "The customer information, if the customer is logged in.",
      "allOf": [
        {
          "$ref": "#/$defs/CustomerInfo"
        }
      ]
    },
    "giftCertificateItems": {
      "description": "The gift certificate line items.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/GiftCertificateItem"
      }
    },
    "groupedTaxItems": {
      "description": "Tax values that are grouped and summed based on the tax rate. The tax totals of the line items with the same\ntax rate are grouped together and summed up. This does not affect the calculation in any way. It is read only.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/GroupedTaxItem"
      }
    },
    "inventoryReservationExpiry": {
      "description": "The expiration datetime of the inventory reservation. It is read only.",
      "type": "string",
      "format": "date-time"
    },
    "lastModified": {
      "description": "The timestamp when the basket was last modified. It is read only.",
      "type": "string",
      "format": "date-time"
    },
    "merchandizeTotalTax": {
      "format": "double",
      "description": "The total products tax in the purchase currency.\nMerchandise total price represents the sum of the product prices before\nservices (such as shipping) or adjustments from promotions have\nbeen added. It is read only.",
      "type": "number"
    },
    "orderPriceAdjustments": {
      "description": "The order-level price adjustments.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/PriceAdjustment"
      }
    },
    "orderTotal": {
      "format": "double",
      "description": "The total price, including products, shipping and tax. It is read only.",
      "type": "number"
    },
    "paymentInstruments": {
      "description": "The payment instruments list.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/OrderPaymentInstrument"
      }
    },
    "productItems": {
      "description": "The product items.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/BasketProductItem"
      }
    },
    "productSubTotal": {
      "format": "double",
      "description": "The total price of all products including item-level adjustments, but not including order-level adjustments or shipping\ncharges. If the taxation policy is net, it doesn't include tax. If the taxation policy is gross, it includes tax. It is read only.",
      "type": "number"
    },
    "productTotal": {
      "format": "double",
      "description": "The total price of all products including adjustments, but not including shipping charges. If the taxation policy is net,\nit doesn't include tax. If the taxation policy is gross, it includes tax. It is read only.",
      "type": "number"
    },
    "shipments": {
      "description": "The shipments.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Shipment"
      }
    },
    "shippingItems": {
      "description": "The shipping items.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/ShippingItem"
      }
    },
    "shippingTotal": {
      "format": "double",
      "description": "The total price of all shipping charges, including shipping adjustments. If the taxation policy is net, it doesn't\ninclude tax. If the taxation policy is gross, it includes tax. It is read only.",
      "type": "number"
    },
    "shippingTotalTax": {
      "format": "double",
      "description": "The total tax on all shipping charges, not including shipping adjustments. It is read only.",
      "type": "number"
    },
    "sourceCode": {
      "description": "The source code assigned to the basket. It is read only.",
      "type": "string"
    },
    "taxTotal": {
      "format": "double",
      "description": "The total tax amount. It is read only.",
      "type": "number"
    },
    "taxation": {
      "description": "The taxation policy (gross or net). It is read only.",
      "enum": [
        "gross",
        "net"
      ],
      "type": "string"
    },
    "taxRoundedAtGroup": {
      "description": "If the tax is rounded at the group level, this is set to true. If the tax is rounded at the item or unit level, it is set to false.",
      "type": "boolean"
    },
    "temporaryBasket": {
      "description": "If the created basket is a temporary basket, this is set to true. Otherwise, it is set to false.",
      "type": "boolean"
    },
    "approachingDiscounts": {
      "description": "A list of approaching discount objects for the basket. The list includes both order-level and shipping-level promotions. This field is only included when the expand query parameter contains 'approaching_discounts'.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/ApproachingDiscount"
      }
    }
  },
  "type": "object",
  "$defs": {
    "ApproachingDiscount": {
      "description": "Document representing an approaching discount for a basket. Contains information about promotions the customer is close to qualifying for.",
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      },
      "type": "object",
      "properties": {
        "type": {
          "description": "The type of approaching discount (order-level or shipping-level).",
          "enum": [
            "order",
            "shipping"
          ],
          "type": "string"
        },
        "conditionThreshold": {
          "format": "double",
          "description": "The total amount needed to receive the discount.",
          "type": "number"
        },
        "merchandiseTotal": {
          "format": "double",
          "description": "The amount the customer basket contributes towards the purchase condition.",
          "type": "number"
        },
        "discount": {
          "description": "The applied discount when the order meets the threshold.",
          "allOf": [
            {
              "$ref": "#/$defs/Discount"
            }
          ]
        },
        "promotionLink": {
          "description": "Document representing a promotion link.",
          "allOf": [
            {
              "$ref": "#/$defs/PromotionLink"
            }
          ]
        },
        "shipmentId": {
          "description": "The unique id of the shipment the discount relates to. Only applicable when type = shipping.",
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "shippingMethods": {
          "description": "The shipping methods the promotion relates to. Only applicable when type = shipping.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ShippingMethod"
          }
        }
      },
      "required": [
        "type"
      ]
    },
    "BasketProductItem": {
      "description": "Document representing a basket product item.",
      "allOf": [
        {
          "$ref": "#/$defs/ProductItem"
        }
      ]
    },
    "BonusDiscountLineItem": {
      "description": "Document representing a bonus discount line item.",
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      },
      "type": "object",
      "properties": {
        "bonusProducts": {
          "description": "The bonus products the customer can choose from.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProductDetailsLink"
          }
        },
        "couponCode": {
          "description": "The coupon code that triggered the promotion, if applicable.",
          "type": "string"
        },
        "id": {
          "description": "The ID of the line item. It is read only.",
          "type": "string"
        },
        "maxBonusItems": {
          "format": "int32",
          "description": "The maximum number of bonus items the user can select for this promotion.",
          "type": "integer"
        },
        "promotionId": {
          "description": "The ID of the promotion that triggered the creation of the line item.",
          "type": "string"
        }
      }
    },
    "CountryCode": {
      "pattern": "^[A-Z][A-Z]$",
      "description": "A two letter uppercase country code conforming to the [ISO 3166-1](https://www.iso.org/iso-3166-country-codes.html) alpha-2 standard.",
      "type": "string"
    },
    "CouponItem": {
      "description": "Document representing a coupon item.",
      "type": "object",
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      },
      "properties": {
        "code": {
          "maxLength": 256,
          "description": "The coupon code.",
          "type": "string"
        },
        "couponItemId": {
          "description": "The coupon item ID. It is read only.",
          "allOf": [
            {
              "$ref": "#/$defs/CouponItemId"
            }
          ]
        },
        "statusCode": {
          "description": "The status of the coupon item. It is read only.",
          "enum": [
            "coupon_code_already_in_basket",
            "coupon_code_already_redeemed",
            "coupon_code_unknown",
            "coupon_disabled",
            "redemption_limit_exceeded",
            "customer_redemption_limit_exceeded",
            "timeframe_redemption_limit_exceeded",
            "no_active_promotion",
            "coupon_already_in_basket",
            "no_applicable_promotion",
            "applied",
            "adhoc"
          ],
          "type": "string"
        },
        "valid": {
          "description": "A flag indicating whether the coupon item is valid. A coupon line item is valid if\nthe status code is \"applied\" or \"no_applicable_promotion\". It is read only.",
          "type": "boolean"
        }
      },
      "required": [
        "code"
      ]
    },
    "CouponItemId": {
      "minLength": 1,
      "type": "string",
      "description": "The coupon item ID"
    },
    "CurrencyCode": {
      "description": "A three letter uppercase currency code conforming to the [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) standard, or the string `N/A` indicating that a currency is not applicable.",
      "pattern": "^([A-Z][A-Z][A-Z]|N/A)$",
      "type": "string"
    },
    "CustomerInfo": {
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      },
      "description": "The customer information for guest or logged-in customers.",
      "type": "object",
      "properties": {
        "customerId": {
          "maxLength": 100,
          "description": "The customer ID. It is read only.",
          "type": "string"
        },
        "customerName": {
          "description": "The customer name.",
          "type": "string"
        },
        "customerNo": {
          "maxLength": 100,
          "description": "The customer number.",
          "type": "string"
        },
        "email": {
          "description": "The customer's email address.",
          "type": "string"
        }
      },
      "required": [
        "email"
      ]
    },
    "DeliveryWindow": {
      "description": "The range describing when an item is expected to be delivered. Both bounds are RFC 3339 date-time timestamps. The API preserves sub-day precision end-to-end.",
      "type": "object",
      "properties": {
        "startAt": {
          "description": "The earliest expected delivery time, as an RFC 3339 date-time.",
          "type": "string",
          "format": "date-time"
        },
        "endAt": {
          "description": "The latest expected delivery time, as an RFC 3339 date-time.",
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "Discount": {
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      },
      "description": "Document representing a discount.",
      "type": "object",
      "properties": {
        "amount": {
          "format": "double",
          "description": "The discount amount for discount types that define specific discount amounts. It is read only.",
          "type": "number"
        },
        "percentage": {
          "format": "double",
          "description": "The discount percent for discount types that define percentage discounts. It is read only.",
          "type": "number"
        },
        "priceBookId": {
          "description": "The price book ID that is used with some types. It is read only.",
          "type": "string"
        },
        "type": {
          "description": "The type of discount. It is read only.",
          "enum": [
            "percentage",
            "fixed_price",
            "amount",
            "free",
            "price_book_price",
            "bonus",
            "total_fixed_price",
            "bonus_choice",
            "percentage_off_options"
          ],
          "type": "string"
        }
      },
      "required": [
        "type"
      ]
    },
    "FraudDecisions": {
      "additionalProperties": false,
      "description": "Normalized fraud decisions for the order payment instrument.\nAll properties are optional and read only. The object is omitted entirely when no decisions are returned.\nThe values remain readable for historical orders.",
      "type": "object",
      "properties": {
        "preAuthorization": {
          "description": "The pre-authorization fraud decision used by the client to orchestrate checkout. Expected values are:\n- `NOT_REVIEWED`: the payment instrument was not reviewed pre-authorization.\n- `APPROVED`: the payment authorization can proceed.\n- `CHALLENGE`: the payment authorization should be challenged with additional verification (for example, a 3D Secure challenge) before it can proceed.\n- `DECLINED`: the payment authorization is declined.\n\nA custom value may also be returned. It is read only.",
          "maxLength": 256,
          "type": "string"
        }
      }
    },
    "GiftCardResponse": {
      "additionalProperties": false,
      "description": "Document representing a gift card response.",
      "type": "object",
      "properties": {
        "brand": {
          "maxLength": 256,
          "description": "The gift card brand.",
          "type": "string"
        },
        "maskedCardNumber": {
          "maxLength": 40,
          "description": "The masked gift card number.",
          "type": "string"
        },
        "expirationMonth": {
          "format": "int32",
          "description": "The month when the gift card expires.",
          "type": "integer"
        },
        "expirationYear": {
          "format": "int32",
          "description": "The year when the gift card expires.",
          "type": "integer"
        }
      }
    },
    "GiftCertificateItem": {
      "description": "A gift certificate item.",
      "type": "object",
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      },
      "properties": {
        "amount": {
          "format": "double",
          "description": "The gift certificate item amount.",
          "type": "number"
        },
        "giftCertificateItemId": {
          "description": "The item ID. It is read only.",
          "allOf": [
            {
              "$ref": "#/$defs/GiftCertificateItemId"
            }
          ]
        },
        "message": {
          "maxLength": 4000,
          "description": "The gift certificate message.",
          "type": "string"
        },
        "recipientEmail": {
          "minLength": 1,
          "description": "The recipient email.",
          "type": "string"
        },
        "recipientName": {
          "description": "The recipient's name.",
          "type": "string"
        },
        "senderName": {
          "description": "The sender's name.",
          "type": "string"
        },
        "shipmentId": {
          "description": "The ID of the shipment this item belongs to.",
          "type": "string"
        }
      },
      "required": [
        "amount",
        "recipientEmail"
      ]
    },
    "GiftCertificateItemId": {
      "type": "string",
      "minLength": 1
    },
    "GroupedTaxItem": {
      "description": "Document representing the grouped tax item.",
      "type": "object",
      "properties": {
        "taxRate": {
          "description": "The tax rate. It is read only.",
          "type": "number",
          "format": "double"
        },
        "taxValue": {
          "description": "The summed up tax total for the tax rate. It is read only.",
          "type": "number",
          "format": "double"
        }
      },
      "additionalProperties": false
    },
    "ItemId": {
      "description": "The item id.",
      "type": "string"
    },
    "OptionItem": {
      "description": "An option item represents an optional purchase related to a product item, and is always associated with that parent product\nitem. An option item can have different values from which to select. For example, a refrigerator item can have an option item representing an extended warranty, with a set of option item values representing different warranty lengths. When a shopper purchases the warranty option item together with the parent refrigerator item, they select one of the available warranty option item values.",
      "type": "object",
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      },
      "properties": {
        "adjustedTax": {
          "format": "double",
          "description": "The tax on the line item, including any adjustments. It is read only.",
          "type": "number"
        },
        "basePrice": {
          "format": "double",
          "description": "The base price of the line item, which is the unit price not including adjustments.\nIf the taxation policy is net, it doesn't include tax. If the taxation policy is gross, it includes tax. It is read only.",
          "type": "number"
        },
        "bonusDiscountLineItemId": {
          "description": "The ID of the bonus discount line item this bonus product relates to. It is read only.",
          "type": "string"
        },
        "bonusProductLineItem": {
          "description": "A flag indicating whether the product item is a bonus. It is read only.",
          "type": "boolean"
        },
        "bundledProductItems": {
          "description": "The bundled product items.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProductItem"
          }
        },
        "gift": {
          "description": "Returns true if the item is a gift. It is read only.",
          "type": "boolean"
        },
        "giftMessage": {
          "description": "The gift message.",
          "type": "string"
        },
        "inventoryId": {
          "maxLength": 256,
          "description": "The inventory list ID associated with this item. It is read only.",
          "type": "string"
        },
        "itemId": {
          "description": "The product item ID. Use it to identify this item when updating its quantity or creating a custom price adjustment for it. It is read only.",
          "allOf": [
            {
              "$ref": "#/$defs/ItemId"
            }
          ]
        },
        "itemText": {
          "description": "The text describing the item.",
          "type": "string"
        },
        "optionId": {
          "maxLength": 256,
          "description": "The ID of the option. It is read only.",
          "type": "string"
        },
        "optionItems": {
          "description": "The option items.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/OptionItem"
          }
        },
        "optionValueId": {
          "maxLength": 256,
          "description": "The ID of the option value. It is read only.",
          "type": "string"
        },
        "price": {
          "format": "double",
          "description": "The price of the line item before applying any adjustments. If the taxation policy is net, it doesn't include tax.\nIf the taxation policy is gross, it includes tax. It is read only.",
          "type": "number"
        },
        "priceAdjustments": {
          "description": "The price adjustments.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/PriceAdjustment"
          }
        },
        "priceAfterItemDiscount": {
          "format": "double",
          "description": "The price of the product line item including item-level adjustments, but not including order-level adjustments or\nshipping charges. If the taxation policy is net, it doesn't include tax. If the taxation policy is gross, it includes tax. It is read only.",
          "type": "number"
        },
        "priceAfterOrderDiscount": {
          "format": "double",
          "description": "The price of the product line item including item-level adjustments and prorated order-level adjustments, but not\nincluding shipping charges. If the taxation policy is net, it doesn't include tax. If the taxation policy is gross, it\nincludes tax. It is read only.",
          "type": "number"
        },
        "productId": {
          "$ref": "#/$defs/ProductId"
        },
        "productListItem": {
          "description": "If this product line item was added from a product list, this value is a reference to the corresponding product list item.",
          "allOf": [
            {
              "$ref": "#/$defs/ProductListItemReference"
            }
          ]
        },
        "productName": {
          "description": "The name of the product.",
          "type": "string"
        },
        "quantity": {
          "minimum": 0,
          "format": "double",
          "description": "The ordered quantity of the products represented by this item.",
          "type": "number"
        },
        "shipmentId": {
          "description": "The ID of the shipment this item belongs to.",
          "type": "string"
        },
        "shippingItemId": {
          "description": "If the product line item has a related shipping item, this value is its ID. A related shipping item represents a\nsurcharge applied to individual products using a particular shipping method. It is read only.",
          "type": "string"
        },
        "tax": {
          "format": "double",
          "description": "The tax on the line item before applying any adjustments. It is read only.",
          "type": "number"
        },
        "taxBasis": {
          "format": "double",
          "description": "The amount used to calculate the tax for this item. It is read only.",
          "type": "number"
        },
        "taxClassId": {
          "description": "The tax class ID for the product item, or null\nif no tax class ID is associated with the product item. It is read only.",
          "type": "string"
        },
        "taxRate": {
          "format": "double",
          "description": "The tax rate, which is the decimal tax rate to be applied\nto the product represented by this item. It is read only.",
          "type": "number"
        }
      },
      "required": [
        "optionId",
        "optionValueId"
      ]
    },
    "OrderAddress": {
      "description": "Document representing an order address.",
      "properties": {
        "address1": {
          "description": "The first address line.",
          "type": "string"
        },
        "address2": {
          "description": "The second address line.",
          "type": "string"
        },
        "city": {
          "description": "The city.",
          "type": "string"
        },
        "companyName": {
          "description": "The company name.",
          "type": "string"
        },
        "countryCode": {
          "$ref": "#/$defs/CountryCode"
        },
        "firstName": {
          "description": "The first name.",
          "type": "string"
        },
        "fullName": {
          "description": "The full name.",
          "type": "string"
        },
        "id": {
          "description": "The ID of the address.",
          "type": "string"
        },
        "jobTitle": {
          "description": "The job title.",
          "type": "string"
        },
        "lastName": {
          "description": "The last name.",
          "type": "string"
        },
        "phone": {
          "description": "The phone number.",
          "type": "string"
        },
        "postBox": {
          "description": "The post office box.",
          "type": "string"
        },
        "postalCode": {
          "description": "The postal code.",
          "type": "string"
        },
        "salutation": {
          "description": "The salutation.",
          "type": "string"
        },
        "secondName": {
          "description": "The second name.",
          "type": "string"
        },
        "stateCode": {
          "description": "The state code.",
          "type": "string"
        },
        "suffix": {
          "description": "The suffix.",
          "type": "string"
        },
        "suite": {
          "description": "The suite.",
          "type": "string"
        },
        "title": {
          "description": "The title.",
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      }
    },
    "OrderPaymentInstrument": {
      "description": "Document representing an order payment instrument.",
      "type": "object",
      "properties": {
        "amount": {
          "format": "double",
          "description": "The payment transaction amount.",
          "type": "number"
        },
        "authorizationStatus": {
          "description": "The authorization status of the payment transaction. It is read only.",
          "allOf": [
            {
              "$ref": "#/$defs/Status"
            }
          ]
        },
        "bankRoutingNumber": {
          "maxLength": 256,
          "description": "The bank routing number.",
          "type": "string"
        },
        "fraudDecisions": {
          "description": "The normalized fraud decisions for the order payment instrument. It is read only.\nOmitted when no decisions are returned.",
          "allOf": [
            {
              "$ref": "#/$defs/FraudDecisions"
            }
          ]
        },
        "maskedGiftCertificateCode": {
          "description": "The gift certificate code with the last 4 characters not masked.",
          "type": "string"
        },
        "paymentCard": {
          "description": "The payment card.",
          "allOf": [
            {
              "$ref": "#/$defs/PaymentCard"
            }
          ]
        },
        "paymentDetails": {
          "description": "The normalized, shopper-relevant payment details for the order payment instrument. It is read only.\nOmitted when no details are available for the payment.",
          "allOf": [
            {
              "$ref": "#/$defs/PaymentDetails"
            }
          ]
        },
        "giftCard": {
          "description": "The gift card.",
          "allOf": [
            {
              "$ref": "#/$defs/GiftCardResponse"
            }
          ]
        },
        "paymentInstrumentId": {
          "description": "The payment instrument ID. It is read only.",
          "allOf": [
            {
              "$ref": "#/$defs/PaymentInstrumentId"
            }
          ]
        },
        "paymentMethodId": {
          "maxLength": 256,
          "description": "The payment method ID. It is read only.",
          "type": "string"
        },
        "paymentReference": {
          "description": "Payment reference information for various payment service providers, only when Salesforce Payments is enabled.",
          "type": "object",
          "properties": {
            "paymentReferenceId": {
              "description": "Payment reference identifier. Can be payment intent ID for Stripe, PSP reference for Adyen, PayPal order ID for PayPal, or similar identifier for other payment providers.",
              "type": "string",
              "maxLength": 256
            },
            "gateway": {
              "description": "The payment gateway used to process the payment.",
              "type": "string",
              "enum": [
                "stripe",
                "paypal",
                "adyen"
              ]
            },
            "gatewayProperties": {
              "description": "The payment gateway specific properties.",
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "stripe": {
                  "description": "# Stripe specific properties.\n\n- setupFutureUsage: Indicates that you intend to make future payments with this payment method.\n  - **on_session**: The payment method is intended to be used for a future payment on the same website session.\n  - **off_session**: The payment method is intended to be used for a future payment on a different website session.\n - **null**: The payment method is not intended to be used for a future payment.\n- clientSecret: Secret for Stripe client-side payment confirmation. Don't store, log, or expose the client secret to anyone other than the customer, and only use it on pages where TLS is enabled.\n  - type: string\n  - maxLength: 256\n  - example: \"pi_1J4K5L2eZvKYlo2CyZ8K5L6M_secret_abc123\"\n",
                  "type": "object",
                  "additionalProperties": true
                },
                "paypal": {
                  "description": "# PayPal specific properties.\n",
                  "type": "object",
                  "additionalProperties": true
                },
                "adyen": {
                  "description": "# Adyen specific properties.\n\n- adyenError: Error information returned by Adyen if the payment fails. Null on success.\n- adyenPaymentIntent: The Adyen payment intent object containing payment details and required actions.\n  - resultCode: The result of the payment request (for example, \"REDIRECT_SHOPPER\", \"AUTHORISED\", \"PENDING\", \"REFUSED\").\n  - accountID: The Adyen merchant account ID.\n  - adyenPaymentIntentAction: The action object for payment methods requiring additional shopper interaction.\n    - url: The URL for completing the payment (redirect or 3DS authentication).\n    - type: The action type (for example, \"redirect\", \"threeDS2\", \"voucher\").\n    - method: The HTTP method for the action (for example, \"GET\", \"POST\").\n- successful: A boolean indicating whether the Adyen operation is successful.\n",
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "PaymentCard": {
      "additionalProperties": false,
      "description": "Document representing a payment card.",
      "type": "object",
      "properties": {
        "cardType": {
          "maxLength": 256,
          "description": "The payment card type.",
          "type": "string"
        },
        "creditCardExpired": {
          "description": "A flag indicating if the credit card is expired. It is read only.",
          "type": "boolean"
        },
        "creditCardToken": {
          "description": "A credit card token. If a credit card is tokenized, the token can be used to look up the credit card data\nin the token store.",
          "type": "string"
        },
        "expirationMonth": {
          "format": "int32",
          "description": "The month when the payment card expires.",
          "type": "integer"
        },
        "expirationYear": {
          "format": "int32",
          "description": "The year when the payment card expires.",
          "type": "integer"
        },
        "holder": {
          "maxLength": 256,
          "description": "The payment card holder.",
          "type": "string"
        },
        "issueNumber": {
          "maxLength": 256,
          "description": "The payment card issue number.",
          "type": "string"
        },
        "maskedNumber": {
          "maxLength": 4000,
          "description": "The masked payment card number.",
          "type": "string"
        },
        "numberLastDigits": {
          "maxLength": 4000,
          "description": "The last digits of the payment card number. It is read only.",
          "type": "string"
        },
        "validFromMonth": {
          "minimum": 1,
          "maximum": 12,
          "format": "int32",
          "description": "The month the payment card is valid from.",
          "type": "integer"
        },
        "validFromYear": {
          "format": "int32",
          "description": "The year the payment card is valid from.",
          "type": "integer"
        }
      }
    },
    "PaymentDetails": {
      "additionalProperties": false,
      "description": "Normalized, shopper-relevant payment details for the order payment instrument.\nAll properties are optional and read only. The object is omitted entirely when no details are available for the payment.\nThe values remain readable for historical orders.",
      "type": "object",
      "properties": {
        "type": {
          "maxLength": 256,
          "description": "The normalized payment method type. Expected values are `bancontact`, `card`, `gift_card`, `eps`, `ideal`, `klarna`,\n`sepa_debit`, `paypal`, `venmo`, `afterpay_clearpay`, `amazon_pay`, and `twint`. A custom value may also be returned. It is read only.",
          "type": "string"
        },
        "brand": {
          "maxLength": 20,
          "description": "The normalized card brand. Expected values are `amex`, `diners`, `discover`, `jcb`, `mastercard`,\n`unionpay`, `visa`, and `unknown`. A custom value may also be returned. It is read only.",
          "type": "string"
        },
        "last4": {
          "maxLength": 4,
          "description": "The last four digits of the payment instrument. It is read only.",
          "type": "string"
        },
        "walletType": {
          "maxLength": 20,
          "description": "The normalized digital wallet used for the payment. Expected values are `apple_pay` and `google_pay`.\nA custom value may also be returned. It is read only.",
          "type": "string"
        },
        "expirationMonth": {
          "minimum": 1,
          "maximum": 12,
          "format": "int32",
          "description": "The month when the payment instrument expires. It is read only.",
          "type": "integer"
        },
        "expirationYear": {
          "format": "int32",
          "description": "The year when the payment instrument expires. It is read only.",
          "type": "integer"
        },
        "token": {
          "maxLength": 40,
          "description": "The reference token representing the payment instrument. This is an opaque\nidentifier, not the card number (PAN). It is read only.",
          "type": "string"
        },
        "tokenType": {
          "maxLength": 20,
          "description": "The type of token backing the reference token. Expected values are\n`NETWORK` and `GATEWAY`. A custom value may also be returned. It is read only.",
          "type": "string"
        },
        "accountHolderName": {
          "maxLength": 256,
          "description": "The name of the payment instrument account holder. It is read only.",
          "type": "string"
        }
      }
    },
    "PaymentInstrumentId": {
      "description": "The payment instrument ID",
      "type": "string"
    },
    "PriceAdjustment": {
      "description": "Document representing a price adjustment within a basket or order. Price adjustments\ncan be assigned at the order, product, or shipping level.",
      "properties": {
        "appliedDiscount": {
          "description": "Details describing the discount this price adjustment is based on. For adjustments\nnot based on a discount, this value is null.",
          "allOf": [
            {
              "$ref": "#/$defs/Discount"
            }
          ]
        },
        "couponCode": {
          "description": "The coupon code of the coupon this price adjustment is based on. For adjustments\nnot based on a coupon, this value is null. It is read only.",
          "type": "string"
        },
        "createdBy": {
          "description": "The user who created the price adjustment. It is read only.",
          "type": "string"
        },
        "creationDate": {
          "description": "The timestamp when the price adjustment was created. It is read only.",
          "type": "string",
          "format": "date-time"
        },
        "custom": {
          "description": "A flag indicating whether this price adjustment was created by custom logic. This\nflag is set to true unless the price adjustment was created by the promotion\nengine.",
          "type": "boolean"
        },
        "itemText": {
          "description": "The text describing the item.",
          "type": "string"
        },
        "lastModified": {
          "description": "The timestamp when the price adjustment was last modified. It is read only.",
          "type": "string",
          "format": "date-time"
        },
        "manual": {
          "description": "A flag indicating whether this price adjustment was created by a manual process.\nIf the price adjustment was created by the promotion engine, this value is always\nfalse.",
          "type": "boolean"
        },
        "price": {
          "format": "double",
          "description": "The adjustment price. It is read only.",
          "type": "number"
        },
        "priceAdjustmentId": {
          "description": "The price adjustment ID. It is read only.",
          "allOf": [
            {
              "$ref": "#/$defs/PriceAdjustmentId"
            }
          ]
        },
        "promotionId": {
          "description": "The ID of the related promotion. Custom price adjustments\ncan be assigned any promotion ID so long it is not\nused by a price adjustment belonging to the same item,\nand is not used by a promotion defined in the promotion engine.\nIf not specified, a promotion ID is generated.",
          "type": "string"
        },
        "reasonCode": {
          "description": "The reason for the price adjustment.",
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      }
    },
    "PriceAdjustmentId": {
      "type": "string"
    },
    "ProductDetailsLink": {
      "description": "Document representing a link to the resource for product details.",
      "properties": {
        "productDescription": {
          "description": "The description of the product.",
          "type": "string"
        },
        "productId": {
          "$ref": "#/$defs/ProductId"
        },
        "productName": {
          "description": "The name of the product.",
          "type": "string"
        },
        "title": {
          "description": "The link title.",
          "type": "string"
        }
      },
      "type": "object",
      "required": [
        "productId"
      ],
      "additionalProperties": false
    },
    "ProductId": {
      "minLength": 1,
      "maxLength": 100,
      "type": "string",
      "description": "The id (SKU) of the product."
    },
    "ProductItem": {
      "description": "Document representing a product item.",
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      },
      "type": "object",
      "properties": {
        "adjustedTax": {
          "format": "double",
          "description": "The tax on the line item, including any adjustments. It is read only.",
          "type": "number"
        },
        "basePrice": {
          "format": "double",
          "description": "The base price of the line item, which is the unit price not including\nadjustments. If the taxation policy is net, it doesn't include tax. If the\ntaxation policy is gross, it includes tax. It is read only.",
          "type": "number"
        },
        "bonusDiscountLineItemId": {
          "description": "The ID of the bonus discount line item this bonus product relates to. It is read only.",
          "type": "string"
        },
        "bonusProductLineItem": {
          "description": "A flag indicating whether the product item is a bonus.",
          "type": "boolean"
        },
        "bundledProductItems": {
          "description": "The bundled product items.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProductItem"
          }
        },
        "gift": {
          "description": "Returns true if the item is a gift. It is read only.",
          "type": "boolean"
        },
        "giftMessage": {
          "description": "The gift message.",
          "type": "string"
        },
        "inventoryId": {
          "maxLength": 256,
          "description": "The inventory list ID associated with this item.",
          "type": "string"
        },
        "itemId": {
          "description": "The product item ID. Use it to identify this item when updating its quantity or\ncreating a custom price adjustment for it. It is read only.",
          "allOf": [
            {
              "$ref": "#/$defs/ItemId"
            }
          ]
        },
        "itemText": {
          "description": "The text describing the item.",
          "type": "string"
        },
        "optionItems": {
          "description": "The option items.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/OptionItem"
          }
        },
        "price": {
          "format": "double",
          "description": "The price of the line item before applying any adjustments. If the line item is based on net pricing\nthen the net price is returned. If the line item is based on gross\npricing then the gross price is returned. It is read only.",
          "type": "number"
        },
        "priceAdjustments": {
          "description": "The price adjustments.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/PriceAdjustment"
          }
        },
        "priceAfterItemDiscount": {
          "format": "double",
          "description": "The price of the product line item including item-level adjustments, but not\nincluding order-level adjustments or shipping charges. If the taxation policy is\nnet, it doesn't include tax. If the taxation policy is gross, it includes tax. It is read only.",
          "type": "number"
        },
        "priceAfterOrderDiscount": {
          "format": "double",
          "description": "The price of the product line item including item-level adjustments and prorated\norder-level adjustments, but not including shipping charges. If the taxation\npolicy is net, it doesn't include tax. If the taxation policy is gross, it\nincludes tax. It is read only.",
          "type": "number"
        },
        "productId": {
          "maxLength": 100,
          "description": "The ID of the product.",
          "type": "string"
        },
        "productListItem": {
          "description": "If this product line item was added from a product list, this value is a reference\nto the corresponding product list item.",
          "allOf": [
            {
              "$ref": "#/$defs/ProductListItemReference"
            }
          ]
        },
        "productName": {
          "description": "The name of the product.",
          "type": "string"
        },
        "qualifyingProductItemId": {
          "maxLength": 28,
          "description": "Returns the id of the ProductLineItem that qualified the basket for this bonus product. \nThis method is only applicable if the product line item is a bonus product line item, and if the promotion is a\nproduct promotion with number of qualifying products granting a bonus-product discount. If these conditions\naren't met, the method returns null. If there are multiple product line items that triggered this bonus product,\nthis method returns the last one by position within the order.",
          "type": "string"
        },
        "quantity": {
          "minimum": 0,
          "format": "double",
          "description": "The quantity of the products represented by this item.",
          "type": "number"
        },
        "shipmentId": {
          "description": "The ID of the shipment this item belongs to.",
          "type": "string"
        },
        "shippingItemId": {
          "description": "If the product line item has a related shipping item, this value is its ID. A\nrelated shipping item represents a surcharge applied to individual products using\na particular shipping method. It is read only.",
          "type": "string"
        },
        "tax": {
          "format": "double",
          "description": "The tax for the product item, not including price adjustments. It is read only.",
          "type": "number"
        },
        "taxBasis": {
          "format": "double",
          "description": "The price used to calculate the tax for this product item. It is read only.",
          "type": "number"
        },
        "taxClassId": {
          "description": "The tax class ID for the product item, or null\nif no tax class ID is associated with the product item. It is read only.",
          "type": "string"
        },
        "taxItems": {
          "maxItems": 10,
          "description": "The individual tax items for this product line item (e.g. state tax, county tax). It is read only.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/TaxItem"
          }
        },
        "taxRate": {
          "format": "double",
          "description": "The tax rate, which is the decimal tax rate to be applied\nto the product represented by this item. It is read only.",
          "type": "number"
        }
      }
    },
    "ProductListItemReference": {
      "description": "Document representing product list item details.",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "description": "The ID of the product list item. It is read only.",
          "allOf": [
            {
              "$ref": "#/$defs/ItemId"
            }
          ]
        },
        "priority": {
          "format": "int32",
          "description": "The priority of the product list item.",
          "type": "integer"
        },
        "productDetailsLink": {
          "$ref": "#/$defs/ProductDetailsLink"
        },
        "productList": {
          "description": "A reference to the associated product list. It is read only.",
          "allOf": [
            {
              "$ref": "#/$defs/ProductListLink"
            }
          ]
        },
        "public": {
          "type": "boolean"
        },
        "purchasedQuantity": {
          "format": "double",
          "description": "The total quantity of this item purchased from the product list.",
          "type": "number"
        },
        "quantity": {
          "minimum": 0,
          "format": "double",
          "description": "The number of products or gift certificates that get shipped when purchasing this product list item.",
          "type": "number"
        },
        "type": {
          "description": "Specifies whether the item is a product or a gift certificate.",
          "enum": [
            "product",
            "gift_certificate"
          ],
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "ProductListLink": {
      "description": "Document representing a link to a product list.",
      "properties": {
        "description": {
          "description": "The description of this product list.",
          "type": "string"
        },
        "name": {
          "description": "The name of this product list.",
          "type": "string"
        },
        "public": {
          "description": "A flag indicating whether the owner made this product list available for access\nby other customers. It is read only.",
          "type": "boolean"
        },
        "title": {
          "description": "The link title.",
          "type": "string"
        },
        "type": {
          "description": "The type of the product list.",
          "enum": [
            "wish_list",
            "gift_registry",
            "shopping_list",
            "custom_1",
            "custom_2",
            "custom_3"
          ],
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "PromotionLink": {
      "description": "Document representing a promotion link.",
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      },
      "type": "object",
      "properties": {
        "promotionId": {
          "description": "The unique id of the promotion.",
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "name": {
          "description": "The localized name of the promotion.",
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "calloutMsg": {
          "description": "The localized call-out message of the promotion.",
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "title": {
          "description": "The link title.",
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "link": {
          "description": "The URL addressing the promotion.",
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        }
      }
    },
    "Shipment": {
      "description": "Document representing a shipment.",
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      },
      "properties": {
        "adjustedMerchandizeTotalTax": {
          "format": "double",
          "description": "The total tax on products in the shipment, including item-level price adjustments but not including\nservice charges such as shipping. If the Discount Taxation preference is set to Tax Products and\nShipping Only Based on Adjusted Price, this amount also includes prorated order-level price adjustments. It is read only.",
          "type": "number"
        },
        "adjustedShippingTotalTax": {
          "format": "double",
          "description": "The total tax on shipping charges in the shipment, including shipping price adjustments. It is read only.",
          "type": "number"
        },
        "deliveryWindow": {
          "description": "The estimated delivery window for the shipment. The sfcc.app.shipping.calculate hook populates this value from the selected shipping method. The response omits this field if the hook doesn't return a delivery window. This field is reserved for future use and will be supported in an upcoming release. ",
          "allOf": [
            {
              "$ref": "#/$defs/DeliveryWindow"
            }
          ]
        },
        "gift": {
          "description": "A flag indicating whether the shipment is a gift. It is read only.",
          "type": "boolean"
        },
        "giftMessage": {
          "description": "The gift message.",
          "type": "string"
        },
        "merchandizeTotalTax": {
          "format": "double",
          "description": "The total tax on products in the shipment, not including price adjustments or service charges such as\nshipping. It is read only.",
          "type": "number"
        },
        "orderCutoffAt": {
          "description": "The timestamp by which an order must be placed for the deliveryWindow to apply, as an RFC 3339 date-time. The sfcc.app.shipping.calculate hook populates this value from the selected shipping method. The response omits this field if the hook doesn't return a cutoff time. This field is reserved for future use and will be supported in an upcoming release. ",
          "type": "string",
          "format": "date-time"
        },
        "productSubTotal": {
          "format": "double",
          "description": "The total price of all products in the shipment, including item-level adjustments, but not including\norder-level adjustments or shipping charges. If the taxation policy is net, it doesn't include tax. If\nthe taxation policy is gross, it includes tax. It is read only.",
          "type": "number"
        },
        "productTotal": {
          "format": "double",
          "description": "The total price of all products in the shipment including item-level adjustments and prorated\norder-level adjustments, but not including shipping charges. If the taxation policy is net, it doesn't\ninclude tax. If the taxation policy is gross, it includes tax. It is read only.",
          "type": "number"
        },
        "shipmentId": {
          "description": "The order-specific ID of the shipment. The default value is 'me'.",
          "default": "me",
          "allOf": [
            {
              "$ref": "#/$defs/ShipmentId"
            }
          ]
        },
        "shipmentNo": {
          "description": "The shipment number of this shipment. This number is automatically generated. It is read only.",
          "type": "string"
        },
        "shipmentTotal": {
          "format": "double",
          "description": "The total price of all products in the shipment including item-level adjustments, shipping charges,\nand tax. It is read only.",
          "type": "number"
        },
        "shippingAddress": {
          "description": "The shipping address.",
          "allOf": [
            {
              "$ref": "#/$defs/OrderAddress"
            }
          ]
        },
        "shippingMethod": {
          "$ref": "#/$defs/ShippingMethod"
        },
        "shippingStatus": {
          "description": "The shipping status of the shipment.",
          "enum": [
            "not_shipped",
            "shipped"
          ],
          "type": "string"
        },
        "shippingTotal": {
          "format": "double",
          "description": "The total price of all shipping charges in the shipment, including shipping adjustments. If the\ntaxation policy is net, it doesn't include tax. If the taxation policy is gross, it includes tax. It is read only.",
          "type": "number"
        },
        "shippingTotalTax": {
          "format": "double",
          "description": "The total tax on shipping charges in the shipment, not including shipping price adjustments. It is read only.",
          "type": "number"
        },
        "taxTotal": {
          "format": "double",
          "description": "The total tax on the shipment, including item-level price adjustments and service charges such as\nshipping. If the Discount Taxation preference is set to Tax Products and Shipping Only Based on\nAdjusted Price, this amount also includes prorated order-level price adjustments. It is read only.",
          "type": "number"
        },
        "trackingNumber": {
          "description": "The tracking number of the shipment.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ShipmentId": {
      "minLength": 1,
      "type": "string",
      "description": "The identifier of the shipment"
    },
    "ShippingItem": {
      "description": "Document representing a shipping item.",
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      },
      "properties": {
        "adjustedTax": {
          "format": "double",
          "description": "The tax for the shipping item, including price adjustments. It is read only.",
          "type": "number"
        },
        "basePrice": {
          "format": "double",
          "description": "The base price of the shipping item, which is the unit price not including adjustments.\nIf the taxation policy is net, it doesn't include tax. If the taxation policy is gross, it includes tax. It is read only.",
          "type": "number"
        },
        "itemId": {
          "description": "The shipping item ID. Use it to identify this shipping item when updating its quantity or creating a\ncustom price adjustment for it. It is read only.",
          "type": "string"
        },
        "itemText": {
          "description": "The text describing the shipping item.",
          "type": "string"
        },
        "price": {
          "format": "double",
          "description": "The price of the line item before applying any adjustments. If the line item is based on net pricing\nthen the net price is returned. If the line item is based on gross\npricing then the gross price is returned. It is read only.",
          "type": "number"
        },
        "priceAdjustments": {
          "description": "The price adjustments.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/PriceAdjustment"
          }
        },
        "priceAfterItemDiscount": {
          "format": "double",
          "description": "The price of the shipping item including item-level adjustments, but not including order-level\nadjustments or shipping charges. If the taxation policy is net, it doesn't include tax.\nIf the taxation policy is gross, it includes tax. It is read only.",
          "type": "number"
        },
        "shipmentId": {
          "description": "The identifier of the shipment to which this item belongs.",
          "allOf": [
            {
              "$ref": "#/$defs/ShipmentId"
            }
          ]
        },
        "tax": {
          "format": "double",
          "description": "The tax on the product item, not including adjustments. It is read only.",
          "type": "number"
        },
        "taxBasis": {
          "format": "double",
          "description": "The price used to calculate the tax for this shipping item. It is read only.",
          "type": "number"
        },
        "taxClassId": {
          "description": "The tax class ID for the product item, or null\nif no tax class ID is associated with the product item. It is read only.",
          "type": "string"
        },
        "taxItems": {
          "maxItems": 10,
          "description": "The individual tax items for this shipping line item (e.g. state tax, county tax). It is read only.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/TaxItem"
          }
        },
        "taxRate": {
          "format": "double",
          "description": "The tax rate applicable to this product line item. For a 10% tax rate, the value is 0.1. It is read only.",
          "type": "number"
        }
      },
      "type": "object"
    },
    "ShippingMethod": {
      "description": "Document representing a shipping method.",
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      },
      "properties": {
        "deliveryWindow": {
          "description": "The estimated delivery window for this shipping method. The sfcc.app.shipping.quote hook populates this value. The response omits this field if the hook doesn't return a delivery window.",
          "allOf": [
            {
              "$ref": "#/$defs/DeliveryWindow"
            }
          ]
        },
        "description": {
          "description": "The localized description of the shipping method.",
          "type": "string"
        },
        "externalShippingMethod": {
          "description": "The external shipping method.",
          "type": "string"
        },
        "id": {
          "maxLength": 256,
          "description": "The shipping method ID.",
          "type": "string"
        },
        "name": {
          "description": "The localized name of the shipping method.",
          "type": "string"
        },
        "orderCutoffAt": {
          "description": "The timestamp by which an order must be placed for the deliveryWindow to apply, as an RFC 3339 date-time. The sfcc.app.shipping.quote hook populates this value. The response omits this field if the hook doesn't return a cutoff time.",
          "type": "string",
          "format": "date-time"
        },
        "price": {
          "format": "double",
          "description": "The shipping cost total, including shipment level costs,\nproduct level fix, and surcharge costs. It is read only.",
          "type": "number"
        },
        "shippingPromotions": {
          "description": "The array of active customer shipping promotions for this shipping\nmethod. This array can be empty.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ShippingPromotion"
          }
        }
      },
      "type": "object",
      "required": [
        "id"
      ]
    },
    "ShippingPromotion": {
      "description": "Document representing a shipping promotion.",
      "properties": {
        "calloutMsg": {
          "description": "The localized callout message of the promotion.",
          "type": "string"
        },
        "promotionId": {
          "description": "The unique ID of the promotion.",
          "type": "string"
        },
        "promotionName": {
          "description": "The localized promotion name.",
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      }
    },
    "Status": {
      "description": "Document representing an object status.",
      "properties": {
        "code": {
          "description": "The status code.",
          "type": "string"
        },
        "message": {
          "description": "The status message.",
          "type": "string"
        },
        "status": {
          "format": "int32",
          "description": "The status.\nFor more information on the status values see Status.OK and Status.ERROR.",
          "type": "integer"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "TaxItem": {
      "description": "Object representing the taxation.",
      "properties": {
        "id": {
          "description": "The taxation identifier.",
          "type": "string"
        },
        "rate": {
          "format": "double",
          "description": "The taxation rate.",
          "type": "number"
        },
        "value": {
          "format": "double",
          "description": "The tax amount. Will be computed if not set.",
          "type": "number"
        }
      },
      "type": "object",
      "additionalProperties": {
        "title": "Additional Property Support",
        "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
      },
      "required": [
        "id",
        "rate"
      ]
    }
  }
}