Skip to main content

Coupon

Stored in the coupons collection. createdAt and updatedAt are maintained automatically.

Returned by GET /coupons/:code.

FieldTypeNotes
namestringrequired · unique
typestringrequired · one of percentage, amount
valuenumberrequired
startDatedaterequired
endDatedaterequired
statusstringdefault inactive · one of active, inactive, expired
createdByObjectId -> Member
updatedByObjectId -> Member
companyObjectId -> Company
_idObjectIddefault "6a95712f932657988a91c080"
createdAtdateset once
updatedAtdate