ecl-logo Documentation

CancelTransaction

CancelTransaction[transaction]transaction

cancels transaction if it has not yet advanced to the point where it cannot be canceled.

Details

    Input
    Output

Examples

Basic Examples  (5)

Cancels an existing order:

Cancels several existing orders:

Canceling an order updates the Status and DateCanceled fields of the order object:

Canceling a pending ShipToECL transaction will update Status of the transaction to Cancelled, the status of the any pre-existing samples and containers to their pre-Transit status, and the status of any samples and containers generated by the transaction to Discarded. The Destination of any samples is also cleared:

Canceling an ordered drop shipping transaction will update transaction's status:

Options  (1)

Output  (1)

Cancels several existing orders, returning Result, Options, Preview, and Tests:

Messages  (2)

CanNotCancel  (1)

Only a pending order, a pending ShipToUser transaction, a pending ShipToECL transaction, or an ordered DropShipping transaction can be canceled:

ShippingInProgress  (1)

If a ShipToUser transaction already has an associated shipping preparation, it may not be canceled: