generate-order-invoice
Get one order's invoice as a PDF (optionally also a JPEG of the first page) to send to a buyer who asks for one — the same document the app prints under Orders > Print > Generate Invoice, built from the company's invoice template. It is the 3Dsellers invoice, not the marketplace's own receipt.
Returns pdfUrl (and imageUrl with image: true). The links expire in 5 minutes because the invoice carries the buyer's name and address: download the file and attach it, do not forward the link. With no options the invoice on file is reused; pass regenerate: true after the order or the template changed, or templateId to use a template other than the default. orderId is the id from get-orders. Authenticated via bearer token.
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": {
"orderId": "<orderId>"
},
"name": "generate-order-invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | Also render a JPEG of the first page, as imageUrl | |
| orderId | Yes | The order id (the id field from get-orders) | |
| regenerate | No | Render a new invoice even when one is on file | |
| templateId | No | Invoice template id; omit for the company's default |