Admin Marketing: Promotions
Export cart rule coupons as csv, xls or xlsx
Changed onDownloads the coupons datagrid shown on the cart rule edit screen — ID, Coupon Code, Times Used, Created Date, Expiration Date — for this cart rule only. Binary download, not JSON. Requires marketing.promotions.cart_rules.
get/marketing/cart-rules/{cartRuleId}/coupons/export
Request
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
cartRuleIdinteger required
Parent cart rule ID
Query parameters
format'csv' | 'xls' | 'xlsx'
Export format: csv, xls or xlsx. Defaults to csv.
Response
Export file downloaded as an attachment.
Changes
- info
endpoint added
- info