Redeem Promotion
This API endpoint allows users to redeem their promotions. Upon successful redemption, the promotion’s status gets updated in the system, marking it as utilized, and the system returns the details of the redeemed promotion.
Request Body
user_promotion_id(string): The unique identifier of the promotion that the user wants to redeem.
Response
-
user_promotion_id(string): The unique identifier of the redeemed promotion. -
user_id(string): The unique identifier of the user who has redeemed the promotion. -
promotion_id(string): The unique identifier of the redeemed promotion. -
barcode_id(string): If applicable, the identifier of the barcode associated with the promotion. Null if no barcode is associated. -
redeemed_at(string): The date and time when the promotion was redeemed. -
expiry_date(string): The date and time when the promotion would have expired if not redeemed. -
created_at(string): The date and time when the promotion record was first created. -
updated_at(string): The date and time when the promotion was redeemed. This marks the last update to the promotion record.

