Testar webhook

posthttps://sandbox-api.rebornpay.io/v1/sellers/{sellerId}/webhooks/{id}/testAuth obrigatória

Envia um evento de teste para a URL do webhook e retorna os detalhes da entrega. O corpo HTTP segue o mesmo formato dos eventos reais, com `test: true` e uma transação de exemplo em `data.transaction` (no mesmo schema de `GET /v1/transactions/{id}`). Valide a assinatura via header `X-Reborn-Signature`.

Headers

X-Api-Keystringrequired

API Key do seller (header)

Path Parameters

sellerIdstringrequired
idstringrequired

Responses

200Evento de teste disparado
idstring · uuidrequired

UUID da entrega

Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

webhookIdstring · uuidrequired

UUID do webhook

Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890

webhookUrlstringrequired

URL que recebeu a notificação

Example: https://seuservidor.com/webhooks/rebornpay

eventTypestringrequired

Tipo do evento entregue

Example: TRANSACTION_PAID

statusstring · enumrequired

Status da entrega

Example: DELIVERED

PENDINGDELIVEREDFAILED
attemptCountinteger · int32required

Número de tentativas realizadas

Example: 1

maxAttemptsinteger · int32required

Máximo de tentativas configurado

Example: 5

nextAttemptAtstring · date-timeoptional

Próxima tentativa agendada (nulo se não há retry)

lastAttemptAtstring · date-timeoptional

Data da última tentativa

lastResponseStatusinteger · int32optional

HTTP status da última resposta do seu servidor

Example: 200

lastResponseBodystringoptional

Body da última resposta (truncado a 1000 caracteres)

Example: {"received":true}

lastErrorstringoptional

Mensagem de erro da última tentativa falha

Example: Connection refused

createdAtstring · date-timerequired

Data de criação da entrega (UTC)

401API Key ausente ou inválida
idstring · uuidrequired

UUID da entrega

Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

webhookIdstring · uuidrequired

UUID do webhook

Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890

webhookUrlstringrequired

URL que recebeu a notificação

Example: https://seuservidor.com/webhooks/rebornpay

eventTypestringrequired

Tipo do evento entregue

Example: TRANSACTION_PAID

statusstring · enumrequired

Status da entrega

Example: DELIVERED

PENDINGDELIVEREDFAILED
attemptCountinteger · int32required

Número de tentativas realizadas

Example: 1

maxAttemptsinteger · int32required

Máximo de tentativas configurado

Example: 5

nextAttemptAtstring · date-timeoptional

Próxima tentativa agendada (nulo se não há retry)

lastAttemptAtstring · date-timeoptional

Data da última tentativa

lastResponseStatusinteger · int32optional

HTTP status da última resposta do seu servidor

Example: 200

lastResponseBodystringoptional

Body da última resposta (truncado a 1000 caracteres)

Example: {"received":true}

lastErrorstringoptional

Mensagem de erro da última tentativa falha

Example: Connection refused

createdAtstring · date-timerequired

Data de criação da entrega (UTC)

403Sem permissão para acessar este seller
idstring · uuidrequired

UUID da entrega

Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

webhookIdstring · uuidrequired

UUID do webhook

Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890

webhookUrlstringrequired

URL que recebeu a notificação

Example: https://seuservidor.com/webhooks/rebornpay

eventTypestringrequired

Tipo do evento entregue

Example: TRANSACTION_PAID

statusstring · enumrequired

Status da entrega

Example: DELIVERED

PENDINGDELIVEREDFAILED
attemptCountinteger · int32required

Número de tentativas realizadas

Example: 1

maxAttemptsinteger · int32required

Máximo de tentativas configurado

Example: 5

nextAttemptAtstring · date-timeoptional

Próxima tentativa agendada (nulo se não há retry)

lastAttemptAtstring · date-timeoptional

Data da última tentativa

lastResponseStatusinteger · int32optional

HTTP status da última resposta do seu servidor

Example: 200

lastResponseBodystringoptional

Body da última resposta (truncado a 1000 caracteres)

Example: {"received":true}

lastErrorstringoptional

Mensagem de erro da última tentativa falha

Example: Connection refused

createdAtstring · date-timerequired

Data de criação da entrega (UTC)

404Webhook não encontrado
idstring · uuidrequired

UUID da entrega

Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

webhookIdstring · uuidrequired

UUID do webhook

Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890

webhookUrlstringrequired

URL que recebeu a notificação

Example: https://seuservidor.com/webhooks/rebornpay

eventTypestringrequired

Tipo do evento entregue

Example: TRANSACTION_PAID

statusstring · enumrequired

Status da entrega

Example: DELIVERED

PENDINGDELIVEREDFAILED
attemptCountinteger · int32required

Número de tentativas realizadas

Example: 1

maxAttemptsinteger · int32required

Máximo de tentativas configurado

Example: 5

nextAttemptAtstring · date-timeoptional

Próxima tentativa agendada (nulo se não há retry)

lastAttemptAtstring · date-timeoptional

Data da última tentativa

lastResponseStatusinteger · int32optional

HTTP status da última resposta do seu servidor

Example: 200

lastResponseBodystringoptional

Body da última resposta (truncado a 1000 caracteres)

Example: {"received":true}

lastErrorstringoptional

Mensagem de erro da última tentativa falha

Example: Connection refused

createdAtstring · date-timerequired

Data de criação da entrega (UTC)

curl -X POST 'https://sandbox-api.rebornpay.io/v1/sellers/{sellerId}/webhooks/{id}/test' \  -H 'X-Api-Key: $API_KEY'
200Response example
{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "webhookId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "webhookUrl": "https://seuservidor.com/webhooks/rebornpay",
  "eventType": "TRANSACTION_PAID",
  "status": "DELIVERED",
  "attemptCount": 1,
  "maxAttempts": 5,
  "nextAttemptAt": "2025-01-15T10:30:00Z",
  "lastAttemptAt": "2025-01-15T10:30:00Z",
  "lastResponseStatus": 200,
  "lastResponseBody": "{\"received\":true}",
  "lastError": "Connection refused",
  "createdAt": "2025-01-15T10:30:00Z"
}