Returns detailed information about a specific Digistore24 product.
GET /getProduct
Retrieves complete details of a product including name, pricing, settings, and metadata. Use this to fetch product information for display, validation, or synchronization purposes.
| Parameter | Type | Required | Description |
|---|---|---|---|
product_id |
integer | Yes | Numeric ID of the product to retrieve |
{
"product": {
"id": 39,
"name": "The Weight Loss Cake",
"note": "Premium product",
"tag": "health",
"language": "de",
"product_group_id": 17,
"product_group_name": "My happiness products",
"units_left": "infinite",
"created_at": "2012-06-07 00:45:36",
"modified_at": "2013-09-16 21:45:10"
}
}| Field | Type | Description |
|---|---|---|
product |
object | Product data record with all properties |
product.id |
integer | Product ID |
product.name |
string | Product name |
product.note |
string|null | Optional product note/description |
product.tag |
string|null | Product tag for categorization |
product.language |
string | Language code (e.g., "de", "en") |
product.product_group_id |
integer|null | ID of the product group/folder |
product.product_group_name |
string|null | Name of the product group |
product.units_left |
string | Available units ("infinite" or number) |
product.created_at |
string | Creation timestamp |
product.modified_at |
string | Last modification timestamp |
Invalid or missing API key.
Insufficient access rights.
Product with specified ID does not exist.
use GoSuccess\Digistore24\Api\Digistore24;
use GoSuccess\Digistore24\Api\Client\Configuration;
use GoSuccess\Digistore24\Api\Request\Product\GetProductRequest;
$config = new Configuration('YOUR-API-KEY');
$ds24 = new Digistore24($config);
// Get product details
$request = new GetProductRequest(productId: '39');
try {
$response = $ds24->products->get($request);
echo "Product: {$response->productName}\n";
echo "ID: {$response->productId}\n";
echo "Language: {$response->language}\n";
echo "Units Left: {$response->unitsLeft}\n";
if ($response->productGroupName) {
echo "Group: {$response->productGroupName}\n";
}
if ($response->description) {
echo "Description: {$response->description}\n";
}
} catch (\GoSuccess\Digistore24\Api\Exception\NotFoundException $e) {
echo "Product not found\n";
} catch (\GoSuccess\Digistore24\Api\Exception\ApiException $e) {
echo "Error: {$e->getMessage()}\n";
}- Product ID must be numeric
- Returns complete product data including internal fields
- Use for product validation before creating buy URLs or orders
- Product availability is indicated by
units_leftfield
- List Products - List all products
- Create Buy URL - Create customized order URL for a product