Skip to main content
PATCH
/
products
/
bulk
Bulk update products
curl --request PATCH \
  --url https://api.example.com/products/bulk \
  --header 'Content-Type: application/json' \
  --data '
{
  "ids": [
    "<string>"
  ],
  "data": {
    "commercialName": "Wireless Mouse",
    "fiscalName": "Mouse Sem Fio Wireless USB",
    "suggestedPrice": 149.9,
    "marginPercentage": 30.5,
    "volumesCount": 1,
    "supplierId": "<string>",
    "groupId": "<string>",
    "defaultWarehouseId": "<string>",
    "externalSku": "<string>",
    "supplierProductName": "<string>",
    "sku": "MOUSE-001",
    "type": "SIMPLE",
    "status": "ACTIVE",
    "isVariationTemplate": false,
    "price": 99.9,
    "category": "Electronics",
    "ean": "7890000000000",
    "ncm": "85072000",
    "cfop": "5102",
    "cst": "102",
    "fiscal": {
      "ncm": "<string>",
      "cest": "<string>",
      "origin": "<string>",
      "cfopEntry": "<string>",
      "cfopExit": "<string>",
      "cstIcms": "<string>",
      "cstIpi": "<string>",
      "cstPis": "<string>",
      "cstCofins": "<string>",
      "pIcms": 123,
      "pIpi": 123,
      "pPis": 123,
      "pCofins": 123,
      "cClassTrib": "<string>",
      "cstIbsCbs": "<string>",
      "pIbsUf": 123,
      "pIbsMun": 123,
      "pCbs": 123,
      "isSubjectToSelectiveTax": false,
      "taxRuleNotes": "<string>"
    },
    "components": [
      {
        "componentId": "uuid-v4",
        "quantity": 1,
        "lossPercentage": 0,
        "isMainItem": false,
        "displayInDescription": true,
        "affectsPrice": true
      }
    ],
    "weight": 123,
    "height": 123,
    "width": 123,
    "length": 123,
    "costAvg": 123,
    "costManual": 123,
    "parentProductId": "<string>",
    "variationAttributes": {},
    "variations": [
      {
        "commercialName": "Wireless Mouse",
        "fiscalName": "Mouse Sem Fio Wireless USB",
        "volumesCount": 1,
        "sku": "MOUSE-001",
        "type": "SIMPLE",
        "status": "ACTIVE",
        "isVariationTemplate": false,
        "price": 99.9,
        "suggestedPrice": 149.9,
        "marginPercentage": 30.5,
        "supplierId": "<string>",
        "groupId": "<string>",
        "defaultWarehouseId": "<string>",
        "externalSku": "<string>",
        "supplierProductName": "<string>",
        "category": "Electronics",
        "ean": "7890000000000",
        "ncm": "85072000",
        "cfop": "5102",
        "cst": "102",
        "fiscal": {
          "ncm": "<string>",
          "cest": "<string>",
          "origin": "<string>",
          "cfopEntry": "<string>",
          "cfopExit": "<string>",
          "cstIcms": "<string>",
          "cstIpi": "<string>",
          "cstPis": "<string>",
          "cstCofins": "<string>",
          "pIcms": 123,
          "pIpi": 123,
          "pPis": 123,
          "pCofins": 123,
          "cClassTrib": "<string>",
          "cstIbsCbs": "<string>",
          "pIbsUf": 123,
          "pIbsMun": 123,
          "pCbs": 123,
          "isSubjectToSelectiveTax": false,
          "taxRuleNotes": "<string>"
        },
        "components": [
          {
            "componentId": "uuid-v4",
            "quantity": 1,
            "lossPercentage": 0,
            "isMainItem": false,
            "displayInDescription": true,
            "affectsPrice": true
          }
        ],
        "weight": 123,
        "height": 123,
        "width": 123,
        "length": 123,
        "costAvg": 123,
        "costManual": 123,
        "parentProductId": "<string>",
        "variationAttributes": {},
        "variations": "<array>",
        "id": "<string>",
        "_deleted": false
      }
    ]
  }
}
'

Parâmetros da Requisição (Body)

ids
array
Listar of produto IDs to Atualizar
data
object
Data to Atualizar for all selected produtos

Body

application/json
ids
string[]
required

List of Product IDs to update

data
object
required

Data to update for all selected products

Response

Products updated successfully.