Coupon

Entity description

A coupon is a promotional code or discount mechanism for a business. It can be applied to specific services or staff members for a specified period. Coupons may provide either a fixed amount or percentage discount.

Properties

NameDescriptionTypeExample
uidThe unique identifier (UID) of the couponstring56a78b56c
business_uidThe unique identifier (UID) of the business the coupon belongs tostringhfjds47r534
coupon_nameA human-readable name for the couponstringSummer 2024
discount_typeType of discount offered: fixed for a fixed amount, percent for a percentage discountstringfixed
discount_valueThe discount amount (decimal) provided by applying the coupon. For a fixed type, this is the monetary amount (e.g., $5.5). For a percent type, this is the percentage discount (e.g., 5.3%).number20
coupon_codeA unique identifier or code for the couponstringSAVE20
statusThe status of the coupon: active, scheduled, or expiredstringactive
valid_for_servicesA list of services (UIDs) where the coupon can be appliedarray["5ya4gbwm2c3qoic8"]
valid_for_staffA list of staff members (UIDs) where the coupon can be appliedarray["0c4ac9717ab26f56"]
start_dateThe start date when the coupon becomes active, in ISO 8601 formatstring2024-03-20T12:34:56Z
expiration_dateThe expiry date when the coupon is no longer valid, in ISO 8601 formatstring2024-01-01T09:00:00Z
max_redemptionsThe maximum number of times the coupon can be usednumber100
max_redemptions_per_clientThe maximum number of times an individual client can use the couponnumber1
total_redemptionsThe total number of times the coupon has been redeemednumber23
created_atThe creation date and time of the coupon, in ISO 8601 formatstring2021-07-20T14:00:00.000Z
updated_atThe last updated date and time of the coupon, in ISO 8601 formatstring2021-07-20T14:00:00.000Z

Example

{
  "uid": "56a78b56c",
  "business_uid": "hfjds47r534",
  "coupon_name": "Summer 2024",
  "discount_type": "fixed",
  "discount_value": 20,
  "coupon_code": "SAVE20",
  "status": "active",
  "valid_for_services": ["5ya4gbwm2c3qoic8"],
  "valid_for_staff": ["0c4ac9717ab26f56"],
  "start_date": "2024-03-20T12:34:56Z",
  "expiration_date": "2024-01-01T09:00:00Z",
  "max_redemptions": 100,
  "max_redemptions_per_client": 1,
  "total_redemptions": 23,
  "created_at": "2021-07-20T14:00:00.000Z",
  "updated_at": "2021-07-20T14:00:00.000Z"
}