Erro ao atualizar uma nova warehouse

Olá a todos, estou com problema para atualizar o estoque em uma warehouse nova, ao fazer um PUT no endpoint /api/logistics/pvt/inventory/skus/15180/warehouses/1_2 o retorno que tenho é esse:
Erro no serviço: http://mcamicado001.vtexcommercestable.com.br/api/logistics/pvt/inventory/skus/15180/warehouses/1_2
Resultado (400): {“error”:{“code”:“InvalidData”,“message”:“Warehouse 1_2 does not exist!”,“exception”:{“ClassName”:“VTEX.Practices.Net.Http.VtexHttpRequestException”,“Message”:“Warehouse 1_2 does not exist!”,“Data”:null,“InnerException”:null,“HelpURL”:null,“StackTraceString”:" at VTEX.Commerce.Logistics.Service.WarehouseItemServices.d__10.MoveNext() in F:\pachamama\BuildAgent\work\3d353e624ca31c80\src\VTEX.Commerce.Logistics.Service\Inventory\WarehouseItemServices.cs:line 373\r\n— End of stack trace from previous location where exception was thrown —\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at VTEX.Commerce.Logistics.WebApi.WarehouseItemController.d__17.MoveNext() in F:\pachamama\BuildAgent\work\3d353e624ca31c80\src\VTEX.Commerce.Logistics.WebApi\Controllers\Inventory\WarehouseItemController.cs:line 506\r\n— End of stack trace from previous location where exception was thrown —\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Threading.Tasks.TaskHelpersExtensions.d__3`1.MoveNext()\r\n— End of stack trace from previous location where exception was thrown —\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext()\r\n— End of stack trace from previous location where exception was thrown —\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext()\r\n— End of stack trace from previous location where exception was thrown —\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at VTEX.Commerce.Logistics.WebApi.AccessControlFilter.d__7.MoveNext() in F:\pachamama\BuildAgent\work\3d353e624ca31c80\src\VTEX.Commerce.Logistics.WebApi\AccessControlFilter.cs:line 142\r\n— End of stack trace from previous location where exception was thrown —\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext()\r\n— End of stack trace from previous location where exception was thrown —\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ExceptionFilterResult.d__0.MoveNext()",“RemoteStackTraceString”:null,“RemoteStackIndex”:0,“ExceptionMethod”:“8\nMoveNext\nVtex.Commerce.Logistics.Service, Version=6.17.2.3799, Culture=neutral, PublicKeyToken=null\nVtex.Commerce.Logistics.Service.WarehouseItemServices+d__10\nVoid MoveNext()”,“HResult”:-2146233088,“Source”:“VTEX.Commerce.Logistics.Service”,“WatsonBuckets”:null}}}
Info: {“url”:“http://mcamicado001.vtexcommercestable.com.br/api/logistics/pvt/inventory/skus/15180/warehouses/1_2",“content_type”:"application/json; charset=utf-8”,“http_code”:400,“header_size”:472,“request_size”:475,“filetime”:-1,“ssl_verify_result”:0,“redirect_count”:0,“total_time”:0.27806,“namelookup_time”:0.012349,“connect_time”:0.128819,“pretransfer_time”:0.128856,“size_upload”:78,“size_download”:3636,“speed_download”:13076,“speed_upload”:280,“download_content_length”:3636,“upload_content_length”:78,“starttransfer_time”:0.278031,“redirect_time”:0,“redirect_url”:"",“primary_ip”:“34.235.193.203”,“certinfo”:[],“primary_port”:80,“local_ip”:“10.0.0.19”,“local_port”:52840}

será que estou fazendo algo errado ou é um erro temporário da VTEX?

Estou passando esse conteudo no body: {“unlimitedQuantity”:false,“dateUtcOnBalanceSystem”:null,“quantity”:“61.0000”}

detalhe: na warehouse 1_1 vai normalmente

Olá!

O estoque 1_2 existe?

Consegue visualizar a página da configuração do estoque?
https://.myvtex.com/admin/shipping-strategy/warehouse/?id=1_1
https://.myvtex.com/admin/shipping-strategy/warehouse/?id=1_2

Troque pela conta que estão usando que é a m****do001.

pelo endpoint /api/logistics/pvt/configuration/warehouses/1_2 eu consigo obter os dados do estoque e pela url que informou consigo visualizar a configuração de estoque sim, só na hora de fazer a atualização que não : (

Tenta mandar o JSON abaixo:
{
“unlimitedQuantity”: false,
“dateUtcOnBalanceSystem”:null,
“quantity”:61
}

Descobri o problema analisando a requisição, o cliente possui mais de uma instalação por isso o estoque 1_1 sempre daria certo, para acertar o estoque 1_2 a url deveria ser a central e não de outra loja, só fui perceber analisando a plataforma da instalação

1 Like

Boa! Bom saber disso.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.