Retrieve products by criteria
Finds products based on specified criteria.
POST
/catalog/product/find/
curl \
-X POST https://m2e.cloud/api/v1/api/catalog/product/find/ \
-H "Content-Type: application/json" \
-d '{"sort":{"quantity":"desc"},"_result":{"limit":{"count":10,"offset":0}},"filters":{"status":[1],"quantity":{"to":12,"from":10}}}'
Request example
{
"sort": {
"quantity": "desc"
},
"_result": {
"limit": {
"count": 10,
"offset": 0
}
},
"filters": {
"status": [
1
],
"quantity": {
"to": 12,
"from": 10
}
}
}
Response examples (200)
# Headers
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 90
X-RateLimit-Retry-After: 2022-11-04T13:43:28Z
# Payload
{
"list": [
{
"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"
}
]
}
],
"total": 1
}
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."
}
]