Skip to navigation

Create User Voucher

This API endpoint allows you to create user-specific promotions such as discounts, special offers, or rewards. The endpoint takes in the details about the user and the type of promotion to be granted and returns the unique identifier of the newly created promotion.

Request Body

  • user_id (string): The unique identifier of the user to whom the promotion is granted.

  • promotion_id (string): The unique identifier of the promotion being granted.

  • timestamp (string): The timestamp indicating when the promotion was created.

  • timestampx (string): The expiration time of the promotion.

Response

  • user_promotion_id (string): The unique identifier of the newly created promotion.

  • user_id (string): Repetition of the user identifier to whom the promotion was granted.

  • promotion_id (string): Repetition of the promotion identifier that was granted.

  • barcode_id (string): If applicable, the identifier of the barcode associated with the promotion. Null if no barcode is associated.

  • expiry_date (string): The date and time at which the promotion will expire.

  • updated_at (string): The date and time when the promotion record was last updated.

  • created_at (string): The date and time when the promotion record was first created.

Query parameters

api_tokenstringOptional

Response

By Wallet
messagestringOptional
apistringOptional
statusstringOptional
dataobjectOptional