POST
/2024-09/products
curl \
--request POST 'https://app.merchanthq.com/api/2024-09/products' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"merchant_id":"1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4","sku":"PROD-001","title":"Blue Widget","main_image_id":"2e8f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d5","thumbnail_image_id":"3e9f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d6"}'
Request examples
{
"merchant_id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"sku": "PROD-001",
"title": "Blue Widget",
"main_image_id": "2e8f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d5",
"thumbnail_image_id": "3e9f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d6"
}
Response examples (201)
{
"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"
}