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

# Retry Webhook Delivery

> Replays a webhook delivery using its original frozen payload.

- **Synchronous** (`?sync=true`): the payload is re-sent immediately and the
  HTTP result is returned inline (`200`).
- **Asynchronous** (default): a new `pending` delivery is queued for the retry
  worker and the new delivery ID is returned (`202`).

Returns `404` if the delivery belongs to another sender.




## OpenAPI

````yaml openapi-v2.yaml POST /sender/webhooks/{id}/retry
openapi: 3.0.3
info:
  title: Paycrest Aggregator API
  version: 1.0.0
  description: >
    OpenAPI schema for the Paycrest Aggregator API. This covers sender,
    provider, and general endpoints.
servers:
  - url: https://api.paycrest.io/v2
security: []
tags:
  - name: Sender
    description: Endpoints for senders to create and manage payment orders
  - name: Provider
    description: Endpoints for providers to manage and fulfill orders
  - name: General
    description: General protocol and utility endpoints
paths:
  /sender/webhooks/{id}/retry:
    post:
      tags:
        - Sender
      summary: Retry a webhook delivery
      description: >
        Replays a webhook delivery using its original frozen payload.


        - **Synchronous** (`?sync=true`): the payload is re-sent immediately and
        the
          HTTP result is returned inline (`200`).
        - **Asynchronous** (default): a new `pending` delivery is queued for the
        retry
          worker and the new delivery ID is returned (`202`).

        Returns `404` if the delivery belongs to another sender.
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
            format: uuid
        - in: query
          name: sync
          schema:
            type: boolean
            default: false
          description: When `true`, replay immediately and return the HTTP result inline.
      responses:
        '200':
          description: Synchronous retry result
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  data:
                    $ref: '#/components/schemas/WebhookRetryResult'
        '202':
          description: Asynchronous retry queued
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: success
                  message:
                    type: string
                    example: Webhook retry queued
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                        description: ID of the newly queued delivery.
        '401':
          description: Unauthorized
        '404':
          description: Delivery not found
      security:
        - ApiKeyAuth: []
      servers:
        - url: https://api.paycrest.io/v2
components:
  schemas:
    WebhookRetryResult:
      type: object
      description: >
        Result of a synchronous retry (`?sync=true`). Reports the HTTP outcome
        of

        replaying the original payload inline.
      properties:
        id:
          type: string
          format: uuid
          description: ID of the delivery record created for this retry.
        status:
          type: string
          enum:
            - success
            - failed
        httpStatusCode:
          type: integer
          example: 200
        durationMs:
          type: integer
        errorMessage:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: API-Key

````