Operations

Create voucher

Creation of a voucher for an operation in UDS. If successful, you will receive information for printing the code and a link to the graphic display of the QR code of the voucher on the check.

Marketing policy

A prerequisite for using this functionality is to configure the loyalty program module in the settings of the UDS Business administrative panel (https://admin.uds.app/). You need to specify "Accrue bonus points" in the settings block "Discount method"

Errors

StatusError CodeDescription
400invalidChecksumDiscount method is not CHARGE_SCORES
400invalidChecksumCompany charge scores rate is 0.
400invalidChecksumGiven total less then or is equal to skipLoyaltyTotal
post/operations/voucher

Request body

noncestring nullable

Nonce for voucher (UUID)

Response

Voucher

codestring

UDS voucher code

qrCodeTextstring

UDS voucher info for qrcode

qrCode128string

Link for generate qrcode image (size 128)

qrCode256string

Link for generate qrcode image (size 256)

expiresInstring date-time

Voucher code expires in

pointsnumber

Minimum points for withdrawal

Changes