> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel Shipment

Cancel shipments that have not yet been tendered to FedEx.

This request cancels all packages associated with the entire shipment.

<Note>
  External Documentation

  To learn more, visit the [FedEx documentation](https://developer.fedex.com/api/en-us/catalog/ship/v1/docs.html#operation/Cancel%20Shipment).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter                   | Description                                                                                  |
  | --------------------------- | -------------------------------------------------------------------------------------------- |
  | Account Number              | The FedEx account number associated with the shipment.                                       |
  | Deletion Control            | The packages in the shipment that should be cancelled.                                       |
  | Email Shipment              | Select to set the shipment as an unconfirmed email (pending) shipment.                       |
  | Sender Address Country Code | The two-letter country code associated with the Sender’s address.                            |
  | Tracking Number             | The unique tracking number assigned by FedEx to the package of the shipment to be cancelled. |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter               | Description                                                                                                                                                                                                                                                                                                                                                                                                                               |
  | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Additional Parameters   | A JSON object for additional body parameters. Values specified in this parameter will override equivalent parameters.<br /><br />For example:<br /><pre><code>\{<br />    "first\_key": 12345,<br />    "second\_key": "some\_value"<br />}</code></pre>The object must follow the vendor's structure as defined in the [API documentation](https://developer.fedex.com/api/en-us/catalog/ship/v1/docs.html#operation/Cancel%20Shipment). |
  | Customer Transaction ID | An ID to assign to the customer transaction.                                                                                                                                                                                                                                                                                                                                                                                              |
  | Language Codes          | The language and country code to use in the request.                                                                                                                                                                                                                                                                                                                                                                                      |
</div>

## Example Output

```json theme={"dark"}
{
	"customerTransactionId": "AnyCo_order123456789",
	"output": {
		"alerts": [
			{
				"alertType": "NOTE",
				"code": "SHIPMENT.VALIDATION.SUCCESS",
				"message": "Shipment validated successfully. No errors found."
			}
		],
		"cancelledHistory": true,
		"cancelledShipment": true,
		"message": "Shipment is successfully cancelled"
	},
	"transactionId": "624deea6-b709-470c-8c39-4b5511281492"
}
```

## Workflow Library Example

[Cancel Shipment with Fedex and Send Results Via Email](https://library.blinkops.com/workflows/cancel-shipment-with-fedex-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/cancel-shipment-with-fedex-and-send-results-via-email/canvas" />
</div>
