Upload Commercial Invoice
machship_upload_commercial_invoiceUpload one or more base64-encoded commercial invoice files to a consignment for international shipments, attaching required customs documents by consignment ID.
Instructions
Uploads one or more commercial invoice files for a consignment (for international shipments). Files are provided as base64-encoded content.
Args:
consignmentId (number): The consignment to attach the invoice to
files (array): Array of files, each with fileName and fileBase64 content
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Invoice files to upload | |
| consignmentId | Yes | Consignment ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Validation errors returned by Machship, if any | |
| object | No | Response payload from the Machship API |