Replaced by /availability batch endpoint.
Set availability and status of the variant. Status can be A (available) and N (not available).
PUT
/products/{productId}/variants/{variantId}/availability
curl \
-X PUT https://mpapi.proxy.omnicado.com/v1/products/{productId}/variants/{variantId}/availability?client_id=api_token_value \
-H "Content-Type: application/json" \
-d '{"status":"A","in_stock":23}'
Request example
{
"status": "A",
"in_stock": 23
}
Request examples
{
"status": "A",
"in_stock": 23
}
Response examples (200)
# Headers
X-RateLimit-Limit: 2875, 5750;w=86400;name="partner:my_client_id|domain:other|unit:d", 2875;w=3600;name="partner:my_client_id|domain:other|unit:h", 17250;w=60;name="partner:my_client_id|domain:other|unit:m"
X-RateLimit-Remaining: 2871
X-RateLimit-Reset: 3527
# Payload
{
"result": {
"code": 200,
"status": "OK"
}
}
Response examples (200)
# Headers
X-RateLimit-Limit: 2875, 5750;w=86400;name="partner:my_client_id|domain:other|unit:d", 2875;w=3600;name="partner:my_client_id|domain:other|unit:h", 17250;w=60;name="partner:my_client_id|domain:other|unit:m"
X-RateLimit-Remaining: 2871
X-RateLimit-Reset: 3527
# Payload
{
"result": {
"code": 200,
"status": "OK"
}
}