Coupons

Get Coupon Stats

Changed on

Counts coupons by state and sums paid coupon orders over the last 30 days and the 30 days before.

get/v1/shops/{shopId}/coupons/stats

Request

Response

window_daysinteger
activeinteger
scheduledinteger
endedinteger
redemptionsinteger
redemptions_previousinteger
revenue_usdinteger
revenue_usd_previousinteger
discount_usdinteger

Example response

{
  "window_days": 30,
  "active": 1,
  "scheduled": 0,
  "ended": 0,
  "redemptions": 0,
  "redemptions_previous": 0,
  "revenue_usd": 0,
  "revenue_usd_previous": 0,
  "discount_usd": 0
}

Changes