---
title: "Create voucher"
method: POST
path: "/operations/voucher"
tags: ["Operations"]
---

# Create voucher

`POST /operations/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
Status | Error Code | Description
------ | ---------- | -----------
`400` | `invalidChecksum` |  Discount method is not `CHARGE_SCORES`
`400` | `invalidChecksum` |  Company charge scores rate is 0.
`400` | `invalidChecksum` |  Given `total` less then or is equal to `skipLoyaltyTotal`

## Request body

- CreateVoucher
  - `nonce` string, nullable — Nonce for voucher (UUID)
  - `cashier` object, nullable — Cashier information.
    - `externalId` string — Cashier identifier.
    - `name` string, nullable — Cashier name.
  - `receipt` object, required — Receipt information.
    - `total` number, required — Total receipt amount (in currency units).
    - `number` string, nullable — Receipt number.
    - `skipLoyaltyTotal` number, nullable — A part of the bill amount for which cashback is not credited and to which the discount does not apply (in currency units).

## Response `200`

Voucher

- VoucherInfo — Voucher details returned after creating a voucher via POST /operations/voucher. Contains the code for printing on the receipt and QR code URLs for display.
  - `code` string — UDS voucher code
  - `qrCodeText` string — UDS voucher info for qrcode
  - `qrCode128` string — Link for generate qrcode image (size 128)
  - `qrCode256` string — Link for generate qrcode image (size 256)
  - `expiresIn` string, date-time — Voucher code expires in
  - `points` number — Minimum points for withdrawal

---

[API](https://skmtc.dev/uds/apis/uds-api.md) · [All operations](https://skmtc.dev/uds/apis/uds-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/uds/uds-api/revisions/6fbbbc79e671/schema)
