Skip to content

ReplacementShipmentItem ​

Type: schema

Description ​

An item for a replacement shipment. Quantity must be nonnegative, and quantity plus free_quantity must be at least one. Omit variant_id or send null for products without variants.

TypeScript Definition ​

typescript
ReplacementShipmentItem: {{
            product_id: string;
            variant_id?: string | null;
            quantity: number;
            /** @default 0 */
            free_quantity?: number;
        };
        /**
         * RetryPaymentMethodPayload
         * @description Payment methods accepted for a retry. LotusPay (`lotuspay`), NACH and credit-line methods are refused.
         */
}

OpenAPI Schema ​

json
{
  "description": "An item for a replacement shipment. Quantity must be nonnegative, and quantity plus free_quantity must be at least one. Omit variant_id or send null for products without variants.",
  "type": "object",
  "properties": {
    "product_id": {
      "type": "string",
      "minLength": 1
    },
    "variant_id": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1
    },
    "quantity": {
      "type": "integer",
      "minimum": 0
    },
    "free_quantity": {
      "type": "integer",
      "default": 0
    }
  },
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/admin-pos/schemas/ReplacementShipmentItem"
  },
  "required": [
    "product_id",
    "quantity"
  ],
  "title": "ReplacementShipmentItem",
  "x-tags": [
    "Shipping"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: