redeem_code
Mark one code as redeemed — exactly once — either by its coupon_token or by the code the customer presented at the point of sale (coupon_code plus sweepstakes_token). coupon_token wins if both are sent. Voided codes are never redeemable. This is reversible: unredeem_code undoes a redemption made by mistake. Requires the Codes & Coupons module enabled on the account — on 403 "module not enabled", do NOT retry; tell the user to contact Sweeppea support.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coupon_code | No | The code the customer presented — matched exactly and case-sensitively. Requires sweepstakes_token | |
| coupon_token | No | The code token (UUID v4). Required unless coupon_code is sent; takes precedence when both are sent | |
| sweepstakes_token | No | The sweepstakes token (UUID v4). Required together with coupon_code |