Update products in catalog
Allows batch updates of products in the catalog, including SKU, price, quantity, and currency information.
Body Required
A list of products to update.
-
Stock Keeping Unit identifier for the product.
Minimum length is
1
. -
price number
The price of the product in specified currency.
Minimum value is
0
, maximum value is1000000.0
. -
quantity integer
The quantity available in stock.
Minimum value is
0
, maximum value is1000000.0
. -
currency string
Currency in ISO 4217 format.
Minimum length is
3
, maximum length is3
.
POST /catalog/product/
curl \
-X POST https://m2e.cloud/api/v1/api/catalog/product/ \
-H "Content-Type: application/json" \
-d '[{"sku":"test-product-SKU","price":99.99,"quantity":17,"currency":"USD"}]'
Request examples
[
{
"sku": "test-product-SKU",
"price": 99.99,
"quantity": 17,
"currency": "USD"
}
]
Response examples (200)
# Headers
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 90
X-RateLimit-Retry-After: 2022-11-04T13:43:28Z
# Payload
{
"updated": 10
}
Response examples (400)
# Headers
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 90
X-RateLimit-Retry-After: 2022-11-04T13:43:28Z
# Payload
[
{
"code": 404,
"message": "Not found.",
"data": {}
}
]
Response examples (404)
[
{
"code": 404,
"message": "Not found.",
"data": {}
}
]
Response examples (401)
[
{
"code": 404,
"message": "Not found.",
"data": {}
}
]
Response examples (429)
# Headers
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 90
X-RateLimit-Retry-After: 2022-11-04T13:43:28Z
# Payload
[
{
"code": 404,
"message": "Not found.",
"data": {}
}
]
Response examples (500)
[
{
"code": 404,
"message": "Not found.",
"data": {}
}
]