# API Envia.com Documentation > Documentation for API Envia.com ## Guides: Getting Started - [Introduction](https://docs.envia.com/docs/getting-started.md) - [API Token](https://docs.envia.com/docs/authentication.md): To use the Envia API services, do you need generate an API Token following the next steps. - [FAQs](https://docs.envia.com/docs/faqs.md) - Workflows - [Core Workflow](https://docs.envia.com/docs/core-workflow.md) - [Domestic Shipping Workflow](https://docs.envia.com/docs/domestic-shipping-workflow.md) - [International Shipping Workflow](https://docs.envia.com/docs/international-shipping-workflow.md) - [Shipping Multiple Packages](https://docs.envia.com/docs/shipping-multiple-packages.md) - [Pickup & Manifest Workflow](https://docs.envia.com/docs/pickup-manifest-workflow.md) ## Guides: Use Cases - [E-commerce Checkout Integration](https://docs.envia.com/docs/ecommerce-checkout.md) - [Marketplace Multi-Seller Shipping](https://docs.envia.com/docs/marketplace-multi-seller.md) - [Warehouse and 3PL Automation](https://docs.envia.com/docs/warehouse-3pl.md) ## Guides: Shipping API - [Envia Shipping API](https://docs.envia.com/docs/envia-shipping-api-introduction.md) - Shipping Concepts - [Delivery Estimate](https://docs.envia.com/docs/delivery-estimate.md) - [Additional Services](https://docs.envia.com/docs/additional-services.md) - [Additional Charges](https://docs.envia.com/docs/additional-charges.md) - [Taxes](https://docs.envia.com/docs/taxes.md) - [Pickups](https://docs.envia.com/docs/pickups.md) - International Shipping & Customs - [Duties & Taxes](https://docs.envia.com/docs/duties-taxes.md) - [Webhooks Guide](https://docs.envia.com/docs/webhooks.md) ## Guides: Management API - [Envia Management API](https://docs.envia.com/docs/queries-api-overview.md) - [Common Endpoints](https://docs.envia.com/docs/common-queries-endpoints.md) ## Guides: Geocodes API - [Envia Geocodes API](https://docs.envia.com/docs/geocodes-api-overview.md) ## Guides: MCP Server - [MCP Server](https://docs.envia.com/docs/mcp-overview.md) ## Guides: Changelog - [Changelog](https://docs.envia.com/docs/changelog.md) ## API Reference: Envia Shipping API - Quotes - [Get Shipping Rates](https://docs.envia.com/reference/shipping-rates.md): Retrieve real-time shipping rates from multiple carriers in a single request so you can compare pricing and delivery estimates. **When to use:** Call this endpoint to compare carrier rates and… - Labels - [Generate a Shipping Label](https://docs.envia.com/reference/create-shipping-label.md): Generate a shipping label with a tracking number for a specific carrier and service. This is the core endpoint for creating shipments — it returns a printable label and registers the shipment with… - Cancel - [Cancel a Shipment](https://docs.envia.com/reference/cancel-shipment.md): 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… - Pickups - [Schedule a Pickup](https://docs.envia.com/reference/schedule-pickup.md): Schedule a carrier pickup at a specified address and time window so a driver collects your packages. **When to use:** Call this endpoint after generating labels when you need the carrier to pick up… - Tracking - [Track Shipments](https://docs.envia.com/reference/track-shipments.md): Retrieve the current tracking status and event history for one or more shipments using their tracking numbers. **When to use:** Call this endpoint to check delivery progress, confirm delivery, or… - Manifest - [Create a Shipping Manifest](https://docs.envia.com/reference/create-shipping-manifest.md): Group multiple shipment tracking numbers into a single manifest document that the carrier driver uses to verify packages at pickup. **When to use:** Call this endpoint at the end of your shipping… - Commercial Invoice - [Create a Commercial Invoice](https://docs.envia.com/reference/create-commercial-invoice.md): Generate an Envia commercial invoice PDF for an international label you already created. **When to use:** After `/ship/generate`, when the carrier or destination needs a commercial invoice. FedEx… - [Upload Customs Documents](https://docs.envia.com/reference/upload-customs-documents.md): Upload customs-related documents (such as a commercial invoice) to an existing international shipment so the carrier can process customs clearance. **When to use:** Call this endpoint after… - Webhooks - [Test a Webhook Endpoint](https://docs.envia.com/reference/test-webhook-endpoint.md): Send a simulated tracking event to your registered webhooks - Utilities - [Classify an HS Code](https://docs.envia.com/reference/classify-hs-code.md): Look up or validate a Harmonized System (HS) code for a product using its description or a known HS code. The endpoint returns the best-matching HS code along with a confidence score and product… - [Locate a city (Colombia)](https://docs.envia.com/reference/locatecolombiacity.md): Resolve a Colombian city name to its 8-digit DANE municipal code and validated postal code — required for all Colombian carriers (Coordinadora, ServiEntrega, TCC, etc.). **When to use:** Call this… ## API Reference: Envia Queries API - Carriers - [Get Carriers With Services](https://docs.envia.com/reference/available-carriers-by-shipment-type.md): Get available carriers for a specific country, international status, and shipment type. - [Get Carriers (Detailed)](https://docs.envia.com/reference/available-couriers-detailed.md): Return available couriers for the given **country**, **international** flag (0 or 1) and **shipment_type_id** (1 = Parcel, 2 = Freight/LTL, 3 = Full Truck Load). - [Get Single Carrier](https://docs.envia.com/reference/carrier-by-id.md): Get detailed information about a specific carrier. - [Get Carriers by Country](https://docs.envia.com/reference/carriers-by-country.md): Returns the list of shipping carriers that are currently active and available for a given country. Use this endpoint to discover which carriers you can use when creating shipments. **When to use:**… - [Get Carrier Actions by Carrier](https://docs.envia.com/reference/carrier-actions-by-carrier.md): Retrieve carrier action for the specified carrier id. Requires Bearer JWT authentication. - [Get Print Options by Carrier](https://docs.envia.com/reference/carrier-print-options.md): Retrieve the available label print formats and sizes for one or all carriers. - Services - [Get Services](https://docs.envia.com/reference/available-services.md): Get available services for a specific country, international status, and shipment type. - [Get Services by Carrier](https://docs.envia.com/reference/services-by-carrier.md): Get all available services for a specific carrier. - [Get Services by Carrier and Country](https://docs.envia.com/reference/services-by-carrier-and-country.md): Returns the shipping service levels (e.g., ground, express, next-day) offered by a specific carrier in a given country. If no carrier is specified, returns all services for all carriers in that… - [Get Shipment Types](https://docs.envia.com/reference/shipment-types.md): Get all available shipment types (package, envelope, etc.). - Additional Services - [Get Additional Services](https://docs.envia.com/reference/additional-services.md): Catalog with all available additional services. - [Get Additional Services by Country](https://docs.envia.com/reference/additional-services-by-locale.md): Get additional services for a specific locale, international status, and shipment type. - Countries - [Get all countries](https://docs.envia.com/reference/all-countries.md): Envia.com has integrations with couriers around the world. With this request you can obtain a list of countries you can Ship **From**. You will be able to ship your products domestically and… - [Get country by code](https://docs.envia.com/reference/country-by-code.md): Retrieve country for the specified country code. Requires Bearer JWT authentication. - [Get country locale information](https://docs.envia.com/reference/country-locale.md): Get specific country locale information including exchange rates - [Serviceable Countries](https://docs.envia.com/reference/serviceable-countries.md): Envia.com has integrations with couriers around the world. With this request you can obtain a list of countries you can Ship **From**. You will be able to ship your products domestically and… - States - [Get state by code](https://docs.envia.com/reference/state-by-code.md): Get state details by state code. Examples: **US** - AL (Alabama), TX (Texas), NY (New York); **Mexico** - NL (Nuevo León), AG (Aguascalientes), BC (Baja California) - [Get states by country](https://docs.envia.com/reference/states-by-country.md): Get states by country code. Available countries: **US** - United States, **MX** - Mexico, **CO** - Colombia, **CA** - Canada, **BR** - Brazil, **IN** - India, **CL** - Chile, **GT** - Guatemala,… - Provinces - [Get All Provinces](https://docs.envia.com/reference/all-provinces.md): Retrieve provinces. - [Get Single Province](https://docs.envia.com/reference/province-by-code.md): Retrieve provinces for the specified state code. - Branches - [Get Branches](https://docs.envia.com/reference/carrier-branches.md): Query carrier branches for a given **carrier** and **country**. Filters allow searching by zipcode, locality, state, geolocation, etc. `type` is the search type: 1, 2, or 3. - [Get Estafeta Branches](https://docs.envia.com/reference/estafeta-branches-mexico.md): Get the available branches list specifically for Estafeta México - [Address Form](https://docs.envia.com/reference/address-validation.md): Browse address validation endpoints in the Envia Queries API. - [Get Address Form](https://docs.envia.com/reference/country-address-structure.md): **Review this information carefully** if you are planning to integrate Envia in multiple countries. Address structure may vary depending on the country the package is being shipped from. It can be by… - Packages - [Get all packages](https://docs.envia.com/reference/all-packages.md): Retrieve all packages. Requires Bearer JWT authentication. - [Create package](https://docs.envia.com/reference/create-package.md): Create a new package with specified dimensions and weight. - [Delete package](https://docs.envia.com/reference/remove-package.md): Delete packages for the specified package id. Requires Bearer JWT authentication. - [Update package](https://docs.envia.com/reference/update-package.md): Update packages for the specified package id. Requires Bearer JWT authentication. - Shipments - [Get Shipments by Month and Year](https://docs.envia.com/reference/shipments-by-month-year.md): Retrieves all shipments created under your account for a specific calendar month and year. Returns a summary list including tracking numbers, carriers, statuses, and creation dates. **When to use:**… - [Get Single Shipment](https://docs.envia.com/reference/shipment-by-tracking.md): Retrieves the full details of a specific shipment, including origin/destination addresses, carrier, current status, and tracking history. This is the primary endpoint for looking up individual… - [Download labels in bulk](https://docs.envia.com/reference/download-labels-bulk.md): Download shipping labels for multiple shipments at once. Returns a merged PDF or a ZIP archive depending on label formats. - [Webhooks](https://docs.envia.com/reference/webhooks.md): Real-time HTTP notifications for shipment status changes, e-commerce events, and billing surcharges. - [All webhooks available](https://docs.envia.com/reference/all-webhooks.md): List all webhook subscriptions registered under your account, optionally filtered by active status. - [Create webhook](https://docs.envia.com/reference/create-webhook.md): Register a new webhook subscription to receive HTTP POST notifications whenever a selected event type occurs. - [Webhook types](https://docs.envia.com/reference/webhook-types.md): Retrieve all available webhook event types that can be used when creating or updating a subscription. - [Update webhook](https://docs.envia.com/reference/update-webhook.md): Modify an existing webhook subscription — change its URL, event type, or active status. - Notifications - [Active Notifications](https://docs.envia.com/reference/active-notifications.md): Retrieve company notifications. - [Deactivate Notifications](https://docs.envia.com/reference/deactivate-company-notifications.md): Update deactivate company notifications. - Payment - [Invoice Detail](https://docs.envia.com/reference/invoice-detail.md): Get billing by date. MM: Month in two digits. YYYY: Year in four digits. - [Payment history](https://docs.envia.com/reference/payment-history.md): Get payment history by date. MM: Month in two digits. YYYY: Year in four digits. - User Management - [Get Addresses by Type](https://docs.envia.com/reference/addresses-by-type.md): Retrieve all addresses for the specified type. Requires Bearer JWT authentication. - [Get All Addresses](https://docs.envia.com/reference/all-addresses.md): Returns the complete list of addresses saved in the authenticated user's address book. These are reusable origin and destination addresses that can be referenced when creating shipments. **When to… - [Create Address](https://docs.envia.com/reference/create-user-address.md): Creates and saves a new address entry in the user's address book. Saved addresses can be quickly reused when creating shipments, eliminating the need to re-enter full address details each time.… - [Get Default User Address](https://docs.envia.com/reference/default-user-address.md): Retrieve default user address for the specified user id. Requires Bearer JWT authentication. - [Get Default Print Settings](https://docs.envia.com/reference/default-user-print.md): Get default print settings for a user and carrier. - [Delete Address](https://docs.envia.com/reference/remove-user-address.md): Delete user address for the specified address id. Requires Bearer JWT authentication. - [Update Address](https://docs.envia.com/reference/update-user-address.md): Update user address for the specified address id. Requires Bearer JWT authentication. - NDR (India) - [NDR Request](https://docs.envia.com/reference/create-ndr-request.md): Create a Non-Delivery Report (NDR) request for India shipments - [NDR History](https://docs.envia.com/reference/ndr-history.md): Retrieve get shipment history ndr for the specified shipment id. Requires Bearer JWT authentication. - [NDR Shipment Actions](https://docs.envia.com/reference/ndr-shipment-actions.md): Retrieve get shipments ndr. Requires Bearer JWT authentication. - [DC-e Brazil](https://docs.envia.com/reference/dce-brazil.md): Generate and cancel DC-e (Declaração de Conteúdo Eletrônica) documents for non-commercial shipments within Brazil. - [Generate DC-e](https://docs.envia.com/reference/generate-dce.md): Authorize a DC-e with the /dce/autorizar endpoint and see request and response examples. - [Cancel DC-e](https://docs.envia.com/reference/cancel-dce.md): Cancel an unused or unassociated DC-e with the /dce/cancelar endpoint to keep your fiscal records consistent with SEFAZ. - [Tickets](https://docs.envia.com/reference/tickets.md) - [Tickets Overview](https://docs.envia.com/reference/tickets-overview.md) - [Create & Update Tickets](https://docs.envia.com/reference/create-update-tickets.md) - [Retrieve Tickets](https://docs.envia.com/reference/retrieve-tickets.md) - [Ticket Evidence](https://docs.envia.com/reference/ticket-evidence.md) - [Ticket Ratings](https://docs.envia.com/reference/ticket-ratings.md) - [Ticket Catalogs](https://docs.envia.com/reference/ticket-catalogs.md) - [## Ticket Events & Webhooks](https://docs.envia.com/reference/ticket-events-webhooks.md) ## API Reference: Envia Ecommerce API - Orders - [Get Orders](https://docs.envia.com/reference/get-orders.md): Retrieve paginated ecommerce orders with nested destination address, origin locations, packages, products, shipments, filters, status catalogs, and error responses. - Configuration - [Create shipping rule for shop](https://docs.envia.com/reference/create-shop-shipping-rule.md): Create shipping rules for the specified shop id. Requires Bearer JWT authentication. - [Get default shop services](https://docs.envia.com/reference/default-shop-services.md): Retrieve default shop services for the specified shop id. Requires Bearer JWT authentication. - [Select shipping rule for order](https://docs.envia.com/reference/select-shipping-rule-for-order.md): Apply shipping rules to select the best option for an order. - [Get specific shipping rule](https://docs.envia.com/reference/shop-shipping-rule.md): Retrieve shipping rules for the specified shop id and rule id. Requires Bearer JWT authentication. - [Get shipping rules for shop](https://docs.envia.com/reference/shop-shipping-rules.md): Get shipping rules configuration for a specific shop. - [Update shipping rules for shop](https://docs.envia.com/reference/update-shop-shipping-rules.md): Update shipping rules configuration for a specific shop. - Shops - [Shops by URL](https://docs.envia.com/reference/shop-by-url.md): Retrieve shop information by its public URL (e.g., Shopify store URL). ## API Reference: Envia Geocodes API - Address Location - [Location by City](https://docs.envia.com/reference/locate-city.md): **City / Locality validation** Obtain a city specific information like state or zip code. Sometimes cities have multiple zip codes, this endpoint will return all available zip codes for the given… - [Location by Zipcode](https://docs.envia.com/reference/validate-zip-code.md): Get zipcode information. With only the zipcode in a country, you can obtain the city, state, and other location details. This is useful for address validation and auto-completion features.