{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "title": "Create Xero Invoice",
    "description": "Enter the basic invoice details.",
    "pages": [
      {
        "name": "invoice",
        "elements": [
          {
            "type": "text",
            "name": "customer_name",
            "title": "Customer name",
            "isRequired": true,
            "placeholder": "Acme Ltd"
          },
          {
            "type": "text",
            "name": "customer_email",
            "title": "Customer email",
            "inputType": "email",
            "placeholder": "accounts@acme.com"
          },
          {
            "type": "text",
            "name": "due_date",
            "title": "Due date",
            "isRequired": true,
            "inputType": "date"
          },
          {
            "type": "text",
            "name": "line_item_description",
            "title": "What is this invoice for?",
            "isRequired": true,
            "placeholder": "Consulting services"
          },
          {
            "type": "text",
            "name": "amount",
            "title": "Amount",
            "isRequired": true,
            "inputType": "number",
            "min": "0.01",
            "placeholder": "250.00"
          },
          {
            "type": "dropdown",
            "name": "currency",
            "title": "Currency",
            "defaultValue": "USD",
            "isRequired": true,
            "choices": [
              "USD",
              "GBP",
              "EUR",
              "AUD",
              "NZD",
              "ZAR"
            ]
          },
          {
            "type": "dropdown",
            "name": "tax_type",
            "title": "Tax",
            "defaultValue": "No tax",
            "isRequired": true,
            "choices": [
              "No tax",
              "Tax inclusive",
              "Tax exclusive"
            ]
          },
          {
            "type": "comment",
            "name": "invoice_note",
            "title": "Note",
            "placeholder": "Optional note for the invoice"
          }
        ]
      }
    ],
    "completeText": "Create invoice"
  }
}