{
  "yesdoc": 1,
  "title": "Catering for the Hartwell reunion",
  "from": {
    "name": "Saffron Table Catering",
    "email": "orders@example.com",
    "phone": "555-0117"
  },
  "to": {
    "name": "Jamie Hartwell"
  },
  "date": "2026-12-03",
  "currency": "USD",
  "tax": {
    "bps": 800,
    "label": "Sales tax"
  },
  "parts": [
    {
      "kind": "text",
      "id": "intro",
      "text": "Here is the order for your reunion. Set the number of guests, choose the menu, and tell us about any allergies."
    },
    {
      "kind": "lines",
      "id": "order",
      "items": [
        {
          "id": "dinner",
          "text": "Dinner, served family style",
          "qty": 40,
          "unit": "guests",
          "unitCents": 4800,
          "qtyRange": {
            "min": 20,
            "max": 120
          }
        },
        {
          "id": "staff",
          "text": "Service staff for four hours",
          "qty": 2,
          "unit": "staff",
          "unitCents": 22000
        },
        {
          "id": "dessert",
          "text": "Dessert table",
          "qty": 1,
          "unitCents": 38000,
          "kind": "optional",
          "on": true
        },
        {
          "id": "bar",
          "text": "Bar service, you supply the drinks",
          "qty": 1,
          "unitCents": 45000,
          "kind": "optional"
        }
      ]
    },
    {
      "kind": "choice",
      "id": "menu",
      "ask": "Which menu?",
      "options": [
        {
          "id": "harvest",
          "text": "Harvest: roast chicken, squash, greens"
        },
        {
          "id": "coast",
          "text": "Coast: cedar salmon, potatoes, slaw"
        },
        {
          "id": "garden",
          "text": "Garden: all vegetarian"
        }
      ]
    },
    {
      "kind": "field",
      "id": "event-date",
      "ask": "What is the date of the event?",
      "type": "date",
      "min": "2026-12-03"
    },
    {
      "kind": "field",
      "id": "diet",
      "ask": "Any allergies or diets we should plan for?",
      "type": "text",
      "required": false,
      "maxLength": 500
    },
    {
      "kind": "notice",
      "id": "count",
      "text": "The guest count can be changed up to seven days before the event. After that the count you signed for is billed."
    },
    {
      "kind": "acknowledge",
      "id": "ack-count",
      "text": "I understand the guest count is final seven days before the event."
    }
  ],
  "signers": [
    {
      "id": "s1",
      "name": "Jamie Hartwell",
      "email": "jamie@example.com"
    }
  ]
}