cURL
curl --request PUT \ --url https://api.dooki.com.br/v2/{alias}/webhooks/{id} \ --header 'Content-Type: application/json' \ --header 'User-Secret-Key: <api-key>' \ --header 'User-Token: <api-key>' \ --data ' { "url": "https://suaurl.com/api/webhooks", "events": [ "order.created", "cart.reminder" ], "name": "Nome do webhook" } '
{ "id": 123, "active": true, "name": "Webhook de integração com CRM", "url": "https://suaurl.com/api/webhooks", "secret_key": "<string>", "events": { "data": [ { "name": "<string>", "description": "<string>" } ] }, "products": { "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>" } ] }, "disabled_at": { "date": "2000-08-17 10:24:24", "timezone_type": 3, "timezone": "America/Sao_Paulo" }, "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" } }
Atualiza um webhook específico
Alias da loja
ID do webhook
Representa os dados necessários para criar ou atualizar um webhook
URL para onde os eventos serão enviados
"https://suaurl.com/api/webhooks"
Lista de eventos para os quais o webhook será acionado
["order.created", "cart.reminder"]
Nome do webhook
"Nome do webhook"
Webhook atualizado com sucesso
Representa um webhook
"Webhook de integração com CRM"
Show child attributes
Data e hora no formato YYYY-MM-DD H:MM:SS.
"2000-08-17 10:24:24"
Número de representação do timezone.
3
Fuso horário associado.
"America/Sao_Paulo"
Was this page helpful?