To add a Parcel, at least one Delivery must exist.

Produces the [Parcel Added To Delivery](ctp:api:type:ParcelAddedToDeliveryMessage) Message.
interface OrderAddParcelToDeliveryAction {
    action: "addParcelToDelivery";
    custom?: CustomFieldsDraft;
    deliveryId?: string;
    deliveryKey?: string;
    items?: DeliveryItem[];
    measurements?: ParcelMeasurements;
    parcelKey?: string;
    trackingData?: TrackingData;
}

Properties

action: "addParcelToDelivery"

Custom Fields for the Parcel.

deliveryId?: string

id of an existing Delivery.

Either `deliveryId` or `deliveryKey` must be provided.
deliveryKey?: string

key of an existing Delivery.

Either `deliveryId` or `deliveryKey` must be provided.
items?: DeliveryItem[]

Value to set.

measurements?: ParcelMeasurements

Value to set.

parcelKey?: string

key of an existing Parcel.

trackingData?: TrackingData

Value to set.