Change products stock status in console
- Print
Change products stock status in console
- Print
Article summary
Did you find this summary helpful?
Thank you for your feedback!
Put
/v2/{accessKey}/console/{campaignKey}/product/stockStatus
Header parameters
Authorization
stringRequired
Authorization: Bearer
Path parameters
accessKey
stringRequired
Customer access key
campaignKey
stringRequired
Campaign key
Query parameters
stockStatus
string
compulsory
Valid values[ "IN_STOCK", "LOW_IN_STOCK", "SOLD_OUT" ]
Default"SOLD_OUT"
Body parameters
example
Example of Body
[
{
"productId": 12345
},
{
"productId": 23456
}
]
object
type
items
object
productId
integer (int64)
Automatically generated unique product ID
customerProductId
string
Customer's product ID and must be unique(defined by the customer).
Responses
200
200
Result
"{\n \"results\": [\n {\n \"productId\": \"30092\",\n \"message\": null,\n \"status\": \"UPDATE\"\n },\n {\n \"productId\": \"30093\",\n \"message\": null,\n \"status\": \"UPDATE\"\n }\n ],\n \"successCount\": 2,\n \"failCount\": 0,\n \"totalCount\": 2\n}"
object
results
Array of object
object
productId
string
Example30092
message
status
string
ExampleUPDATE
successCount
integer
Default0
Example2
failCount
integer
Default0
Example0
totalCount
integer
Default0
Example2
4XX
4XX
Result
"{\n \"_s\": -000,\n \"_e\": \"Error message\"\n}"