Coupons

Restore a deleted coupon

Un-deletes a previously soft-deleted Coupon. The coupon returns to its pre-deletion state, including code, value, validity window, and offering discounts. Past orders that redeemed the coupon remain unaffected.

Requires the restore permission on the Coupon. No request body.

post/shop/coupons/{couponId}/restore

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.