get analytics redeemers

GET /v2/ecommerceReports/coupons/{couponId}/analytics/redeemers — Redeemer segments and retention (lifetime)

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Returns lifetime redeemer segmentation and new-customer retention for the Coupon analytics Redeemers tab. Not filtered by the modal KPI date range — do not pass dateRange / startDate / endDate.

KPIs and usage limit: GET .../analytics. Products: GET .../analytics/products. All-coupon report: GET .../used-on-orders.

Full metric definitions: Coupon analytics metrics and definitions.

Path

ParameterTypeDescription
couponIdstringEcommerce coupon id

Query

None.

Auth and errors

StatusWhen
400Affiliate context is required
401Missing or invalid bearer token
403Role or couponAnalytics view access denied (AFFILIATE_SUPER_ADMIN or AFFILIATE_ADMIN only — not AFFILIATE_AGENT)
404Unknown couponId or coupon owned by another affiliate
409Conflicting record exists

Response (200)

{
  "success": true,
  "data": {
    "coupon": {
      "id": "ecpn::example",
      "code": "SAVE20",
      "description": "",
      "discountType": "percent",
      "discountMode": "one-time",
      "amount": 20
    },
    "users": {
      "totalDistinctRedeemers": 100,
      "totalRedemptions": 250,
      "new": {
        "count": 50,
        "pct": 50,
        "redemptions": 60,
        "redemptionPct": 24
      },
      "existingFirstUse": {
        "count": 10,
        "pct": 10,
        "redemptions": 10,
        "redemptionPct": 4
      },
      "returning": {
        "count": 40,
        "pct": 40,
        "redemptions": 180,
        "redemptionPct": 72
      }
    },
    "retention": {
      "day30": { "eligible": 45, "retained": 10, "pct": 22.22 },
      "day60": { "eligible": 45, "retained": 10, "pct": 22.22 },
      "day90": { "eligible": 40, "retained": 8, "pct": 20 },
      "day180": { "eligible": 25, "retained": 5, "pct": 20 }
    }
  }
}
AreaNotes
users.new / existingFirstUseOne qualifying order per patient (lifetime); prior affiliate orders checked at first redeem
users.returningPatient has more than one qualifying deduped order on this coupon
users.existingFirstUseUI label: Existing customers, first use
users.*.redemptionPctUse for segment bar width vs total redemptions
retentionNew customers only; retained = later qualifying order or active subscription at milestone; pct is null when eligible === 0

OpenAPI schema: CouponAnalyticsRedeemersSuccessEnvelope → CouponAnalyticsRedeemersResponse.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here!