Skip to main content
PATCH
https://api.centralcart.com.br
/
v1
/
app
/
webhooks
/
{id}
Atualizar Webhook
curl --request PATCH \
  --url https://api.centralcart.com.br/v1/app/webhooks/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "url": "<string>",
  "scopes": [
    "<string>"
  ]
}
'
{
  "id": 1,
  "store_id": 1,
  "name": "Webhook Atualizado",
  "url": "https://meusite.com/webhook-v2",
  "scopes": ["ORDER_APPROVED", "ORDER_REJECTED", "ORDER_REFUNDED"],
  "secret": "a1b2c3d4e5f6...",
  "created_at": "2026-02-20T10:00:00.000-03:00",
  "updated_at": "2026-02-20T12:00:00.000-03:00"
}
id
number
required
ID do webhook
name
string
Nome do webhook (máximo 100 caracteres)
url
string
URL de destino (deve ser HTTPS)
scopes
string[]
Lista de eventos que ativam o webhook

Response

Retorna o webhook atualizado.
{
  "id": 1,
  "store_id": 1,
  "name": "Webhook Atualizado",
  "url": "https://meusite.com/webhook-v2",
  "scopes": ["ORDER_APPROVED", "ORDER_REJECTED", "ORDER_REFUNDED"],
  "secret": "a1b2c3d4e5f6...",
  "created_at": "2026-02-20T10:00:00.000-03:00",
  "updated_at": "2026-02-20T12:00:00.000-03:00"
}