Skip to content

CreateReplacementShipmentForCollectInStore ​

Type: schema

Description ​

Replacement shipment payload when the customer collects the items from a store instead of having them delivered.

TypeScript Definition ​

typescript
CreateReplacementShipmentForCollectInStore: {{
            /**
             * @description Set to `collect-in-store` when the replacement is fulfilled via in-store pickup.
             * @constant
             */
            fulfillment_type?: "collect-in-store";
            /** @description The warehouse holding the replacement items for in-store pickup. */
            warehouse_id: string;
            /** @description Omit to reuse the original shipment lines. */
            shipment_items?: components["schemas"]["ReplacementShipmentItem"][];
            /**
             * @description Set to `manual` since in-store pickup is handled outside of an integrated carrier.
             * @enum {unknown}
             */
            shipping_option: "manual";
            /** @description The manual shipping provider associated with the in-store pickup flow. */
            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 The reason for the replacement shipment. */
            reason: string;
            /** @description Total shipment weight in kilograms, with up to three decimal places. Required and nonzero when packing_option is manual. */
            total_weight?: number;
        } & unknown;
        /**
         * CreateReplacementShipmentWithAutoMethod
         * @description Replacement shipment payload when fulfilling through an integrated carrier.
         */
}

Component References ​

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

OpenAPI Schema ​

json
{
  "description": "Replacement shipment payload when the customer collects the items from a store instead of having them delivered.",
  "type": "object",
  "properties": {
    "fulfillment_type": {
      "description": "Set to `collect-in-store` when the replacement is fulfilled via in-store pickup.",
      "type": "string",
      "const": "collect-in-store"
    },
    "warehouse_id": {
      "description": "The warehouse holding the replacement items for in-store pickup.",
      "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` since in-store pickup is handled outside of an integrated carrier.",
      "enum": [
        "manual"
      ]
    },
    "shipping_provider_id": {
      "description": "The manual shipping provider associated with the in-store pickup flow.",
      "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"
      }
    },
    "reason": {
      "description": "The reason for the replacement shipment.",
      "type": "string",
      "minLength": 1
    },
    "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
    }
  },
  "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/CreateReplacementShipmentForCollectInStore"
  },
  "required": [
    "warehouse_id",
    "shipping_option",
    "shipping_provider_id",
    "packing_option",
    "reason"
  ],
  "title": "CreateReplacementShipmentForCollectInStore",
  "x-tags": [
    "Shipping"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: