Product must be activated to be visible on website for all customers.
Not activated products are visible only for partner (for testing and listing validation purposes).
Product activation is non-reversible action. Once activated product can't be transferred back to draft stage.
PUT
/batches/products/activate/selected
curl \
-X PUT https://mpapi.proxy.omnicado.com/v1/batches/products/activate/selected?client_id=yourClientId&client_id=api_token_value \
-H "Content-Type: application/json" \
-H "X-Application-Name: myApplicationName" \
-d '[{"productId":"A3984"}]'
Request example
# Headers
X-Application-Name: myApplicationName
# Payload
[
{
"productId": "A3984"
}
]
Request examples
# Headers
X-Application-Name: myApplicationName
# Payload
[
{
"productId": "A3984"
}
]
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"
}
}