NodeRingsDocs

Get Coupon Report

Attribution and ROI figures, grouped by code, campaign, channel, or asset type.

GET
/v1/coupons/{couponId}/report
Authorization<token>

Bearer token

In: header

X-Organization-ID<token>

Tenant or organization identifier

In: header

Path Parameters

couponIdstring

Query Parameters

groupBy?string
Value in"COUPON_REPORT_GROUP_BY_UNSPECIFIED" | "COUPON_REPORT_GROUP_BY_CODE" | "COUPON_REPORT_GROUP_BY_CAMPAIGN" | "COUPON_REPORT_GROUP_BY_CHANNEL" | "COUPON_REPORT_GROUP_BY_ASSET_TYPE"
code?string

Narrow the report to one code, campaign, or channel.

campaign?string
channel?string
startTime?string

Applications created in [start_time, end_time); open ends are unbounded.

Formatdate-time
endTime?string
Formatdate-time

Response Body

application/json

curl -X GET "https://api.noderings.com/v1/coupons/{couponId}/report?groupBy&code&campaign&channel&startTime&endTime" \  -H "Authorization: Bearer {your_token}" \  -H "X-Organization-ID: {your_org_id}"
{
  "couponId": "string",
  "rows": [
    {
      "groupKey": "string",
      "currency": "string",
      "redemptions": 0,
      "uniqueCustomers": 0,
      "discountTotal": "string",
      "revenueDuringDiscount": "string",
      "revenueAfterDiscount": "string",
      "discountsEnded": 0,
      "converted": 0,
      "conversionRate": 0.1,
      "retention30dEligible": 0,
      "retained30d": 0,
      "retention30dRate": 0.1,
      "retention90dEligible": 0,
      "retained90d": 0,
      "retention90dRate": 0.1,
      "churned": 0,
      "avgDaysToChurn": 0.1
    }
  ],
  "generatedAt": "2019-08-24T14:15:22Z",
  "granted": "string",
  "consumed": "string",
  "expired": "string",
  "outstanding": "string"
}