Atendimento

Reenviar entrega

Agenda o reenvio imediato de uma entrega, com o mesmo id de evento e um novo ciclo de tentativas. Serve para recuperar uma entrega FAILED, ou receber de novo uma já entregue. Entrega ainda PENDING não muda. Exige Idempotency-Key.

POST
/webhook-endpoints/{endpointId}/deliveries/{deliveryId}/retry

Agenda o reenvio imediato de uma entrega, com o mesmo id de evento e um novo ciclo de tentativas. Serve para recuperar uma entrega FAILED, ou receber de novo uma já entregue. Entrega ainda PENDING não muda. Exige Idempotency-Key.

Autorização

oauth2
headerAutorizaçãoBearer <token>

Token do Keycloak (client credentials), enviado como Authorization: Bearer.

Parâmetros de caminho

endpointId*string
Formatouuid
deliveryId*string
Formatouuid

Corpo da resposta

Accepted

*/*
  1. response
id?string
Formatouuid
eventId?string

Id do evento, o mesmo do header U2D-Event-Id e do campo id do corpo

Formatouuid
eventType?string
Valor em"PAYMENT_PENDING""PAYMENT_OVERDUE""PAYMENT_CONFIRMED""PAYMENT_RECEIVED""PAYMENT_REFUNDING""PAYMENT_CHARGEBACK""PAYMENT_REFUNDED""PAYMENT_CANCELED""SUBSCRIPTION_PENDING""SUBSCRIPTION_ACTIVE""SUBSCRIPTION_CANCELED""SUBSCRIPTION_EXPIRED"
status?string

PENDING aguarda envio ou nova tentativa; DELIVERED recebeu 2xx; FAILED esgotou as tentativas ou teve o destino recusado; CANCELED teve o endpoint desativado antes da entrega

Valor em"PENDING""DELIVERED""FAILED""CANCELED"
attempts?integer

Tentativas feitas

Formatoint32
lastStatusCode?integer

Status HTTP da última resposta; nulo se não houve resposta

Formatoint32
lastError?string

Motivo da última falha

nextAttemptAt?string

Próxima tentativa; nula fora de PENDING

Formatodate-time
deliveredAt?string
Formatodate-time
createdAt?string
Formatodate-time
curl -X POST 'https://api.u2dpay.com.br/webhook-endpoints/497f6eca-6276-4993-bfeb-53cbbbba6f08/deliveries/497f6eca-6276-4993-bfeb-53cbbbba6f08/retry'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c",  "eventType": "PAYMENT_PENDING",  "status": "PENDING",  "attempts": 0,  "lastStatusCode": 0,  "lastError": "string",  "nextAttemptAt": "2019-08-24T14:15:22Z",  "deliveredAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z"}