Show the 3D mockup
get_mockupThe 3D mockup of a line's artwork on the product, as an image, and view_url: the printdash.io page for that line (checkout, the quote page or the order page) with its interactive 3D viewer already open. To show the customer the mockup, give them view_url; never give a storage or image URL. An order job is rendered by Printdash's server and cached; if it is still rendering the result says so and you call again in about 20 seconds. A cart or quote line returns the mockup checkout or the quote page stored, or else Printdash's server renders it the same way (rendering, then call again); the flat preview comes back when there is no 3D view to show. Needs a signed-in Printdash account: called without one, the connection asks the customer to sign in on printdash.io.
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": {
"target": "<target>"
},
"name": "get_mockup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Where the artwork goes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | ||
| status | Yes | ||
| target | Yes | ||
| quantity | Yes | ||
| view_url | Yes | The printdash.io page for this line with its 3D viewer open (checkout, the quote page or the order page, ?mockup=<line id>). The one link to give the customer. | |
| configuration | Yes | The line's size, stock, sides, finishing and pages, as labelled rows. |