API Reference

Upsert Batch Sku

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

❗️

Take notice!

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

Request body example:

[
  {
    "code": "1234-codigo",
    "auxCode" : "1234-aux",
    "barcode": "000000040433",
    "name": "Unico",
    "minStock": 0,
    "isActive" : true,
    "imageUrl": "https://dev-lori.neomode.com.br/assets/img/logo_s.png",
    "images" : 
    [
      {
        "order" : 1,
        "imageUrl" : "https://dev-lori.neomode.com.br/assets/img/logo_s.png"
      }
    ],
    "Attributes" : 
    [
      {
        "type" : "Text", // Text, Color, Dropdown
        "title" : "Tamanho",
        "value" : "P",
        "label" : "P",
        "order" : 1
      }
    ]
  }
]

Fields description:

FieldTypeDescription
idGuidSku ID
productIdGuidProduct ID
nameStringSku name
hexColorHexadecimalProduct sku color defined
isActiveBooleanIf the collection is active or not
imagesArray ObjectThe images of this sku
clientIdStringThe client ID
codeStringProduct sku code
barcodeStringProduct sku barcode
minStockIntProduct sku minimum stock
imageUrlStringSku image address
attributesArray ObjectThe sku attributtes array
typeStringProduct sku attribute type
titleStringProduct sku attribute title
valueStringProduct sku attribute value
labelStringProduct sku attribute label
orderIntThe order where it appears on catalog

📘

Result

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

Language
Credentials
Basic
base64
:
URL