{
  "run_timestamp": "2026-04-12T10:25:03.048217",
  "summary": {
    "total_processed": 4,
    "successful_payments": 0,
    "failed_payments": 4,
    "revenue_collected": 0,
    "outstanding_amount": 550.7
  },
  "results": [
    {
      "subscription_id": "sub_8001",
      "customer_name": "Jamie Chen",
      "customer_email": "jamie.chen@acmecorp.io",
      "invoice": {
        "id": "inv_8001_20260412",
        "customer_id": "cus_2001",
        "customer_email": "jamie.chen@acmecorp.io",
        "subscription_id": "sub_8001",
        "period_start": "2026-03-15T00:00:00Z",
        "period_end": "2026-04-14T23:59:59Z",
        "line_items": [
          {
            "description": "Pro Monthly subscription",
            "amount": 79.0,
            "quantity": 1,
            "total": 79.0
          },
          {
            "description": "Proration: Pro Monthly \u2192 Enterprise Monthly (13 days remaining)",
            "amount": 73.67,
            "quantity": 1,
            "total": 73.67
          }
        ],
        "subtotal": 152.67000000000002,
        "tax": 13.55,
        "total": 166.22,
        "status": "payment_failed",
        "paid_at": null,
        "error_message": ""
      },
      "payment_success": false,
      "error": "",
      "new_status": "past_due"
    },
    {
      "subscription_id": "sub_8002",
      "customer_name": "Priya Sharma",
      "customer_email": "priya.sharma@dataflow.dev",
      "invoice": {
        "id": "inv_8002_20260412",
        "customer_id": "cus_2002",
        "customer_email": "priya.sharma@dataflow.dev",
        "subscription_id": "sub_8002",
        "period_start": "2026-03-12T00:00:00Z",
        "period_end": "2026-04-11T23:59:59Z",
        "line_items": [
          {
            "description": "Usage-Based Monthly subscription",
            "amount": 0.0,
            "quantity": 1,
            "total": 0.0
          },
          {
            "description": "API overage: 17,430 calls @ $0.005/call",
            "amount": 87.15,
            "quantity": 1,
            "total": 87.15
          }
        ],
        "subtotal": 87.15,
        "tax": 7.73,
        "total": 94.88,
        "status": "payment_failed",
        "paid_at": null,
        "error_message": ""
      },
      "payment_success": false,
      "error": "",
      "new_status": "past_due"
    },
    {
      "subscription_id": "sub_8003",
      "customer_name": "Marco Rossi",
      "customer_email": "marco.rossi@pixelstudio.design",
      "invoice": {
        "id": "inv_8003_20260412",
        "customer_id": "cus_2003",
        "customer_email": "marco.rossi@pixelstudio.design",
        "subscription_id": "sub_8003",
        "period_start": "2026-03-10T00:00:00Z",
        "period_end": "2026-04-09T23:59:59Z",
        "line_items": [
          {
            "description": "Pro Monthly subscription",
            "amount": 79.0,
            "quantity": 3,
            "total": 237.0
          }
        ],
        "subtotal": 237.0,
        "tax": 21.03,
        "total": 258.03,
        "status": "payment_failed",
        "paid_at": null,
        "error_message": ""
      },
      "payment_success": false,
      "error": "",
      "new_status": "past_due"
    },
    {
      "subscription_id": "sub_8004",
      "customer_name": "Taylor Brooks",
      "customer_email": "taylor.brooks@freshroast.co",
      "invoice": {
        "id": "inv_8004_20260412",
        "customer_id": "cus_2004",
        "customer_email": "taylor.brooks@freshroast.co",
        "subscription_id": "sub_8004",
        "period_start": "2026-03-11T00:00:00Z",
        "period_end": "2026-04-10T23:59:59Z",
        "line_items": [
          {
            "description": "Starter Monthly subscription",
            "amount": 29.0,
            "quantity": 1,
            "total": 29.0
          }
        ],
        "subtotal": 29.0,
        "tax": 2.57,
        "total": 31.57,
        "status": "payment_failed",
        "paid_at": null,
        "error_message": ""
      },
      "payment_success": false,
      "error": "",
      "new_status": "past_due"
    }
  ],
  "dunning_records": [
    {
      "subscription_id": "sub_8001",
      "customer_id": "cus_2001",
      "customer_email": "jamie.chen@acmecorp.io",
      "customer_name": "Jamie Chen",
      "invoice_id": "inv_8001_20260412",
      "amount_due": 166.22,
      "attempt_number": 1,
      "started_at": "2026-04-12T10:25:03.048378",
      "next_retry": "2026-04-15T10:25:03.048380",
      "status": "active"
    },
    {
      "subscription_id": "sub_8002",
      "customer_id": "cus_2002",
      "customer_email": "priya.sharma@dataflow.dev",
      "customer_name": "Priya Sharma",
      "invoice_id": "inv_8002_20260412",
      "amount_due": 94.88,
      "attempt_number": 1,
      "started_at": "2026-04-12T10:25:04.755539",
      "next_retry": "2026-04-15T10:25:04.755541",
      "status": "active"
    },
    {
      "subscription_id": "sub_8003",
      "customer_id": "cus_2003",
      "customer_email": "marco.rossi@pixelstudio.design",
      "customer_name": "Marco Rossi",
      "invoice_id": "inv_8003_20260412",
      "amount_due": 258.03,
      "attempt_number": 1,
      "started_at": "2026-04-12T10:25:06.371168",
      "next_retry": "2026-04-15T10:25:06.371173",
      "status": "active"
    },
    {
      "subscription_id": "sub_8004",
      "customer_id": "cus_2004",
      "customer_email": "taylor.brooks@freshroast.co",
      "customer_name": "Taylor Brooks",
      "invoice_id": "inv_8004_20260412",
      "amount_due": 31.57,
      "attempt_number": 1,
      "started_at": "2026-04-12T10:25:08.022731",
      "next_retry": "2026-04-15T10:25:08.022740",
      "status": "active"
    }
  ]
}