ppaperbrainTemplates
Sign inGet started
← All templates
E-commerce & Logistics

Order Confirmation

Post-checkout confirmation — items, shipping details, delivery estimate, and totals.

The contract

Fields your API call provides. Amounts and totals are always computed by the caller — templates only format.

taxnumberrequired
items[].namestringrequired
items[].pricenumberrequired
items[].quantitynumberrequired
totalnumberrequired
customer.namestringrequired
shipping.methodstringrequired
shipping.addressstringrequired
subtotalnumberrequired
order_datestringrequired
order_numberstringrequired
shipping_costnumberrequired
support_emailstringrequired
estimated_deliverystringrequired

MCP-ready: forks of this template will expose generate_order_confirmation when the MCP server ships.

Generate it (after you fork & publish)

curl -X POST https://your-paperbrain-host/api/generate/gen_<your-id> \
  -H "Content-Type: application/json" \
  -d '{
    "tax": 19.43,
    "items": [
      {
        "name": "Linen throw blanket — sage",
        "price": 89,
        "quantity": 1
      },
      {
        "name": "Stoneware mug set (4)",
        "price": 96,
        "quantity": 2
      },
      {
        "name": "Beeswax candle, large",
        "price": 34,
        "quantity": 1
      }
    ],
    "total": 246.43,
    "customer": {
      "name": "Priya"
    },
    "shipping": {
      "method": "Standard (3-5 business days)",
      "address": "88 Alder Street, Apt 4B, Brooklyn, NY 11211"
    },
    "subtotal": 219,
    "order_date": "2026-06-10",
    "order_number": "#10482",
    "shipping_cost": 8,
    "support_email": "help@fernandflame.example",
    "estimated_delivery": "2026-06-16"
  }'

gen_<your-id>is your generator's id once you fork and publish. The body shown is this template's sample data — the exact shape the contract validates.