cURL
curl --request POST \ --url https://api.dooki.com.br/v2/{alias}/catalog/categories/{id}/copy-products \ --header 'Content-Type: application/json' \ --header 'User-Secret-Key: <api-key>' \ --header 'User-Token: <api-key>' \ --data '{ "categories_ids": [ 123 ] }'
{ "data": [ { "id": 123, "merchant_id": 123, "seller_id": 123, "affiliation_id": 123, "erp_id": 123, "relevance": 123, "active": true, "gift_value": "<string>", "searchable": true, "simple": true, "ncm": "<string>", "has_variations": true, "is_digital": true, "warranty": 123, "custom_shipping": true, "shipping_price": "<string>", "name": "<string>", "slug": "<string>", "sku": "<string>", "rating": 123, "priority": 123, "url": "<string>", "redirect_url_card": "<string>", "redirect_url_billet": "<string>", "preview_url": "<string>" } ], "meta": { "pagination": { "total": "10", "count": "30", "per_page": "10", "current_page": "1", "total_pages": "3", "links": { "previous": "", "next": "" } } } }
Esse recurso é útil quando você precisa transferir produtos de outras categorias
Alias da loja
ID da categoria de destino
IDs das categorias de origem, no formato: [1,2,3,4]
Produtos associados com sucesso
Representa uma paginação com meta
Show child attributes
Was this page helpful?