{"section":"known-issues","requestedLocale":"pt","requestedSlug":"o-metodo-do-servico-web-stockkeepingunitinsertupdate-permite-inserir-um-refid-ja-existente","locale":"pt","slug":"o-metodo-do-servico-web-stockkeepingunitinsertupdate-permite-inserir-um-refid-ja-existente","path":"docs/pt/known-issues/Catalog/o-metodo-do-servico-web-stockkeepingunitinsertupdate-permite-inserir-um-refid-ja-existente.md","branch":"main","content":">ℹ️ Este problema conhecido foi traduzido automaticamente do inglês.\n\n## Sumário\n\nAtualmente, não é possível inserir/atualizar um RefId já registrado para outro SKU usando a API REST, o upload de planilhas ou o Catalog Admin; no entanto, usando o WebService, é possível inserir um RefId existente.\n\n## Simulação\n\n- Tente inserir um RefId existente em outro SKU usando o seguinte método:\n\n curl --location --request POST 'http://webservice-merch.vtexcommerce.com.br/Service.svc?wsdl' \\--header 'Content-Type: text/xml' \\--header 'SOAPAction: http://tempuri.org/IService/StockKeepingUnitInsertUpdate' \\--header 'Authorization: Basic ' \\--header 'Cookie: ISSMB=ScreenMedia=0&UserAcceptMobile=False' \\--data-raw '<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tem=\"http://tempuri.org/\" xmlns:a=\"http://schemas.datacontract.org/2004/07/Vtex.Commerce.WebApps.AdminWcfService.Contracts\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\">  <soapenv:Header/>  <soapenv:Body> <tem:StockKeepingUnitInsertUpdate> <tem:stockKeepingUnitVO>  <a:CommercialConditionId>1</a:CommercialConditionId>  <a:CostPrice>1,00</a:CostPrice>  <a:CubicWeight>10</a:CubicWeight>  <a:DateUpdated>2014-12-18T00:00:00</a:DateUpdated>  <a:EstimatedDateArrival>2014-12-18T00:00:00</a:EstimatedDateArrival>  <a:Height>10</a:Height>  <a:Id>4</a:Id>  <a:InternalNote></a:InternalNote>  <a:IsActive>true</a:IsActive>  <a:IsAvaiable>true</a:IsAvaiable>  <a:IsKit>true</a:IsKit>  <a:Length>10</a:Length>  <a:ListPrice>4,00</a:ListPrice>  <a:ManufacturerCode>1</a:ManufacturerCode>  <a:MeasurementUnit>1</a:MeasurementUnit>  <a:ModalId>1</a:ModalId>  <a:ModalType></a:ModalType>  <a:Name>SKU KIT 1</a:Name>  <a:Price>1,00</a:Price>  <a:ProductId>10003</a:ProductId>  <a:ProductName>Produto KIT</a:ProductName>  <a:RealHeight>10</a:RealHeight>  <a:RealLength>10</a:RealLength>  <a:RealWeightKg>10</a:RealWeightKg>  <a:RealWidth>10</a:RealWidth>  <a:RefId>999999</a:RefId>  <a:RewardValue>0</a:RewardValue>  <a:StockKeepingUnitEans>  <a:StockKeepingUnitEanDTO>  <a:Ean>1234567891014</a:Ean> </a:StockKeepingUnitEanDTO> </a:StockKeepingUnitEans>  <a:UnitMultiplier>1</a:UnitMultiplier>  <a:VenderSeparadamente>false</a:VenderSeparadamente>  <a:WeightKg>10</a:PesoKg>  <a:Largura>10</a:Largura> </tem:unidadeDeestoqueVO> </tem:unidadeDeestoqueInserirAtualizar>  </soapenv:Corpo></soapenv:Envelope>'\n\n## Workaround\n\nNão use o mesmo RefId para SKUs diferentes.\n\n\n\n%0A"}