List all conversion tools (vouchers, bundles, upsells) for a product.
POST /json/listConversionTools
[
'result' => 'success',
'data' => [
'product_id' => 12345,
'vouchers' => [
[
'voucher_id' => 789,
'code' => 'SUMMER2025',
'discount_type' => 'percentage',
'discount_value' => 20.0,
'is_active' => true
],
// ... more vouchers
],
'upsells' => [
[
'upsell_id' => 456,
'product_name' => 'Premium Upgrade',
'position' => 1,
'is_active' => true
]
],
'bundles' => []
]
]
use GoSuccess\Digistore24\Api\Digistore24;
use GoSuccess\Digistore24\Api\Client\Configuration;
// Initialize API client
$config = new Configuration('YOUR-API-KEY');
$api = new Digistore24($config);
// Get all conversion tools for a product
$response = $api->conversionTool()->listConversionTools(
productId: 12345
);
echo "Vouchers: " . count($response->vouchers) . "\n";
echo "Upsells: " . count($response->upsells) . "\n";
echo "Bundles: " . count($response->bundles) . "\n";