{
  "name": "Receipt Audit Export (Signatrust)",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 24
            }
          ]
        }
      },
      "id": "a1872906-1c4c-4fb6-be40-73478a502caa",
      "name": "Daily Audit Export",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        300
      ]
    },
    {
      "parameters": {
        "operation": "read",
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "REPLACE_SHEET_ID"
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "Receipts",
          "cachedResultName": "Receipts"
        },
        "options": {}
      },
      "id": "491daabd-1922-492f-be47-7d5053c2dd8e",
      "name": "Read Receipt IDs",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        220,
        300
      ],
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "id": "a727f91b-cbfe-4870-aaca-9ea8933512d8",
      "name": "Loop Over IDs",
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        440,
        300
      ]
    },
    {
      "parameters": {
        "operation": "getReceipt",
        "receiptId": "={{ $json.receipt_id }}"
      },
      "id": "2768182c-1ee8-405a-89d7-7d5c6d1745b6",
      "name": "Signatrust: Get Receipt",
      "type": "n8n-nodes-signatrust.signatrust",
      "typeVersion": 1,
      "position": [
        660,
        200
      ],
      "credentials": {
        "signatrustApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "REPLACE_SHEET_ID"
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "Audit",
          "cachedResultName": "Audit"
        },
        "columns": {
          "mappingMode": "autoMapInputData",
          "value": {},
          "matchingColumns": []
        },
        "options": {}
      },
      "id": "665e23d6-3d99-4ada-91b0-319837866b96",
      "name": "Write Audit Row",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        880,
        200
      ],
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "content": "## Receipt Audit Export\nScheduled job that walks a list of receipt IDs, fetches each full receipt from Signatrust, and writes an audit table \u2014 perfect for compliance evidence packs.",
        "height": 190,
        "width": 430,
        "color": 6
      },
      "id": "ad82dd9e-fd55-4b29-94cc-34a435978e56",
      "name": "Sticky Note d5f20a",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        30
      ]
    }
  ],
  "connections": {
    "Daily Audit Export": {
      "main": [
        [
          {
            "node": "Read Receipt IDs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Receipt IDs": {
      "main": [
        [
          {
            "node": "Loop Over IDs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over IDs": {
      "main": [
        [],
        [
          {
            "node": "Signatrust: Get Receipt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Signatrust: Get Receipt": {
      "main": [
        [
          {
            "node": "Write Audit Row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write Audit Row": {
      "main": [
        [
          {
            "node": "Loop Over IDs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "tags": [
    {
      "name": "Receipt Audit Export \u2014 Audit"
    },
    {
      "name": "Receipt Audit Export \u2014 Compliance"
    },
    {
      "name": "Signatrust (23)"
    }
  ],
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "versionId": "53ad62db-fa76-4804-b0ef-6cbe5ca3a9a8"
}