Prepare a postcard order
prepare_postcardUse once the design or photo, message, recipient addresses and mode are confirmed with the user. Returns the private order ref, front and per-recipient back previews, the locked quote, and a Send Christmas Postcard checkoutUrl that redirects to Stripe. Charges and mails nothing until the user pays.
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": {
"mode": "<mode>",
"card": "<card>",
"recipients": "<recipients>"
},
"name": "prepare_postcard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | Yes | ||
| mode | Yes | "test" = free sandbox (never printed, Stripe test card 4242 4242 4242 4242). "live" = real card, printed and mailed. Always explicit. | |
| locale | No | ||
| currency | No | Buyer currency. Fixed at prepare time; checkout charges exactly this. | EUR |
| buyerEmail | No | Receipt + status emails. Optional. | |
| recipients | Yes | ||
| idempotencyKey | No | Reuse this key only to retry the same request. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | ||
| quote | Yes | ||
| payment | Yes | ||
| previews | Yes | ||
| warnings | Yes | ||
| payloadHash | Yes | sha256 of the canonical order payload; binds price and content. |