cURL
curl --request POST \ --url https://api.centralcart.com.br/v1/app/webhooks \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "url": "<string>", "scopes": [ "<string>" ] } '
{ "id": 1, "store_id": 1, "name": "Notificações de Pedidos", "url": "https://meusite.com/webhook", "scopes": ["ORDER_APPROVED", "ORDER_REFUNDED"], "secret": "a1b2c3d4e5f6789...", "created_at": "2026-02-20T10:00:00.000-03:00", "updated_at": "2026-02-20T10:00:00.000-03:00" }
Cria um novo webhook. Um secret HMAC-SHA256 será gerado automaticamente.
ORDER_CREATED
ORDER_APPROVED
ORDER_REJECTED
ORDER_ABANDONED
ORDER_REFUNDED
ORDER_CHARGEDBACK