Envia icon

Envia

Interact with the Envia shipping API for Latin America

Custom → Create Invoice

AI-generated

Summary

Create a commercial invoice via the Envia API with full customs details for shipment

Inputs

  • environment — Environment (production or test), pulled from credentials; hidden parameter
  • originName (required) — Sender full name; routed to origin.name in request body
  • originPhone (required) — Sender phone number; routed to origin.phone in request body
  • originStreet (required) — Sender street address; routed to origin.street in request body
  • originCity (required) — Sender city; routed to origin.city in request body
  • originState (required) — Sender state or province code; routed to origin.state in request body
  • originCountry (required) — Sender country (ISO 3166-1 alpha-2, e.g. MX, US, CO); default MX; routed to origin.country in request body
  • originPostalCode (required) — Sender postal / ZIP code; routed to origin.postalCode in request body
  • destinationName (required) — Recipient full name; routed to destination.name in request body
  • destinationPhone (required) — Recipient phone number; routed to destination.phone in request body
  • destinationStreet (required) — Recipient street address; routed to destination.street in request body
  • destinationCity (required) — Recipient city; routed to destination.city in request body
  • destinationState (required) — Recipient state or province code; routed to destination.state in request body
  • destinationCountry (required) — Recipient country (ISO 3166-1 alpha-2, e.g. MX, US, CO); default MX; routed to destination.country in request body
  • destinationPostalCode (required) — Recipient postal / ZIP code; routed to destination.postalCode in request body
  • carrier (required) — Carrier code (e.g. fedex, dhl, estafeta); routed to shipment.carrier in request body
  • itemDescription (required) — Description of the item being shipped; routed to packages[0].items[0].description in request body
  • itemHsCode (required) — Harmonized System code for the item; routed to packages[0].items[0].hsCode in request body
  • itemQuantity (required) — Number of units of this item; default 1; routed to packages[0].items[0].quantity in request body
  • itemUnitPrice (required) — Price per unit of the item; default 0; routed to packages[0].items[0].price in request body
  • itemCountryOfManufacture (required) — ISO country code where the item was manufactured; default MX; routed to packages[0].items[0].countryOfManufacture in request body
  • exportReason — Reason for exporting the goods; options: gift, repair, return, sale, sample; default sale; routed to customsSettings.exportReason in request body
  • dutiesPayment — Who pays the import duties; options: recipient, sender; default sender; routed to customsSettings.dutiesPaymentEntity in request body
  • requestOptions — Collection of advanced options including batching (batchSize, batchInterval), proxy, timeout, and SSL certification override

Output shape

API response containing the created commercial invoice details, typically including invoice ID and status

Response shape is determined by the Envia API; not explicitly defined in node properties

Examples

Example 1: Create a commercial invoice for a domestic MX shipment via DHL

Set environment to production (or leave default from credentials), populate all origin/destination fields, carrier='dhl', itemDescription, itemHsCode, itemQuantity=2, itemUnitPrice=50, itemCountryOfManufacture='MX', exportReason='sale', dutiesPayment='sender'

Links

Discussion