Updating Products
curl -v --user :WI0j2oN7TgG42tlblX3yzOQ5xvCYc2oYj9eWg79lghVq8R0nKQXlVE9wvihBUFOw -H "Content-Type: application/json" -X POST https://api.nosto.com/v1/products/upsert -d '
[
{
"url":"http://shop.example.com/product/123",
"product_id":"123",
"name":"Example product 123",
"image_url":"http://cdn.example.com/product_123.jpg",
"price_currency_code":"EUR",
"availability":"InStock",
"rating_value":"3.8",
"review_count":"15",
"categories":[
"sale",
"sale/summer",
"sale/summer/shirts",
"sale/summer/shirts/long-sleeve-shirts"
],
"categoryIds":[
"1234",
"1235"
],
"parentCategoryIds":[
"1236",
"1237"
],
"description":"Example description",
"price":10.00,
"list_price":12.34,
"brand":"Example Brand",
"tag1":[
"red",
"green"
],
"tag2":[
"women"
"promo:mens"
],
"tag3":[
"Foldable"
],
"date_published":"2013-04-23",
"variation_id":"EUR_1",
"alternate_image_urls": [
"http://cdn.example.com/product_123-1.jpg",
"http://cdn.example.com/product_123-2.jpg",
"http://cdn.example.com/product_123-3.jpg",
],
"variations":{
"USD_2":{
"price_currency_code":"USD",
"availability":"InStock",
"price":12.00,
"list_price":15.67
},
"GBP_3":{
"price_currency_code":"GBP",
"availability":"OutOfStock",
"price":20.00,
"list_price":21.99
}
},
"inventory_level":25,
"supplier_cost":1312.96,
"custom_fields":{
"material":"Cotton",
"weather":"Summer"
},
"skus":[
{
"id":"123-2",
"name":"S-Blue",
"price":1269.0,
"list_price":1299.0,
"url":"http://www.example.com/product/CANOE123#/1-size-s/14-color-blue",
"image_url":"http://www.example.com/product/images/CANOE123-1.jpg",
"availability":"InStock",
"inventory_level":35,
"custom_fields":{
"size":"S",
"color":"Blue"
}
},
{
"id":"123-1",
"name":"S-Orange",
"price":1269.0,
"list_price":1299.0,
"url":"http://www.example.com/product/CANOE123#/1-size-s/13-color-orange",
"image_url":"http://www.example.com/product/images/CANOE123-1.jpg",
"availability":"InStock",
"inventory_level":42,
"custom_fields":{
"size":"S",
"color":"Orange"
}
}
]
}
]'Sending the categories
How can I get an API token?
How many items can I update at a time?
How often can I update products?
When should I make an API call?
Is there any additional benefit of using the product API?
What fields are required?
Last updated
Was this helpful?