trends
Get Discount Type Distribution
This endpoint analyzes the first discount_type field in each notification’s specific_promotion_details and returns the count of each unique promotion type (e.g. "Flat Discount", "BOGO"). Only notifications with a non-empty discount_type.value are included. Useful for analyzing promotional strategy trends over time.
get/trends/discount-type
Request
- Base URLhttps://api.notiflow.empushy.com
- Authnone declared. Required headers: X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
start_datestring date
Start date in YYYY-MM-DD format (default is 30 days ago).
end_datestring date
End date in YYYY-MM-DD format (default is today).
brandstring
Filter by brand (maps to appName in the database).
genrestring
Filter by app genre (e.g. Retail, Finance, Entertainment).
Headers
X-API-Keystring required
API key used for authenticating the request.
Response
A list of discount types and their counts.
Changes
No recorded changes to this operation across all 1 revision of this API.