---
title: "GET /api/vouchers/rich"
method: GET
path: "/api/vouchers/rich"
tags: ["api", "vouchers"]
deprecated: true
---

# GET /api/vouchers/rich

`GET /api/vouchers/rich`

> **Deprecated.**

Get all Vouchers

## Query parameters

- `top` number, float — A limit on the number of objects to be returned. Can range between 1 and 1000.
- `skip` number, float — The number of objects to skip for the requested result
- `code` string, nullable — Filter vouchers by code
- `transactionId` string, nullable — Filter vouchers by transactionId

## Response `200`

OK

- GETVouchersGetAllVouchers200Response
  - `docs` VoucherWithBalanceResource[]
    - `code` string, required — Code used to redeem the voucher
    - `amount` number, float, required — The amount of the voucher in seller's currency. eg. 50.0 -> 50 EUR
    - `validUntil` string, date-time — The date until this voucher can be redeemed.
    - `sellerId` string — The ID of the seller of the voucher
    - `transactionId` string — The ID of the transaction if the voucher was a result of a transaction
    - `productId` string — The ID of the product if the voucher was a result of a product
    - `refundId` string — The ID of the refund if the voucher was a result of a refund
    - `customerId` string — The ID of the customer if the voucher was created for a specific customer
    - `origin` 'default' | 'shop' | 'import' | 'upgrade' | 'refund' — The origin of the voucher
    - `createdAt` string, date-time, required — An ISO Timestamp indicating when the voucher was created.
    - `updatedAt` string, date-time, required — An ISO Timestamp indicating when the voucher was last updated.
    - `balance` number, float, required — The remaining balance of the voucher in seller's currency
  - `total` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/vivenu/apis/vivenu-api.md) · [All operations](https://skmtc.net/vivenu/apis/vivenu-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vivenu/vivenu-api/revisions/36be0dca14e7/schema)
