|
API Method | HTTP method | Endpoint | Description |
---|
coupons.getCoupons | GET
| /coupons.getCoupons.json
| Returns coupons for a list
|
coupons.getCoupon | GET
| /coupon.getCoupon.json
| Returns an array containing the data of a coupon from the list
|
coupons.getByName | GET
| /coupon.getByName.json
| Returns an array containing the data of a coupon, by name, from the list
|
coupons.addCoupon | POST
| /coupon.addCoupon.json
| Returns an array containing the data of the inserted coupon
|
coupons.updateCoupon | POST
| /coupon.updateCoupon.json
| Returns an array containing the data of the updated coupon
|
coupons.getCouponCodes | GET
| /coupons.getCouponCodes.json
| Returns an Array containing the codes of the coupon. Each array item is a hash with keys: code, created_at, expires_at, sent, subscriber_id, email, newsletter_id, form_id
|
coupons.importCouponCodes | POST
| /coupons.importCouponCodes.json
| Schedules the import of codes for a coupon
|
coupons.generateCouponCodes | POST
| /coupons.generateCouponCodes.json
| Schedules the generation of codes for a coupon
|
coupons.clearCouponCodes | POST
| /coupons.clearCouponCodes.json
| Schedules the clearing of codes for a coupon
|
coupons.deleteCoupon | POST
| /coupons.deleteCoupon.json
| Schedules the deletion of a coupon
|