put https://{environment}.neomode.com.br/management/catalog/prices
Inserts a list of prices.
A upsert statement verify if already exists a product with the code set on body request and updates an existing product or creates a new one.
This request is an array, so you can insert more than one product by query.
Take notice!
This request updates all values already set. Pay attention and don't have anything lost!
Body request example:
[
{
"Price" : 12.34,
"OldPrice" : 23.45,
"SellerCode" : "1", // seller code
"ProductCode" : "48484"
},
{
"Price" : 45.67,
"OldPrice" : 56.78,
"SellerCode" : "63845114000152", // cnpj
"ProductCode" : "48484"
}
]
Hey!
When the product isn't with a promotional price, the fields "price" and "oldPrice" should be the same.
If the product is on sale, the fields can be different, but "oldPrice" ALWAYS must be higher than "price".
Fields description:
Field | Type | Description |
---|---|---|
price | Float | Product current price |
oldPrice | Float | Product old price |
sellerCode | String | Seller ID or CNPJ |
productCode | String | Product code |
Result
A 204- No Content result means that the product was successfully insert.