{
  "id": "invoice-payment",
  "name": "Invoice payment",
  "boundary": "Begins at invoice receipt; ends at accepted payment instruction and remittance or a recorded dispute. Settlement is outside the boundary.",
  "lanes": [
    "Supplier",
    "Accounts payable",
    "Approver"
  ],
  "nodes": [
    {
      "id": "V1",
      "owner": "Supplier",
      "label": "Submit invoice and order reference",
      "type": "task"
    },
    {
      "id": "V2",
      "owner": "Accounts payable",
      "label": "Invoice matches order and receipt?",
      "type": "decision"
    },
    {
      "id": "V3",
      "owner": "Supplier",
      "label": "Correct invoice or provide evidence",
      "type": "task"
    },
    {
      "id": "V4",
      "owner": "Approver",
      "label": "Authorize payment?",
      "type": "decision"
    },
    {
      "id": "V5",
      "owner": "Accounts payable",
      "label": "Record dispute and notify supplier",
      "type": "end"
    },
    {
      "id": "V6",
      "owner": "Accounts payable",
      "label": "Submit payment; accepted?",
      "type": "decision"
    },
    {
      "id": "V7",
      "owner": "Accounts payable",
      "label": "Investigate payment rejection",
      "type": "task"
    },
    {
      "id": "V8",
      "owner": "Accounts payable",
      "label": "Send remittance and update ledger",
      "type": "end"
    }
  ],
  "edges": [
    {
      "source": "V1",
      "target": "V2",
      "condition": "Invoice received"
    },
    {
      "source": "V2",
      "target": "V3",
      "condition": "Mismatch"
    },
    {
      "source": "V3",
      "target": "V2",
      "condition": "Corrected invoice"
    },
    {
      "source": "V2",
      "target": "V4",
      "condition": "Match"
    },
    {
      "source": "V4",
      "target": "V5",
      "condition": "Disputed or denied"
    },
    {
      "source": "V4",
      "target": "V6",
      "condition": "Authorized"
    },
    {
      "source": "V6",
      "target": "V7",
      "condition": "Instruction rejected"
    },
    {
      "source": "V7",
      "target": "V6",
      "condition": "Cause resolved; duplicate checked"
    },
    {
      "source": "V6",
      "target": "V8",
      "condition": "Instruction accepted"
    }
  ],
  "handoffAcceptance": "The approver receives match evidence. Accounts payable must check for a prior accepted instruction before retrying a payment with an uncertain result.",
  "exampleTrace": "V1 \u2192 V2 \u2192 V3 \u2192 V2 \u2192 V4 \u2192 V6 \u2192 V7 \u2192 V6 \u2192 V8. The retry requires a duplicate check, not just another click."
}
