This article applies to Contextual Commerce. (Looking for Classic Commerce documentation?)
Coupons and Coupon Codes
Use this endpoint to create, update, delete and get coupons. Read more about coupons at Coupons.
Create a New Coupon or Edit an Existing One
Update Existing Coupon
Add Coupon Codes to a Coupon
If your request payload includes a duplicate of an existing coupon code, the response will list only the first duplicate code it found; the request will be rejected and any valid / non-duplicate codes included in the payload will not be added to the coupon.
Retrieve Coupon Details
Get Coupon Codes Assigned to a Coupon
Delete ALL Coupon Codes from a Coupon
This request will permanently delete ALL remaining coupon codes from the specified coupon. After processing this request, the coupon will not have any codes remaining available. Customers will not be able to use the coupon until new codes are added.