Get coupon statistics for a template
GET
https://api-v2.test.eldowallet.fr/coupons/:id/passes/stats
Returns two counters for a coupon template: the number of coupons sent (countOfSentCouponPasses) and the number of coupons added to a mobile wallet (countOfDownloadedPasses).
Good to know
countOfDownloadedPassescounts the coupons installed on at least one device.countOfSentCouponPassescounts every coupon of the template that still exists, whatever its status; deleted coupons are not counted.
Request
path parameters
idstring requiredCoupon template ID.
header parameters
x-langstringLanguage for responsesenum:en,frdefault:"en"
Responses
- 200
- 401
- 403
- 404
- 500
Schema
application/jsoncountOfDownloadedPassesnumber requiredNumber of coupon passes that have been downloaded (active status)example:6countOfSentCouponPassesnumber requiredNumber of coupon passes that have been sent (total active + inactive)example:99
UNAUTHORIZED
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email
FORBIDDEN
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email
MODEL_NOT_FOUND
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email
UNKNOWN_ERROR
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email