Quote Product
quote_productHold a 36-hour expanded-product quote using a workspace key, print-ready PDF and 1–100 US recipients. Returns the exact expiration in expiresAt (UTC). Uploads artwork to DirectMailAmerica for live pricing; no charge or mailing. Each PDF page must match catalog dimensions; postcards require one landscape front artwork page. Two-sided postcard: pro_postcard_85x55, doubleSided:true, color:true, plus reverseMessage OR reverseArtworkBase64; the server assembles two pages. Maximum 25 MiB combined artwork. Staging quotes are demo estimates. If live pricing is unavailable and the product has a configured retail fallback, returns ready with pricingSource:fallback, fulfillmentPending:true and the fixed total. Disclose the fulfillment delay before approval. Otherwise returns a saved queued request with totalCents:null and a next-attempt time. Poll get_product_quote with the same ID; never recreate a queued request. A queue_held result needs review. Obtain approval of artwork, addresses and the final total after status becomes ready before sending.
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": {
"productId": "<productId>",
"pdfBase64": "<pdfBase64>",
"from": "<from>",
"recipients": "<recipients>"
},
"name": "quote_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | ||
| color | No | ||
| paper | No | ||
| filename | No | ||
| pdfBase64 | Yes | Base64 PDF, maximum 25 MiB decoded. Every page must match the selected product dimensions; postcards require one landscape front artwork page. For pro_postcard_85x55 with doubleSided:true, supply reverseMessage OR reverseArtworkBase64 separately; the server assembles two pages. No raw image files. | |
| productId | Yes | ||
| recipients | Yes | ||
| doubleSided | No | Two-sided postcards: productId pro_postcard_85x55, true, color:true, plus exactly one reverse input. Other postcard sizes remain single-sided. | |
| returnEnvelope | No | ||
| reverseMessage | No | For pro_postcard_85x55 with doubleSided:true only: plain text on the reverse left side, maximum 21 wrapped lines. Choose this OR reverseArtworkBase64. Unsupported glyphs and overflow are rejected. | |
| reverseArtworkBase64 | No | For pro_postcard_85x55 with doubleSided:true only: one unrotated PDF page, fitted into the 282 × 348 point reverse left area. No raw images, added bleed or crop marks. Choose this OR reverseMessage. Front and reverse together: maximum 25 MiB decoded. | |
| electronicReturnReceipt | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| demo | No | ||
| from | No | ||
| error | No | ||
| jobId | No | ||
| queue | No | ||
| status | No | ||
| options | No | ||
| quoteId | No | ||
| currency | No | ||
| expiresAt | No | ||
| operation | Yes | ||
| recipients | No | ||
| totalCents | No | USD cents. Null means not applicable or not known; never interpret null as zero. | |
| pricingSource | No | ||
| fulfillmentPending | No |