curl --request PUT \
--url https://api.dooki.com.br/v2/{alias}/catalog/bundles/{id} \
--header 'Content-Type: application/json' \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>' \
--data '{
"name": "<string>",
"image_url": "<string>",
"active": true,
"modifiable": true,
"custom_shipping": true,
"shipping_type": "fixed",
"shipping_price": 123,
"shipping_days": 123,
"items": [
{
"sku_id": 123,
"price_type": "sku",
"price": 123,
"discount": 123,
"quantity": 123
}
]
}'
{
"id": 123,
"active": true,
"modifiable": true,
"name": "<string>",
"purchase_url": "<string>",
"custom_shipping": true,
"shipping_type": "<string>",
"shipping_price": 123,
"shipping_days": 123,
"image_url": "<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"
},
"items": {
"data": [
{
"id": 123,
"bundle_id": 123,
"sku_id": 123,
"price_type": "<string>",
"price": 123,
"discount": 123,
"quantity": 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"
}
}
]
}
}
Atualizar um Kit
curl --request PUT \
--url https://api.dooki.com.br/v2/{alias}/catalog/bundles/{id} \
--header 'Content-Type: application/json' \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>' \
--data '{
"name": "<string>",
"image_url": "<string>",
"active": true,
"modifiable": true,
"custom_shipping": true,
"shipping_type": "fixed",
"shipping_price": 123,
"shipping_days": 123,
"items": [
{
"sku_id": 123,
"price_type": "sku",
"price": 123,
"discount": 123,
"quantity": 123
}
]
}'
{
"id": 123,
"active": true,
"modifiable": true,
"name": "<string>",
"purchase_url": "<string>",
"custom_shipping": true,
"shipping_type": "<string>",
"shipping_price": 123,
"shipping_days": 123,
"image_url": "<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"
},
"items": {
"data": [
{
"id": 123,
"bundle_id": 123,
"sku_id": 123,
"price_type": "<string>",
"price": 123,
"discount": 123,
"quantity": 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"
}
}
]
}
}
Lista de Kits
Was this page helpful?