Envia.com Cancel API

Cancel shipments and request refunds

Operations 1

POST /ship/cancel/ Cancel a Shipment #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/envia:envia-cancel-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

envia-cancel-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Envia Shipping API — Complete Documentation Cancel API
  version: v2.3.0
  description: 'Shipping API to connect with over 100 couriers worldwide. Shipping made simple for e-commerces and enterprises. Envia''s Shipping Web Services offers solutions that applications can use to quote, create labels, request pickups, track packages, cancel shipments and many other logistics operations in USA, Mexico, Colombia, Brazil, India, Canada, Argentina, Chile, Guatemala, Spain, Italy and France. This API is built for e-commerce platforms, logistics teams, and enterprise applications that need a single integration to access multi-carrier shipping capabilities. Core features include real-time rate comparison, label generation, package tracking, pickup scheduling, shipment cancellation, and webhook-based event notifications.


    **Important Information:**

    - State codes must be 2 digits

    - Country codes must be 2 digits

    - Validate the shipping address structure

    - Make sure the zip code or locality are correct


    **Custom Keys:** Custom Keys are used when you have a direct account with a carrier. This way you create labels with your rates with an additional small fee for service.'
  contact:
    name: Envia API Support
    url: https://docs.envia.com/discuss
  license:
    name: Proprietary
    url: https://www.envia.com/terminos-y-condiciones
  termsOfService: https://www.envia.com/terminos-y-condiciones
servers:
- url: https://api-test.envia.com
  description: Sandbox/Test
- url: https://api.envia.com
  description: Production
security:
- bearerAuth: []
tags:
- name: Cancel
  description: Cancel shipments and request refunds
paths:
  /ship/cancel/:
    post:
      tags:
      - Cancel
      summary: Cancel a Shipment
      description: 'Cancel an existing shipment and request a label refund from the carrier. The shipment must not have been picked up or entered the carrier network.


        **When to use:** Call this endpoint when you need to void a previously generated label — for example, if the order was cancelled, the address is incorrect, or you need to regenerate the label with different details.


        **Prerequisites:**

        - Valid JWT authentication token (Bearer)

        - The carrier identifier (e.g., `fedex`, `dhl`, `ups`)

        - The tracking number of the shipment to cancel


        **Key behaviors:**

        - Returns a confirmation status indicating whether the cancellation was accepted by the carrier

        - Refund processing times vary by carrier

        - Some carriers only allow cancellation within a limited time window after label generation

        - Labels that have already been scanned by the carrier cannot be cancelled'
      operationId: cancel-shipment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - carrier
              - trackingNumber
              properties:
                carrier:
                  type: string
                  description: Name of the carrier
                  example: fedex
                trackingNumber:
                  type: string
                  description: Tracking number of the label
                  example: '7520610403'
                folio:
                  type: string
                  description: Reference id
                  example: ENV-2026-001234
                ecommerce:
                  type: integer
                  description: Ecommerce shop id
                  example: 0
            example:
              carrier: fedex
              trackingNumber: '788138721950'
      responses:
        '200':
          description: Successful shipment cancellation
          content:
            application/json:
              schema:
                type: object
                properties:
                  meta:
                    type: string
                    default: cancel
                    description: Name of the action
                  data:
                    type: object
                    properties:
                      carrier:
                        type: string
                        description: Carrier name
                        default: ups
                      service:
                        type: string
                        description: Service name
                        default: ground
                      trackingNumber:
                        type: string
                        description: Tracking number of the shipment
                        default: '123456789'
                      folio:
                        type: string
                        description: Folio of the shipment
                      ecommerce:
                        type: object
                        properties:
                          shop:
                            type: string
                            description: Shop identifier
                          order:
                            type: string
                            description: Order number
                          fulfillment:
                            type: string
                            description: Fulfillment identifier
                        description: Only applies if the shipment was created from e-commerce
                      balanceReturned:
                        type: boolean
                        enum:
                        - true
                        - false
                        description: Indicates whether the refund was issued after cancellation
                        default: ''
                      balanceReturnDate:
                        type: string
                        format: date-time
                        description: Indicates the date of the refund
                        default: '2025-10-01 12:31:00'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
externalDocs:
  description: Full Envia API Documentation
  url: https://docs.envia.com
x-provenance:
  method: searched
  source: https://docs.envia.com/reference
  harvested: '2026-10-27'
  tool: harvest-readme-openapi.py
  note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
  assembled_from:
  - https://docs.envia.com/reference/cancel-shipment.md
  - https://docs.envia.com/reference/classify-hs-code.md
  - https://docs.envia.com/reference/create-commercial-invoice.md
  - https://docs.envia.com/reference/create-shipping-label.md
  - https://docs.envia.com/reference/create-shipping-manifest.md
  - https://docs.envia.com/reference/locatecolombiacity.md
  - https://docs.envia.com/reference/schedule-pickup.md
  - https://docs.envia.com/reference/shipping-rates.md
  - https://docs.envia.com/reference/test-webhook-endpoint.md
  - https://docs.envia.com/reference/track-shipments.md
  - https://docs.envia.com/reference/upload-customs-documents.md
  merge:
    pages: 11
    deduped: 10
    conflicts_kept_first: 0