Admin API / Types

VoidShipmentLabelInput

Input

The label to void.

input VoidShipmentLabelInput

Input fields

FieldTypeDescription
expectedLabelExpectedShippingLabelInputThe label that the caller read. When the shipment has another label or no label at the void, the call returns LabelNotVoidableError with reason LABEL_CHANGED and changes nothing. Omitted or null: the void applies to the shipment's label at the call.
idempotencyKeyString!A client-generated key, 1 to 200 characters after trim. Send a new key for each void that you intend. A repeat with the same key and input within 24 hours returns the first result.
shipmentIdID!The shipment whose label to void. Its seller must be the caller or the owner of a store that the caller staffs.