Used to publish a batch of operations to insert, update and deletes products.
The batch is processed asynchronously.The response provides an operationToken which can be used to track the status of the report of the operation.
POST {{baseUrl}}/preview/retail-media/catalog/products/batch
Used to publish a batch of operations to insert, update and deletes products. The batch is processed asynchronously.The response provides an operationToken which can be used to track the status of the report of the operation.
Request Body
{"entries"=>[{"merchantId"=>"<integer>", "method"=>"delete", "batchId"=>"<long>", "productId"=>"<string>", "itemGroupId"=>"<string>", "product"=>{"channel"=>"online", "id"=>"<string>", "imageLink"=>"<string>", "link"=>"<string>", "title"=>"<string>", "offerId"=>"<string>", "description"=>"<string>", "additionalImageLinks"=>["<string>", "<string>"], "contentLanguage"=>"<string>", "targetCountry"=>"<string>", "expirationDate"=>"<string>", "adult"=>"<boolean>", "kind"=>"<string>", "brand"=>"<string>", "color"=>"<string>", "googleProductCategory"=>"<string>", "gtin"=>"<string>", "itemGroupId"=>"<string>", "material"=>"<string>", "mpn"=>"<string>", "pattern"=>"<string>", "price"=>{"currency"=>"<string>", "value"=>"<string>"}, "salePrice"=>{"currency"=>"<string>", "value"=>"<string>"}, "salePriceEffectiveDate"=>"<string>", "shipping"=>[{"price"=>{"currency"=>"<string>", "value"=>"<string>"}, "country"=>"<string>", "region"=>"<string>", "service"=>"<string>", "locationId"=>"<long>", "locationGroupName"=>"<string>", "postalCode"=>"<string>"}, {"price"=>{"currency"=>"<string>", "value"=>"<string>"}, "country"=>"<string>", "region"=>"<string>", "service"=>"<string>", "locationId"=>"<long>", "locationGroupName"=>"<string>", "postalCode"=>"<string>"}], "shippingWeight"=>{"value"=>"<double>", "unit"=>"<string>"}, "sizes"=>["<string>", "<string>"], "taxes"=>[{"rate"=>"<double>", "country"=>"<string>", "region"=>"<string>", "taxShip"=>"<boolean>", "locationId"=>"<long>", "postalCode"=>"<string>"}, {"rate"=>"<double>", "country"=>"<string>", "region"=>"<string>", "taxShip"=>"<boolean>", "locationId"=>"<long>", "postalCode"=>"<string>"}], "customAttributes"=>[{"name"=>"<string>", "value"=>"<string>"}, {"name"=>"<string>", "value"=>"<string>"}], "identifierExists"=>"<boolean>", "installment"=>{"months"=>"<long>", "amount"=>{"currency"=>"<string>", "value"=>"<string>"}}, "loyaltyPoints"=>{"name"=>"<string>", "pointsValue"=>"<long>", "ratio"=>"<double>"}, "multipack"=>"<long>", "customLabel0"=>"<string>", "customLabel1"=>"<string>", "customLabel2"=>"<string>", "customLabel3"=>"<string>", "customLabel4"=>"<string>", "isBundle"=>"<boolean>", "mobileLink"=>"<string>", "availabilityDate"=>"<string>", "shippingLabel"=>"<string>", "unitPricingMeasure"=>{"value"=>"<double>", "unit"=>"<string>"}, "unitPricingBaseMeasure"=>{"value"=>"<long>", "unit"=>"<string>"}, "shippingLength"=>{"value"=>"<double>", "unit"=>"<string>"}, "shippingWidth"=>{"value"=>"<double>", "unit"=>"<string>"}, "shippingHeight"=>{"value"=>"<double>", "unit"=>"<string>"}, "displayAdsId"=>"<string>", "displayAdsSimilarIds"=>["<string>", "<string>"], "displayAdsTitle"=>"<string>", "displayAdsLink"=>"<string>", "displayAdsValue"=>"<double>", "sellOnGoogleQuantity"=>"<long>", "promotionIds"=>["<string>", "<string>"], "maxHandlingTime"=>"<long>", "minHandlingTime"=>"<long>", "costOfGoodsSold"=>{"currency"=>"<string>", "value"=>"<string>"}, "source"=>"<string>", "includedDestinations"=>["<string>", "<string>"], "excludedDestinations"=>["<string>", "<string>"], "adsGrouping"=>"<string>", "adsLabels"=>["<string>", "<string>"], "adsRedirect"=>"<string>", "productTypes"=>["<string>", "<string>"], "productTypeKeys"=>["<string>", "<string>"], "ageGroup"=>"<string>", "availability"=>"<string>", "condition"=>"<string>", "gender"=>"<string>", "sizeSystem"=>"<string>", "sizeType"=>"<string>", "energyEfficiencyClass"=>"<string>", "minEnergyEfficiencyClass"=>"<string>", "maxEnergyEfficiencyClass"=>"<string>", "taxCategory"=>"<string>", "transitTimeLabel"=>"<string>", "sellerId"=>"<string>", "externalSellerId"=>"<string>", "externalSellerName"=>"<string>", "numberOfReviews"=>"<integer>", "productRating"=>"<string>"}, "feedId"=>"<string>"}, {"merchantId"=>"<integer>", "method"=>"delete", "batchId"=>"<long>", "productId"=>"<string>", "itemGroupId"=>"<string>", "product"=>{"channel"=>"online", "id"=>"<string>", "imageLink"=>"<string>", "link"=>"<string>", "title"=>"<string>", "offerId"=>"<string>", "description"=>"<string>", "additionalImageLinks"=>["<string>", "<string>"], "contentLanguage"=>"<string>", "targetCountry"=>"<string>", "expirationDate"=>"<string>", "adult"=>"<boolean>", "kind"=>"<string>", "brand"=>"<string>", "color"=>"<string>", "googleProductCategory"=>"<string>", "gtin"=>"<string>", "itemGroupId"=>"<string>", "material"=>"<string>", "mpn"=>"<string>", "pattern"=>"<string>", "price"=>{"currency"=>"<string>", "value"=>"<string>"}, "salePrice"=>{"currency"=>"<string>", "value"=>"<string>"}, "salePriceEffectiveDate"=>"<string>", "shipping"=>[{"price"=>{"currency"=>"<string>", "value"=>"<string>"}, "country"=>"<string>", "region"=>"<string>", "service"=>"<string>", "locationId"=>"<long>", "locationGroupName"=>"<string>", "postalCode"=>"<string>"}, {"price"=>{"currency"=>"<string>", "value"=>"<string>"}, "country"=>"<string>", "region"=>"<string>", "service"=>"<string>", "locationId"=>"<long>", "locationGroupName"=>"<string>", "postalCode"=>"<string>"}], "shippingWeight"=>{"value"=>"<double>", "unit"=>"<string>"}, "sizes"=>["<string>", "<string>"], "taxes"=>[{"rate"=>"<double>", "country"=>"<string>", "region"=>"<string>", "taxShip"=>"<boolean>", "locationId"=>"<long>", "postalCode"=>"<string>"}, {"rate"=>"<double>", "country"=>"<string>", "region"=>"<string>", "taxShip"=>"<boolean>", "locationId"=>"<long>", "postalCode"=>"<string>"}], "customAttributes"=>[{"name"=>"<string>", "value"=>"<string>"}, {"name"=>"<string>", "value"=>"<string>"}], "identifierExists"=>"<boolean>", "installment"=>{"months"=>"<long>", "amount"=>{"currency"=>"<string>", "value"=>"<string>"}}, "loyaltyPoints"=>{"name"=>"<string>", "pointsValue"=>"<long>", "ratio"=>"<double>"}, "multipack"=>"<long>", "customLabel0"=>"<string>", "customLabel1"=>"<string>", "customLabel2"=>"<string>", "customLabel3"=>"<string>", "customLabel4"=>"<string>", "isBundle"=>"<boolean>", "mobileLink"=>"<string>", "availabilityDate"=>"<string>", "shippingLabel"=>"<string>", "unitPricingMeasure"=>{"value"=>"<double>", "unit"=>"<string>"}, "unitPricingBaseMeasure"=>{"value"=>"<long>", "unit"=>"<string>"}, "shippingLength"=>{"value"=>"<double>", "unit"=>"<string>"}, "shippingWidth"=>{"value"=>"<double>", "unit"=>"<string>"}, "shippingHeight"=>{"value"=>"<double>", "unit"=>"<string>"}, "displayAdsId"=>"<string>", "displayAdsSimilarIds"=>["<string>", "<string>"], "displayAdsTitle"=>"<string>", "displayAdsLink"=>"<string>", "displayAdsValue"=>"<double>", "sellOnGoogleQuantity"=>"<long>", "promotionIds"=>["<string>", "<string>"], "maxHandlingTime"=>"<long>", "minHandlingTime"=>"<long>", "costOfGoodsSold"=>{"currency"=>"<string>", "value"=>"<string>"}, "source"=>"<string>", "includedDestinations"=>["<string>", "<string>"], "excludedDestinations"=>["<string>", "<string>"], "adsGrouping"=>"<string>", "adsLabels"=>["<string>", "<string>"], "adsRedirect"=>"<string>", "productTypes"=>["<string>", "<string>"], "productTypeKeys"=>["<string>", "<string>"], "ageGroup"=>"<string>", "availability"=>"<string>", "condition"=>"<string>", "gender"=>"<string>", "sizeSystem"=>"<string>", "sizeType"=>"<string>", "energyEfficiencyClass"=>"<string>", "minEnergyEfficiencyClass"=>"<string>", "maxEnergyEfficiencyClass"=>"<string>", "taxCategory"=>"<string>", "transitTimeLabel"=>"<string>", "sellerId"=>"<string>", "externalSellerId"=>"<string>", "externalSellerName"=>"<string>", "numberOfReviews"=>"<integer>", "productRating"=>"<string>"}, "feedId"=>"<string>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |