curl --request POST \
--url https://api.dooki.com.br/v2/{alias}/catalog/products/{id}/stocks/sync \
--header 'Content-Type: application/json' \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>' \
--data '{
"data": [
{
"id": 123,
"sku": "<string>",
"availability": 123,
"availability_soldout": 123,
"name": "<string>",
"grids": [
{
"name": "<string>",
"id": 123,
"value": "<string>",
"value_id": 123
}
],
"photo": "<string>",
"quantity_managed": true,
"total_in_stock": 123,
"total_delivery_time": 123,
"blocked_sale": true,
"stocks": [
{
"stock": {
"id": 123,
"name": "<string>",
"warehouse_name": "<string>",
"warehouse_id": 123,
"delivery_days": 123,
"priority": true
},
"sku_stock_id": 123,
"quantity": 123,
"min_quantity": 123,
"total_reserved": 123,
"orders_reservations": [
{}
]
}
]
}
]
}'
{
"message": "Estoques sincronizados com sucesso"
}
Permite a sincronização de estoques de um produto específico
curl --request POST \
--url https://api.dooki.com.br/v2/{alias}/catalog/products/{id}/stocks/sync \
--header 'Content-Type: application/json' \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>' \
--data '{
"data": [
{
"id": 123,
"sku": "<string>",
"availability": 123,
"availability_soldout": 123,
"name": "<string>",
"grids": [
{
"name": "<string>",
"id": 123,
"value": "<string>",
"value_id": 123
}
],
"photo": "<string>",
"quantity_managed": true,
"total_in_stock": 123,
"total_delivery_time": 123,
"blocked_sale": true,
"stocks": [
{
"stock": {
"id": 123,
"name": "<string>",
"warehouse_name": "<string>",
"warehouse_id": 123,
"delivery_days": 123,
"priority": true
},
"sku_stock_id": 123,
"quantity": 123,
"min_quantity": 123,
"total_reserved": 123,
"orders_reservations": [
{}
]
}
]
}
]
}'
{
"message": "Estoques sincronizados com sucesso"
}
Estoques sincronizados com sucesso
The response is of type object
.
Was this page helpful?