---
title: "GET /api/vouchers/{id}/{code}/info"
method: GET
path: "/api/vouchers/{id}/{code}/info"
tags: ["api", "vouchers"]
---

# GET /api/vouchers/{id}/{code}/info

`GET /api/vouchers/{id}/{code}/info`

Get Voucher by id and code

## Path parameters

- `id` string, required
- `code` string, required

## Response `200`

OK

- GETVouchersGetVoucherByIdAndCode200Response
  - `voucher` VoucherResource
    - `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.
  - `displaySettings` object
    - `disclaimer` string — The disclaimer of the voucher
    - `pdfImage` string — The image of the voucher
  - `seller` object
    - `city` string
    - `street` string
    - `postal` string
    - `taxRate` number, float
    - `taxNo` string
    - `currency` string
    - `image` string — The logo of the seller
    - `name` string, required — The name of the seller
    - `locationName` string
    - `brandingSettings` object
      - `customBrandingEnabled` boolean
      - `shopLogoUrl` string
      - `eventLogo` string
      - `mailLogo` string
      - `customLogo` string
      - `walletLogo` string
      - `googleWalletLogo` string
      - `walletBackgroundColor` string
      - `walletForegroundColor` string
      - `walletLabelColor` string
      - `ticketRibbonImage` string
    - `documentSettings` object
      - `image` string
      - `invoice` object
        - `footerColumns` object[]
          - `text` string
          - `active` boolean
  - `timezone` string
  - `useDocumentTemplate` boolean

## Other responses

- `404` — Not Found

---

[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)
