curl --request POST \
--url https://api.rivoopay.com/webhook \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"url": "https://myserver.com/webhook",
"name": "Payment Webhook",
"events": [
"order_created",
"order_paid"
]
}
'{
"id": "67b14aa9-daac-800e-83bf-f1b44468d1d9",
"url": "https://example.com/webhook",
"name": "Payment Webhook",
"companyId": "67b14aa9-daac-800e-83bf-f1b44468d1d9",
"status": "ACTIVE",
"events": [
"order_created",
"order_paid"
],
"createdAt": "2024-02-15T12:34:56Z",
"updatedAt": "2024-02-16T12:34:56Z",
"secret": "whsec_a3f7c2e1d9b84f6a..."
}curl --request POST \
--url https://api.rivoopay.com/webhook \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"url": "https://myserver.com/webhook",
"name": "Payment Webhook",
"events": [
"order_created",
"order_paid"
]
}
'{
"id": "67b14aa9-daac-800e-83bf-f1b44468d1d9",
"url": "https://example.com/webhook",
"name": "Payment Webhook",
"companyId": "67b14aa9-daac-800e-83bf-f1b44468d1d9",
"status": "ACTIVE",
"events": [
"order_created",
"order_paid"
],
"createdAt": "2024-02-15T12:34:56Z",
"updatedAt": "2024-02-16T12:34:56Z",
"secret": "whsec_a3f7c2e1d9b84f6a..."
}Webhook URL
"https://myserver.com/webhook"
Webhook name
"Payment Webhook"
List of events to subscribe
charge.pending, charge.processing, charge.paid, charge.received, charge.expired ["order_created", "order_paid"]Webhook created successfully — o campo secret é exibido apenas nesta resposta.
Webhook id
"67b14aa9-daac-800e-83bf-f1b44468d1d9"
Webhook URL
"https://example.com/webhook"
Webhook name
"Payment Webhook"
Company id
"67b14aa9-daac-800e-83bf-f1b44468d1d9"
Webhook status
"ACTIVE"
List of subscribed events
charge.pending, charge.processing, charge.paid, charge.received, charge.expired ["order_created", "order_paid"]Creation date
"2024-02-15T12:34:56Z"
Update date
"2024-02-16T12:34:56Z"
Signing secret — exibido apenas uma vez na criação. Armazene com segurança e use para verificar o header X-Webhook-Signature em cada entrega recebida.
"whsec_a3f7c2e1d9b84f6a..."