payware_products_get_placement_image
Generates a printable QR code or Code 128 barcode image for a product placement, returning PNG, JPG, or SVG output for print.
Instructions
[Merchant] A placement's QR code (carrying the placement's payware link, https://go.payware.eu/{placementId}, which needs no API call) or Code 128 barcode (carrying the plain ID), for print. PNG and JPG come back as an image, SVG as its markup.
Endpoint: GET /products/{productId}/placements/{placementId}/image
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>",
"placementId": "<placementId>"
},
"name": "payware_products_get_placement_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | QR code or barcode. Default QR | QR |
| format | No | Image format. Default PNG | PNG |
| productId | Yes | The product's ID: pr + 8 letters or digits, e.g. pr7e4rCToG | |
| useSandbox | No | Use the sandbox (the default) rather than production | |
| placementId | Yes | The placement's ID: pl + 8 letters or digits, e.g. pl7e4rCToG |