Admin
Archive a coupon
Archive (soft delete) a coupon and deactivate it in Stripe.
patch/admin/coupons/{coupon_id}/archive
Request
- Base URL: https://api.presscart.com (the document declares no server; this is the origin it was published from)
- URL: https://api.presscart.com/admin/coupons/{coupon_id}/archive
- Auth: HTTP bearer
Path parameters
coupon_idstring uuid required
Example:e0ae5aa7-9385-446f-894e-bc502cb71edb
Response
Coupon archived successfully
Example response
{
"code": "SAVE20",
"name": "20% Off Summer Sale",
"description": "Summer promotional discount",
"discount_type": "percent_off",
"discount_value": 20,
"max_redemptions": 100,
"max_redemptions_per_team": 1,
"minimum_order_amount": 50,
"active": true,
"stripe_coupon_id": "coupon_1234567890",
"stripe_promotion_code_id": "promo_1234567890",
"created_by": "123e4567-e89b-12d3-a456-426614174000"
}Changes
No recorded changes to this operation across all 3 revisions of this API.