{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-commerce-cloud/json-schema/salesforce-commerce-cloud-shipping-method-schema.json",
  "title": "ShippingMethod",
  "description": "Document representing a shipping method.",
  "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/ShippingMethod",
  "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"
  ],
  "$defs": {
    "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"
        }
      }
    },
    "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."
      }
    }
  }
}