{
  "name": "get_invoice_by_number",
  "label": "Get Invoice by Number",
  "description": "Searches for an invoice in Zync by invoice number.",
  "type": "search",
  "connection": { "$ref": "#/connection" },
  "parameters": [
    { "name": "number", "label": "Invoice Number", "type": "text", "required": true }
  ],
  "interface": {
    "output": [
      { "name": "id", "label": "Invoice ID", "type": "text" },
      { "name": "invoice_number", "label": "Invoice Number", "type": "text" },
      { "name": "status", "label": "Status", "type": "text" },
      { "name": "customer_id", "label": "Customer ID", "type": "text" },
      { "name": "currency", "label": "Currency", "type": "text" },
      { "name": "total", "label": "Total", "type": "text" },
      { "name": "due_date", "label": "Due Date", "type": "date" },
      { "name": "paid_at", "label": "Paid At", "type": "date" }
    ]
  }
}
