Generate Usage Report
curl --request POST \
--url https://api-{dc}.moengage.com/v1/coupon-list/{coupon_list_id}/usage-report \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"email_subscribers": [
"[email protected]"
]
}
'{
"message": "The usage report for the {{coupon list name}} coupons is being processed and will be sent to email alert subscribers shortly."
}Generate Usage Report
This API produces a detailed usage report for a specific coupon list, providing details on which user received which coupon from which locale or variation of which campaign at what time. After it is generated, this report is delivered directly to the requested email addresses. Using this API, you can conduct a comprehensive analysis of critical data and coupon usage trends efficiently.
POST
/
coupon-list
/
{coupon_list_id}
/
usage-report
Generate Usage Report
curl --request POST \
--url https://api-{dc}.moengage.com/v1/coupon-list/{coupon_list_id}/usage-report \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"email_subscribers": [
"[email protected]"
]
}
'{
"message": "The usage report for the {{coupon list name}} coupons is being processed and will be sent to email alert subscribers shortly."
}Rate Limit
You can generate:- 5 usage reports of coupon list per minute or
- 50 usage reports of coupon list per day
Authorizations
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
- Username: Use your MoEngage workspace ID (also known as the App ID). You can find it in the MoEngage dashboard at Settings > Account > API keys.
- Password: Use the Campaign report/Business events/Custom templates/Catalog API/Inform Report key from Settings > Account > API keys. Its auth type is Basic Auth (Legacy). This API accepts only this legacy key, so a key you create with + Create new key doesn't work with it.
For the key that each MoEngage API accepts, refer to API Keys by Feature.
Headers
Body
application/json