Skip to main content
POST
https://api.centralcart.com.br
/
v1
/
app
/
webhooks
Criar Webhook
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"
}
name
string
required
Nome do webhook (máximo 100 caracteres)
url
string
required
URL de destino (deve ser HTTPS)
scopes
string[]
required
Lista de eventos que ativam o webhook. Valores possíveis: ORDER_CREATED, ORDER_APPROVED, ORDER_REJECTED, ORDER_ABANDONED, ORDER_REFUNDED, ORDER_CHARGEDBACK

Response

id
number
ID do webhook criado
name
string
Nome do webhook
url
string
URL de destino
scopes
string[]
Eventos configurados
secret
string
Secret HMAC gerado automaticamente. Guarde este valor com segurança.
{
  "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"
}