> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spherepay.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Reenviar una Entrega de Evento Fallida

> Redeliver an event to its webhook endpoint by the ID of a prior delivery attempt.

Usa este endpoint para reenviar una entrega a su endpoint de webhook. SpherePay realiza exactamente un intento automático por evento y por endpoint, y nunca reintenta por su cuenta, así que recuperar una entrega que falló mientras tu endpoint estaba caído es una llamada deliberada a este endpoint.

La ruta toma el ID de la **entrega**, no el ID del evento. Encuéntralo en el objeto `delivery` que devuelve [listar eventos](/es/api-reference/events/get) o en el historial completo de [obtener evento](/es/api-reference/events/get-id), o léelo del encabezado `Sphere-Delivery-Id` de la solicitud original.

Un reenvío vuelve a enviar el payload idéntico byte por byte con un `Sphere-Timestamp` y un `Sphere-Signature` nuevos, más los encabezados `Sphere-Delivery-Type: replay` y `Sphere-Replay-Reason: manual`. Tu ruta de código de verificación es la misma para originales y reenvíos. Un reenvío exitoso mueve la entrega a `delivered`; uno fallido la deja en `failed` y registra otro intento. El historial de intentos se conserva en cualquier caso.

<Warning>
  Los reenvíos se entregan al menos una vez por encima de lo que tu endpoint ya recibió, y una entrega que ya tuvo éxito puede reenviarse. Deduplica por el `id` del evento y aplica la [verificación de obsolescencia de `sequence`](/es/concepts/webhooks/event-payloads#the-sequence-field) para que un reenvío siempre sea seguro de recibir.
</Warning>


## OpenAPI

````yaml openapi/spherepay.yaml POST /v2/events/replay/{eventDeliveryId}
openapi: 3.0.0
info:
  contact: {}
  description: The Sphere REST API for payments, transfers, and accounts.
  title: Sphere API
  version: '2'
servers:
  - description: Production
    url: https://api.spherepay.co
security:
  - bearer: []
tags: []
paths:
  /v2/events/replay/{eventDeliveryId}:
    post:
      summary: Replay an Event Delivery V2
      description: >-
        Redeliver an event to its webhook endpoint by the ID of a prior delivery
        attempt.
      operationId: postV2EventsReplayByEventDeliveryId
      parameters:
        - in: path
          name: eventDeliveryId
          required: true
          schema:
            type: string
      responses:
        '201':
          description: >-
            The replay is queued for delivery. No content is returned; poll the
            event to observe the new attempt.
        '400':
          content:
            application/json:
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: address/invalid
                    correlationId: 28c61e885c6e5eaa78c1a2183a9b883c
                    detail: Invalid request parameters
                    status: 400
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          description: Bad Request
        '404':
          content:
            application/json:
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: resource/not-found
                    correlationId: 28c61e885c6e5eaa78c1a2183a9b883c
                    detail: Resource not found
                    status: 404
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          description: Not Found
        '422':
          content:
            application/json:
              examples:
                Validation Error:
                  summary: Validation Error
                  value:
                    code: validation/failed
                    correlationId: 28c61e885c6e5eaa78c1a2183a9b883c
                    detail: Validation failed
                    errors:
                      - detail: Invalid email format
                        pointer: /email
                      - detail: Name is required
                        pointer: /name
                    status: 422
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          description: Unprocessable Entity - Validation Error
components:
  schemas:
    ProblemDetailsDto:
      properties:
        code:
          type: string
        correlationId:
          type: string
        detail:
          type: string
        errors:
          items:
            properties:
              detail:
                type: string
              header:
                type: string
              parameter:
                type: string
              pointer:
                type: string
            required:
              - detail
            type: object
          type: array
        status:
          type: integer
        title:
          type: string
      required:
        - status
        - detail
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      scheme: bearer
      type: http

````