{
  "name": "AP Control - Invoice validation",
  "nodes": [
    {
      "parameters": {},
      "id": "d97c17c7-7d25-416f-bd30-d1e72993a12f",
      "name": "When clicking Execute workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [-320, 0]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api-production-9502.up.railway.app/v1/invoice-validations",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {"name": "Authorization", "value": "=Bearer {{$env.AP_CONTROL_API_KEY}}"},
            {"name": "Content-Type", "value": "application/json"}
          ]
        },
        "sendBody": true,
        "contentType": "raw",
        "rawContentType": "application/json",
        "body": "={\n  \"invoice\": {\n    \"vendor_name\": \"Acme Industrial\",\n    \"invoice_number\": \"INV-1042\",\n    \"invoice_date\": \"2026-08-09\",\n    \"currency\": \"USD\",\n    \"total\": \"125.00\",\n    \"line_items\": [\n      {\"description\": \"Valve assembly\", \"quantity\": \"1\", \"unit_price\": \"120.00\"}\n    ]\n  }\n}",
        "options": {}
      },
      "id": "4cf59f26-51d8-4ee7-8778-665d4c19547d",
      "name": "Validate invoice",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [0, 0]
    }
  ],
  "connections": {
    "When clicking Execute workflow": {
      "main": [[{"node": "Validate invoice", "type": "main", "index": 0}]]
    }
  },
  "pinData": {},
  "settings": {},
  "versionId": "5c22df44-54c7-4d4b-a6b3-9d5150043ecd",
  "meta": {"templateCredsSetupCompleted": true},
  "tags": []
}
