cURL
curl --request GET \ --url https://api.puppetvendors.com/v2/products/{productId} \ --header 'x-access-token: <api-key>'
Retrieve a single product by ID
{ "success": true, "data": { "_id": "507f1f77bcf86cd799439013", "productId": 7654321098765, "graphqlProductId": "gid://shopify/Product/7654321098765", "title": "Widget Pro", "handle": "widget-pro", "descriptionHtml": "<p>Premium widget with advanced features.</p>", "productType": "Widgets", "vendor": "Acme Supplies", "vendorId": "507f1f77bcf86cd799439011", "status": "active", "tags": ["bestseller", "new-arrival"], "totalInventory": 150, "images": [ { "id": "gid://shopify/ProductImage/123", "src": "https://cdn.shopify.com/...", "altText": "Widget Pro front view" } ], "createdAt": "2024-03-10T08:00:00.000Z", "updatedAt": "2024-06-15T14:30:00.000Z" } }
{ "success": false, "error": { "message": "Product not found", "code": "NOT_FOUND" } }
curl -X GET "https://api.puppetvendors.com/v2/products/507f1f77bcf86cd799439013" \ -H "x-access-token: YOUR_JWT_TOKEN"