Add a job to the cart
add_to_cartPrices one job with Printdash's pricing engine (product id and a configuration of option ids, as price_job takes them) and puts it in the cart exactly as the product page's Add to cart does. If the job cannot be priced, nothing is added and the result says what is missing or the nearest combinations. Nothing is ordered or charged: checkout on printdash.io re-prices, takes artwork and payment. Printdash prints in Australia and delivers within Australia only; prices are in AUD and include GST. 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": {
"product_id": "<product_id>",
"configuration": "<configuration>"
},
"name": "add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | ||
| configuration | Yes | The job, as option ids from get_product. Everything optional: the result says what is missing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | No | ||
| next | Yes | ||
| added | Yes | ||
| price | No | ||
| errors | No | ||
| priced | No | ||
| reason | No | ||
| line_id | No | ||
| missing | No | ||
| nearest | No | ||
| product | Yes | ||
| currency | Yes | ||
| product_id | Yes | ||
| turnaround | No | ||
| service_area | Yes | ||
| prices_include_gst | Yes |