Get Commercial Invoice PDF
machship_get_commercial_invoice_pdfRetrieves the commercial invoice PDF for a consignment by ID, supporting international shipment documentation.
Instructions
Returns the commercial invoice PDF for a consignment (used for international shipments). Returns { fileBase64, contentType, sizeBytes }. contentType comes from the response header.
Args:
consignmentId (number): Consignment ID
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>"
},
"name": "machship_get_commercial_invoice_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 |