{
  "id": "refunds",
  "name": "Refund request",
  "boundary": "Begins at request submission; ends with denial or accepted refund instruction plus customer notification. Bank settlement is outside scope.",
  "lanes": [
    "Customer",
    "Support",
    "Finance"
  ],
  "nodes": [
    {
      "id": "R1",
      "owner": "Customer",
      "label": "Submit order ID and reason",
      "type": "task"
    },
    {
      "id": "R2",
      "owner": "Support",
      "label": "Check order and policy?",
      "type": "decision"
    },
    {
      "id": "R3",
      "owner": "Customer",
      "label": "Supply missing evidence",
      "type": "task"
    },
    {
      "id": "R4",
      "owner": "Support",
      "label": "Record denial and notify",
      "type": "end"
    },
    {
      "id": "R5",
      "owner": "Finance",
      "label": "Approve refundable amount?",
      "type": "decision"
    },
    {
      "id": "R6",
      "owner": "Finance",
      "label": "Submit refund; accepted?",
      "type": "decision"
    },
    {
      "id": "R7",
      "owner": "Support",
      "label": "Send reference and close",
      "type": "end"
    },
    {
      "id": "R8",
      "owner": "Finance",
      "label": "Investigate payment error",
      "type": "task"
    }
  ],
  "edges": [
    {
      "source": "R1",
      "target": "R2",
      "condition": "Request logged"
    },
    {
      "source": "R2",
      "target": "R3",
      "condition": "Evidence missing"
    },
    {
      "source": "R3",
      "target": "R2",
      "condition": "Evidence supplied"
    },
    {
      "source": "R2",
      "target": "R4",
      "condition": "Ineligible"
    },
    {
      "source": "R2",
      "target": "R5",
      "condition": "Eligible and complete"
    },
    {
      "source": "R5",
      "target": "R4",
      "condition": "Denied with reason"
    },
    {
      "source": "R5",
      "target": "R6",
      "condition": "Approved"
    },
    {
      "source": "R6",
      "target": "R7",
      "condition": "Processor accepted"
    },
    {
      "source": "R6",
      "target": "R8",
      "condition": "Processor error"
    },
    {
      "source": "R8",
      "target": "R6",
      "condition": "Issue resolved; safe to retry"
    }
  ],
  "handoffAcceptance": "Finance accepts a complete case only when the order, refundable amount and policy evidence are present. Support remains responsible for the customer response.",
  "exampleTrace": "R1 \u2192 R2 \u2192 R3 \u2192 R2 \u2192 R5 \u2192 R6 \u2192 R8 \u2192 R6 \u2192 R7. This trace includes missing evidence and a processor error before closure."
}
