Newer Version Available

This content describes an older version of this product. View Latest

Commerce Webstore Promotions, Coupon Code Redemption, Decrease

Get coupon code redemption usage to revert a previously redeemed coupon code. For example, use when an item that used a coupon code is returned so that the coupon code can be reverted.
Resource
1/commerce/promotions/actions/decrease-use/coupon-codes
Available version
58.0
HTTP methods
POST
Request body for POST
JSON example
1{
2 "couponCodes":["code1","code2","code3","code4"],
3 "transactionId": "0a6D20000004CETIA2",
4 "buyer": "001xx000003GZ6NAAW"
5}
Properties
Name Type Description Required or Optional Available Version
buyer String ID of the buyer account or email address for a guest user. Required 60.0
couponCodes String List of coupon codes. Required 58.0
effectiveAccountId String ID of the account. Required 58.0–59.0
transactionId String ID of the transaction, which must be a valid cart ID. Required 58.0
Response body for POST
Coupon Code Redemption Collection