Coupons
Soft-delete a coupon
Soft-deletes a coupon. The coupon stops issuing new discounts but any existing OrderDiscounts created from it remain in place. Use POST /shop/coupons/{couponId}/restore to bring it back.
delete/shop/coupons/{couponId}
Response
The coupon was successfully created
Example response
{
"data": {
"name": "Test coupon",
"description": "This coupon is a test",
"offering_discounts": [
{
"offerings": [
{
"offering_name": "Test offering"
}
],
"fixed_amount": 50,
"percentage": 10
}
],
"currency": "gbp",
"valid_weekdays": [
"monday"
],
"default_validity_interval": "P1Y",
"default_multi_use": true,
"for_lead_booker_only": true,
"max_uses": 2,
"redemption_type": "manual",
"created_at": "2020-02-24T12:00:00+01:00",
"updated_at": "2020-02-24T12:00:00+01:00",
"deleted_at": "2020-02-24T12:00:00+01:00"
}
}