Referência da API
- Introdução
- Autenticação
- Catálogo
- Checkout
- Configurações
- Conteúdo
- Clientes
- Leads
- Logística
- API de Frete
- Embalagens
- Preços de frete
- Transportadoras
- Países
- Calcular frete
- Reservas de estoque
- Estoques
- Armazéns
- CEP
- Marketing
- Pedidos
- Sistema
- Promoções
- Filas
- Usuários
- Webhooks
- Loja Virtual
Estoques
Atualizar estoque
Atualiza os dados de um determinado estoque
PUT
/
{alias}
/
logistics
/
stocks
/
{id}
curl --request PUT \
--url https://api.dooki.com.br/v2/{alias}/logistics/stocks/{id} \
--header 'Content-Type: application/json' \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>' \
--data '{
"name": "<string>",
"delivery_days": 123,
"warehouse_id": 123
}'
{
"id": 123,
"warehouse_id": 123,
"priority": true,
"auto_refill": true,
"name": "<string>",
"delivery_days": 123,
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"warehouse": {
"data": {
"id": 123,
"country_code": "<string>",
"name": "<string>",
"zipcode": "<string>",
"street": "<string>",
"number": "<string>",
"complement": "<string>",
"neighborhood": "<string>",
"city": "<string>",
"state": "<string>",
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
}
}
}
}
Body
application/json
Representa os dados necessários para criar ou atualizar um estoque
Response
200
application/json
Estoque atualizado com sucesso
Was this page helpful?
curl --request PUT \
--url https://api.dooki.com.br/v2/{alias}/logistics/stocks/{id} \
--header 'Content-Type: application/json' \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>' \
--data '{
"name": "<string>",
"delivery_days": 123,
"warehouse_id": 123
}'
{
"id": 123,
"warehouse_id": 123,
"priority": true,
"auto_refill": true,
"name": "<string>",
"delivery_days": 123,
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"warehouse": {
"data": {
"id": 123,
"country_code": "<string>",
"name": "<string>",
"zipcode": "<string>",
"street": "<string>",
"number": "<string>",
"complement": "<string>",
"neighborhood": "<string>",
"city": "<string>",
"state": "<string>",
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
}
}
}
}