GET rest/statistics?from={from}&to={to}&batchId={batchId}&serviceId={serviceId}

Gets statistics for all coupons from/to a given date or for one specific coupon.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
from

From date

date

Required

to

To date

date

Required

batchId

string

None.

serviceId

Coupon or CouponBook Id

globally unique identifier

None.

Body Parameters

None.

Response Information

Resource Description

CouponStatistics
NameDescriptionTypeAdditional information
Registered

Number of recipents registered to coupon.

integer

None.

Accessed

Number of recipents accessed coupon.

integer

None.

UniqueAccessed

Number of recipents accessed coupon.

integer

None.

Redeemed

Number of recipents redeemed coupon.

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "registered": 1,
  "accessed": 2,
  "uniqueAccessed": 3,
  "redeemed": 4
}

application/xml, text/xml

Sample:
<CouponStatistics xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.linkmobility.com/common/coupons">
  <Accessed>2</Accessed>
  <Redeemed>4</Redeemed>
  <Registered>1</Registered>
  <UniqueAccessed>3</UniqueAccessed>
</CouponStatistics>