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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"consignmentId": "<consignmentId>",
"files": "<files>"
},
"name": "machship_upload_commercial_invoice"
}
}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 |