---
title: "Generate product image (GET)"
method: GET
path: "/api/products/{productId}/image"
tags: ["Products"]
---

# Generate product image (GET)

`GET /api/products/{productId}/image`

## Request

- Base URL: `https://api.payware.eu`
- URL: `https://api.payware.eu/api/products/{productId}/image`
- Auth: HTTP bearer

Generates a QR code or barcode image for the product with specified type and format

## Path parameters

- `productId` string, required

## Query parameters

- `type` 'PLAIN' | 'QR' | 'BARCODE', required
- `format` 'PNG' | 'JPG' | 'SVG', required

## Response `200`

Image generated successfully

## Other responses

- `400`: Invalid parameters
- `401`: Unauthenticated - missing, malformed or expired credentials
- `403`: Forbidden - the caller is authenticated but not permitted (plan or capability gate, KYC state, or tenant scope)
- `404`: Product not found
- `429`: Too many requests - the caller exceeded its per-partner rate limit. Carries errorCode ERR_RATE_LIMIT_EXCEEDED and a Retry-After header, in seconds. The request was not processed, so the identical request is safe to retry once the window has passed.
- `500`: Internal server error

---

[API](https://skmtc.dev/payware/apis/payware-api.md) · [All operations](https://skmtc.dev/payware/apis/payware-api/llms.txt) · [OpenAPI document](https://skmtc.dev/payware/apis/payware-api/revisions/7b3352ca947b?raw)
