Coupons
Duplicate a coupon
Creates a copy of an existing Coupon. Useful when seeding a similar coupon (e.g. a renewal of a seasonal promotion, or a sibling coupon scoped to a different segment). The copy inherits every field from the source; rename it via a subsequent PUT /shop/coupons/{couponId}.
Requires the copy permission on the source Coupon (see resourceAbilityMap on CouponController). No request body.
post/shop/coupons/{couponId}/copy
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"
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.