post
https://api-test.envia.com/ship/commercial-invoice
Generate a commercial invoice document for an international shipment, detailing the goods, their value, and customs information required for cross-border clearance.
When to use: Call this endpoint when shipping internationally and the carrier or destination country requires a commercial invoice. This is typically needed alongside or after label generation.
Prerequisites:
- Valid JWT authentication token (Bearer)
- Complete origin and destination addresses (including country)
- Shipment details with carrier and tracking number
- Package contents: item descriptions, quantities, unit values, weight, and HS codes
Key behaviors:
- Returns a downloadable commercial invoice PDF URL
- USD is the recommended currency to avoid issues during customs inspections
- Each item should include an HS code for proper tariff classification (use
/utils/classify-hscodeif needed) - The invoice is attached to the shipment and can be uploaded to the carrier via
/ship/uploadDocuments
