Query parameters
-
The UUID of the merchant to filter products by
-
A search query to filter products by title or SKU
-
Filter products by exact SKU match
-
The page number to retrieve
Minimum value is
1. -
The number of results to return per page
Minimum value is
1, maximum value is100.
GET
/2024-09/products
curl \
--request GET 'https://app.merchanthq.com/api/2024-09/products?merchant_id=1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"links": {
"first": "https://app.merchanthq.com/api/2024-09/merchants?page=1",
"last": "https://app.merchanthq.com/api/2024-09/merchants?page=10",
"prev": "https://app.merchanthq.com/api/2024-09/merchants?page=1",
"next": "https://app.merchanthq.com/api/2024-09/merchants?page=3"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 10,
"path": "https://app.merchanthq.com/api/2024-09/merchants",
"per_page": 10,
"to": 10,
"total": 20
},
"data": [
{
"id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"merchant_id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"sku": "PROD-001",
"title": "Blue Widget",
"identifiers": [
{
"id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"product_id": "string",
"type": "UPC",
"value": "string",
"created_at": "2025-01-10T10:37:11Z",
"updated_at": "2025-01-10T10:37:11Z"
}
],
"main_image_id": "2e8f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d5",
"main_image_url": "https://example.com/images/2e8f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d5.jpg",
"thumbnail_image_id": "3e9f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d6",
"thumbnail_image_url": "https://example.com/images/3e9f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d6.jpg",
"created_at": "2025-01-10T10:37:11Z",
"updated_at": "2025-01-10T10:37:11Z"
}
]
}
Response examples (401)
{
"message": "Unauthorized"
}
Response examples (403)
{
"message": "This action is unauthorized."
}
Response examples (404)
{
"message": "Not found"
}