Upsert Stock Batch

Updates a list of product sku stock.
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 stock by query.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

❗️

Take notice!

This request updates all values already set. Pay attention and don't have anything lost!

Request body example

[
    {
        "Quantity" : 100,
        "SellerCode" : "1", // seller code
        "SkuCode" : "1780.23.0"
    },
    {
        "Quantity" : 100,
        "SellerCode" : "63845114000152", // cnpj
        "SkuCode" : "1780.23.0"
    }
]

Fields Description

FieldTypeDescription
"Quantity"IntThe product sku quantity on stock.
"SellerCode"StringThe seller's company code.
"SkuCode"StringThe sku code.

📘

Result

A 204- No Content result means that the stock was successfully updated.

Path Params
string
enum
required

Use "api" for production environment or "hlg-api" for homolog

Allowed:
Query Params
string
enum
required
Defaults to Cnpj

The seller's property to match new updates. Is a reference to the column defined as "SellerCode" in body params.

Allowed:
string
enum
Defaults to Code

The sku's property to match new updates. Is a reference to the column defined as "SkuCode" in body params.

Allowed:
Body Params
RAW_BODY
array of objects
required

An array with the stocks body to be updated.

RAW_BODY*
Responses

Language
Credentials
OAuth2
URL
LoadingLoading…
Response
Choose an example:
application/json