{
  "service": {
    "name": "RoastRoute",
    "environment": "production",
    "version": "2026.07.11",
    "region": "us-east-1",
    "currency": "USD",
    "timezone": "America/New_York"
  },
  "request": {
    "id": "req_7f42b91c8a6e4d12",
    "timestamp": "2026-07-11T14:22:08Z",
    "endpoint": "/v1/subscriptions/sub_104982",
    "method": "GET"
  },
  "customer": {
    "id": "cus_58291",
    "email": "mara.ellis@example.com",
    "name": "Mara Ellis",
    "status": "active",
    "preferences": {
      "grind": "whole_bean",
      "roastLevel": "medium",
      "flavorNotes": [
        "chocolate",
        "stone fruit",
        "caramel"
      ],
      "avoidNotes": [
        "smoky",
        "earthy"
      ],
      "caffeine": "regular"
    },
    "shippingAddress": {
      "line1": "1847 Cedar Street",
      "line2": "Apt 3B",
      "city": "Portland",
      "state": "OR",
      "postalCode": "97214",
      "country": "US"
    }
  },
  "subscription": {
    "id": "sub_104982",
    "plan": {
      "id": "plan_explorer_2bag",
      "name": "Explorer Two-Bag",
      "bagSizeGrams": 340,
      "bagsPerShipment": 2,
      "interval": {
        "unit": "week",
        "count": 2
      },
      "price": {
        "subtotal": 36.00,
        "shipping": 0.00,
        "tax": 2.88,
        "total": 38.88
      }
    },
    "status": "active",
    "startedAt": "2026-03-18T09:12:44Z",
    "nextBillingAt": "2026-07-18T10:00:00Z",
    "nextShipmentAt": "2026-07-19T16:00:00Z",
    "skipUntil": null,
    "discounts": [
      {
        "code": "WELCOME15",
        "type": "percentage",
        "value": 15,
        "expiresAt": "2026-09-18T23:59:59Z"
      }
    ]
  },
  "upcomingShipment": {
    "shipmentId": "shp_882104",
    "status": "scheduled",
    "warehouse": {
      "id": "wh_pdx_01",
      "name": "Portland Roastery",
      "cutoffTime": "2026-07-17T20:00:00Z"
    },
    "items": [
      {
        "sku": "coffee-colombia-el-alto-340g",
        "name": "Colombia El Alto",
        "origin": {
          "country": "Colombia",
          "region": "Huila",
          "farm": "Finca El Alto"
        },
        "process": "washed",
        "roastLevel": "medium",
        "tastingNotes": [
          "red apple",
          "brown sugar",
          "milk chocolate"
        ],
        "quantity": 1
      },
      {
        "sku": "coffee-ethiopia-bensa-340g",
        "name": "Ethiopia Bensa",
        "origin": {
          "country": "Ethiopia",
          "region": "Sidama",
          "farm": "Bensa Cooperative"
        },
        "process": "natural",
        "roastLevel": "light",
        "tastingNotes": [
          "blueberry",
          "jasmine",
          "honey"
        ],
        "quantity": 1
      }
    ],
    "carrierOptions": [
      {
        "carrier": "USPS",
        "service": "Ground Advantage",
        "estimatedDeliveryDays": 4
      },
      {
        "carrier": "UPS",
        "service": "2nd Day Air",
        "estimatedDeliveryDays": 2
      }
    ]
  },
  "payment": {
    "defaultMethod": {
      "type": "card",
      "brand": "visa",
      "last4": "4242",
      "expiresMonth": 11,
      "expiresYear": 2028
    },
    "billingStatus": "current",
    "lastInvoice": {
      "id": "inv_739210",
      "paidAt": "2026-07-04T10:01:27Z",
      "amountPaid": 38.88
    }
  },
  "features": {
    "pauseSubscription": true,
    "swapCoffee": true,
    "giftShipment": true,
    "smsNotifications": false,
    "rewardsEnabled": true
  },
  "rewards": {
    "pointsBalance": 460,
    "tier": "silver",
    "availableRedemptions": [
      {
        "id": "reward_free_shipping",
        "pointsRequired": 200,
        "description": "Free expedited shipping on one shipment"
      },
      {
        "id": "reward_5_off",
        "pointsRequired": 500,
        "description": "$5 off next subscription invoice"
      }
    ]
  }
}