v1
latestOpenAPI 3.1.02026-07-261444991.2 MBCoupon
Archive coupon
This endpoint allows a coupon to be archived. Archived coupons can no longer be redeemed, and will be hidden from lists of active coupons. Additionally, once a coupon is archived, its redemption code can be reused for a different coupon.
post/coupons/{coupon_id}/archive
Path parameters
coupon_idstring required
Response
OK
Example response
{
"id": "7iz2yanVjQoBZhyH",
"redemption_code": "HALFOFF",
"discount": {
"applies_to_price_ids": [
"h74gfhdjvn7ujokd",
"7hfgtgjnbvc3ujkl"
],
"percentage_discount": 0.15
},
"duration_in_months": 12
}