{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-commerce-cloud/json-schema/salesforce-commerce-cloud-shipment-schema.json",
  "title": "Shipment",
  "description": "Document representing a shipment.",
  "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/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",
  "$defs": {
    "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"
    },
    "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"
        }
      }
    },
    "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."
      }
    },
    "ShipmentId": {
      "minLength": 1,
      "type": "string",
      "description": "The identifier of the shipment"
    },
    "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."
      }
    }
  }
}