Retrieve a catalog product by SKU
Fetches details of a product in the catalog.
Query parameters
-
The Stock Keeping Unit (SKU) of the product.
GET
/catalog/product/
curl \
-X GET https://m2e.cloud/api/v1/api/catalog/product/?sku=WBH-12345
Response examples (200)
# Headers
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 90
X-RateLimit-Retry-After: 2022-11-04T13:43:28Z
# Payload
{
"token": "1529970e-7508-489f-8a79-281225ee330e",
"external_id": "0011-0022-11",
"sku": "WBH-12345",
"quantity": 100,
"is_simple": false,
"status": "Active",
"title": "Wireless Bluetooth Headphones",
"images": [
"https://example.com/image1.jpg"
],
"attributes": [
{
"name": "material",
"value": "cotton"
}
],
"update_date": "2020-12-30T15:30:50Z",
"variants": [
{
"token": "1529970e-7508-489f-8a79-281225ee330e",
"sku": "WBH-12345",
"barcode": "012345678905",
"price": 79.99,
"quantity": 100,
"images": [
"https://example.com/variant-image1.jpg"
],
"options": [
{
"name": "Size",
"value": "Medium"
}
],
"attributes": [
{
"name": "material",
"value": "cotton"
}
],
"weight": 0.5,
"weight_unit": "GRAMS",
"height": 10.0,
"depth": 5.0,
"width": 8.0,
"dimension_unit": "CENTILITERS",
"update_date": "2020-12-30T15:30:50Z"
}
]
}
Response examples (400)
[
{
"code": null,
"message": "All array items must match schema"
},
{
"code": null,
"message": "The required properties (currency) are missing"
}
]
Response examples (404)
[
{
"code": 404,
"message": "Entity is not found."
}
]
Response examples (401)
[
{
"code": 401,
"message": "Unauthorized"
}
]
Response examples (429)
[
{
"code": 429,
"message": "Too many requests."
}
]
Response examples (500)
[
{
"code": 500,
"message": "Internal server error."
}
]