V2 Alpha — This endpoint is part of the V2 API preview. Breaking changes may occur.
Overview
Retrieve a paginated list of products belonging to the authenticated vendor. Results include product title, handle, status, variants, and images. Only products assigned to the vendor are returned.
Vendor Token Required — This endpoint requires a vendor-scoped JWT token. Merchant tokens will receive a 403 error.
Use Cases
- Product catalogue — Display a vendor’s product listings in a custom portal
- Inventory management — Pull product data for stock-level monitoring
- Product sync — Export vendor products to external systems
Query Parameters
Filter by product status. One of: active, draft, archived.
Filter by creation date (minimum, ISO 8601). Example: 2024-01-01T00:00:00Z.
Filter by creation date (maximum, ISO 8601).
Search in product title or handle (max 200 characters).
Number of items to return, forward pagination (1-100).
Cursor for forward pagination.
Number of items to return, backward pagination (1-100).
Cursor for backward pagination.
Response
{
"success": true,
"data": {
"products": [
{
"_id": "507f1f77bcf86cd799439030",
"title": "Widget Pro",
"handle": "widget-pro",
"status": "active",
"productId": 7654321098765,
"variants": [
{
"variantId": 43210987654321,
"title": "Small",
"price": "19.99",
"sku": "WP-SM",
"inventoryQuantity": 50
},
{
"variantId": 43210987654322,
"title": "Medium",
"price": "24.99",
"sku": "WP-MD",
"inventoryQuantity": 30
}
],
"images": [
{
"src": "https://cdn.shopify.com/s/files/1/example/widget-pro.jpg",
"alt": "Widget Pro main image"
}
],
"createdAt": "2024-06-10T08:00:00.000Z"
}
],
"totalCount": 42,
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": false,
"startCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAzMCJ9",
"endCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTA0MCJ9"
}
}
}
Example
curl -X GET "https://api.puppetvendors.com/v2/vendor/products?status=active&first=20" \
-H "x-access-token: YOUR_VENDOR_JWT_TOKEN"