listCouponUsages()

Get list of users who used coupon code provided in request.

Parameters:

Name Type Description
publisherToken string You can find your publisher token at api-keys page.
couponCode string Coupon code for which you want to get list of usages
- required parameter

Request:

    [
    {
    "method":"listCouponUsages",
    "params":{
    "publisherToken":"Xlrx-SjTLVMCsaRsOf2q2hvWKOlrF57yHknDRRRMX-13Fz-x",
    "coupon":"testCouponCode",
    "offset": "0",
    "limit": "2",
    },
    "jsonrpc":"2.0",
    "id":1
    }
    ]

Response:

    [
    {
    "result":[
    "success":true,
    "list":[
    {
    "email": "customer@domain.com",
    "offerPurchased": S123456789_FR,
    "transactionDate": 1448971200
    },
    {
    "email": "customer@domain2.com",
    "offerPurchased": S963741852_FR,
    "transactionDate": 1448941200
    },
    ],
    "totalItemCount": 120
    ],
    "id": "1",
    "error": null,
    "jsonrpc": "2.0"
    }
    ]

Remember! you can always check it by yourself using API Console - listCouponUsages()

Back to Reporting