post https://{accountName}.{environment}.com.br/api/logistics/pvt/configuration/warehouses
Creates or updates your store's warehouses
Request body example
curl --location --request POST 'https://{accountName}.{environment}.com.br/api/logistics/pvt/configuration/warehouses' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'Accept: application/json' \
--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \
--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \
--data-raw '{
"id": "15bfc76",
"name": "Estoque Principal",
"warehouseDocks": [
{
"dockId": "1a8bce3",
"name": "Centro de Distribuição Principal",
"time": "3.00:00:00",
"cost": "5.00",
"translateDays": "dias",
"costToDisplay": "5,00"
}
]
}'