Skip to content

CreateReplacementShipmentWithManualMethod ​

Type: schema

Description ​

Replacement shipment payload when fulfilling through a manual courier (no carrier integration).

TypeScript Definition ​

typescript
CreateReplacementShipmentWithManualMethod: {{
            /**
             * @description Set to `delivery` when the replacement is shipped to the customer.
             * @constant
             */
            fulfillment_type?: "delivery";
            /** @description The warehouse from which the replacement items will be shipped. */
            warehouse_id: string;
            /** @description Omit to reuse the original shipment lines. */
            shipment_items?: components["schemas"]["ReplacementShipmentItem"][];
            /**
             * @description Set to `manual` to dispatch the shipment outside of an integrated carrier.
             * @enum {unknown}
             */
            shipping_option: "manual";
            /** @description The manual shipping provider used to fulfill the replacement. */
            shipping_provider_id: string;
            /**
             * @description The packing option for the replacement shipment.
             * @enum {unknown}
             */
            packing_option: "manual" | "auto";
            /** @description The boxes for the replacement shipment. */
            boxes?: components["schemas"]["ShipmentBox"][];
            /** @description Total shipment weight in kilograms, with up to three decimal places. Required and nonzero when packing_option is manual. */
            total_weight?: number;
            /**
             * Format: date
             * @description The expected delivery date communicated to the customer.
             */
            expected_delivery_date: string | null;
            /** @description Optional tracking URL shared with the customer. */
            tracking_link: string | null;
            /** @description Shipping charges incurred for the manual dispatch, with up to two decimal places. */
            manual_shipping_charges: number | null;
            /** @description The reason for the replacement shipment. */
            reason: string;
        } & unknown;
}

Component References ​

ReferenceResolves To
components["schemas"]["ReplacementShipmentItem"]ReplacementShipmentItem
components["schemas"]["ShipmentBox"]ShipmentBox

OpenAPI Schema ​

json
{
  "description": "Replacement shipment payload when fulfilling through a manual courier (no carrier integration).",
  "type": "object",
  "properties": {
    "fulfillment_type": {
      "description": "Set to `delivery` when the replacement is shipped to the customer.",
      "type": "string",
      "const": "delivery"
    },
    "warehouse_id": {
      "description": "The warehouse from which the replacement items will be shipped.",
      "type": "string",
      "minLength": 1
    },
    "shipment_items": {
      "description": "Omit to reuse the original shipment lines.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ReplacementShipmentItem"
      }
    },
    "shipping_option": {
      "description": "Set to `manual` to dispatch the shipment outside of an integrated carrier.",
      "enum": [
        "manual"
      ]
    },
    "shipping_provider_id": {
      "description": "The manual shipping provider used to fulfill the replacement.",
      "type": "string",
      "minLength": 1
    },
    "packing_option": {
      "description": "The packing option for the replacement shipment.",
      "enum": [
        "manual",
        "auto"
      ]
    },
    "boxes": {
      "description": "The boxes for the replacement shipment.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ShipmentBox"
      }
    },
    "total_weight": {
      "description": "Total shipment weight in kilograms, with up to three decimal places. Required and nonzero when packing_option is manual.",
      "type": "number",
      "exclusiveMaximum": 10000000,
      "exclusiveMinimum": -10000000
    },
    "expected_delivery_date": {
      "description": "The expected delivery date communicated to the customer.",
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "tracking_link": {
      "description": "Optional tracking URL shared with the customer.",
      "type": [
        "string",
        "null"
      ]
    },
    "manual_shipping_charges": {
      "description": "Shipping charges incurred for the manual dispatch, with up to two decimal places.",
      "type": [
        "number",
        "null"
      ],
      "exclusiveMaximum": 100000000,
      "minimum": 0
    },
    "reason": {
      "description": "The reason for the replacement shipment.",
      "type": "string",
      "minLength": 1
    }
  },
  "allOf": [
    {
      "if": {
        "properties": {
          "packing_option": {
            "const": "manual"
          }
        },
        "required": [
          "packing_option"
        ]
      },
      "then": {
        "required": [
          "total_weight"
        ],
        "properties": {
          "total_weight": {
            "not": {
              "const": 0
            }
          }
        }
      }
    }
  ],
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/admin-pos/schemas/CreateReplacementShipmentWithManualMethod"
  },
  "required": [
    "warehouse_id",
    "shipping_option",
    "shipping_provider_id",
    "packing_option",
    "expected_delivery_date",
    "tracking_link",
    "manual_shipping_charges",
    "reason"
  ],
  "title": "CreateReplacementShipmentWithManualMethod",
  "x-tags": [
    "Shipping"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: