payware_products_get_product_image
Generate a product QR code or barcode image for merchant use, with options for format, size, border, error correction, and barcode text placement.
Instructions
[Merchant] Generate a QR code or barcode image for a product.
QR Code Options: Format, border, error correction, scale, version Barcode Options: Format, module width, bar height, font size, text location
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"productId": "<productId>"
},
"name": "payware_products_get_product_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Type of image to generate | QR |
| qrScale | No | QR code module size in pixels, irrelevant for SVG (applies when type=QR) | |
| qrBorder | No | QR code border size in modules (applies when type=QR) | |
| qrFormat | No | QR code image format (applies when type=QR) | SVG |
| barFormat | No | Barcode image format (applies when type=BARCODE) | SVG |
| partnerId | No | Merchant partner ID (uses PAYWARE_PARTNER_ID env var as default) | partner_12345 |
| productId | Yes | Product identifier (starts with 'pr') | |
| qrVersion | No | QR code version, higher versions store more data (applies when type=QR) | |
| privateKey | No | RSA private key for authentication (uses environment-specific private key as default) | |
| useSandbox | No | Use sandbox environment | |
| barFontSize | No | Barcode font size in pixels (applies when type=BARCODE) | |
| barBarHeight | No | Barcode height in pixels (applies when type=BARCODE) | |
| barModuleWidth | No | Barcode module width in pixels (applies when type=BARCODE) | |
| qrErrorCorrection | No | QR code error correction level (applies when type=QR) | QUARTILE |
| barHumanReadableLocation | No | Barcode text position (applies when type=BARCODE) | NONE |