API Reference

Upsert Batch 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:

FieldTypeDescription
priceFloatProduct current price
oldPriceFloatProduct old price
sellerCodeStringSeller ID or CNPJ
productCodeStringProduct code

📘

Result

A 204- No Content result means that the product was successfully insert.

Language
Credentials
Basic
base64
:
URL