---
updatedAt: 2026-06-04T08:19:34.000Z
agentTools:
  projectIndex: https://developers.99minutos.com/llms.txt
---

# /api/v3/shipments/{id}

Cancels an order by trackingId or internalKey.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "x-stoplight": {
    "id": "tt90qxfs5i6qr"
  },
  "info": {
    "title": "API Version 3",
    "version": "3.0.0",
    "description": "This is the documentation for the public api *(version 3)* of 99minutos. [https://www.99minutos.com/.](https://www.99minutos.com/.EnvironmentAPI)\n\n# First Steps\n\n1.  Create an account in the sandbox website: [https://delivery-git-sandbox-99minutos.vercel.app/](https://delivery-git-sandbox-99minutos.vercel.app/)\n2.  Go to Developers section\n3.  On API Keys V3 section click on `Generar`\n4.  After this the `client_id` and `client_secret` will be displayed\n    \n\nUse the credentials to generate access tokens as shown below in the endpoint `create access token`\n\nFollow the same process in production.\n\n## Environments\n\n| **Environment** | **Website** | **API url** |\n| --- | --- | --- |\n| Sandbox | [https://delivery-git-sandbox-99minutos.vercel.app/](https://delivery-git-sandbox-99minutos.vercel.app/) | [https://sandbox.99minutos.com](https://sandbox.99minutos.com) |\n| Production | [https://envios.99minutos.com/developers](https://envios.99minutos.com/developers) | [https://delivery.99minutos.com](https://delivery.99minutos.com) |\n\n`Each environment has an independent set of credentials`"
  },
  "paths": {
    "/api/v3/shipments/{id}": {
      "parameters": [
        {
          "schema": {
            "type": "string"
          },
          "name": "id",
          "in": "path",
          "required": true,
          "description": "trackingId or internalKey"
        }
      ],
      "delete": {
        "summary": "",
        "operationId": "delete-api-v3-shipments-id",
        "description": "Cancels an order by trackingId or internalKey.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "reason": "Lorem impsm"
                  }
                },
                "properties": {
                  "reason": {
                    "type": "string",
                    "description": "Reason for cancellation"
                  }
                },
                "required": [
                  "reason"
                ]
              },
              "examples": {
                "Reason Cancellation example": {
                  "value": {
                    "reason": "El cliente canceló"
                  }
                }
              }
            }
          },
          "description": "Must provide a reason"
        },
        "tags": [
          "shipments"
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ShipmentDeactiveResponse"
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "trackingId",
                "internalKey"
              ],
              "example": "trackingId"
            },
            "in": "query",
            "name": "by",
            "description": "specifies whether the order is to be searched by trackingId or internalKey"
          }
        ],
        "security": [
          {
            "AuthJWT": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AuthJWT": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "responses": {
      "ShipmentDeactiveResponse": {
        "description": "Shipment deactive response",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "traceId": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                },
                "data": {
                  "type": "object",
                  "properties": {}
                },
                "errors": {
                  "type": "object",
                  "properties": {}
                }
              },
              "x-examples": {
                "Example 1": {
                  "traceId": "00cade24-1c83-459e-a704-221fcfb3fece",
                  "message": "Shipment deactivated",
                  "data": {},
                  "errors": {}
                }
              }
            },
            "examples": {
              "Shipment deactive example": {
                "value": {
                  "traceId": "00cade24-1c83-459e-a704-221fcfb3fece",
                  "message": "Shipment deactivated",
                  "data": {},
                  "errors": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://delivery.99minutos.com",
      "description": "Produccion"
    },
    {
      "url": "https://sandbox.99minutos.com",
      "description": "Sandbox Environment"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```

# Sibling pages

* [/api/v3/shipments/{id}](https://developers.99minutos.com/reference/get-api-v3-shipments-id.md)
* [/api/v3/shipments/{id}](https://developers.99minutos.com/reference/shipments_partial_update.md)
* [/api/v3/shipments/tracking](https://developers.99minutos.com/reference/shipments_tracking_retrieve.md)
* [/api/v3/shipments/tracking/batch](https://developers.99minutos.com/reference/shipments_tracking_batch_retrieve.md)