> ## 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.

# Get Webhook Delivery

> Returns a single webhook delivery, including the frozen `requestPayload`
and the captured `responseBody`. Returns `404` if the delivery belongs to
another sender.




## OpenAPI

````yaml openapi-v2.yaml GET /sender/webhooks/{id}
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}:
    get:
      tags:
        - Sender
      summary: Get a webhook delivery by ID
      description: >
        Returns a single webhook delivery, including the frozen `requestPayload`

        and the captured `responseBody`. Returns `404` if the delivery belongs
        to

        another sender.
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Webhook delivery
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  data:
                    $ref: '#/components/schemas/WebhookDeliveryDetail'
        '401':
          description: Unauthorized
        '404':
          description: Delivery not found
      security:
        - ApiKeyAuth: []
      servers:
        - url: https://api.paycrest.io/v2
components:
  schemas:
    WebhookDeliveryDetail:
      description: >-
        A single webhook delivery including the frozen request payload and
        captured response body.
      allOf:
        - $ref: '#/components/schemas/WebhookDelivery'
        - type: object
          properties:
            requestPayload:
              type: object
              description: >-
                The exact JSON body that was (or will be) sent, frozen at first
                attempt.
            responseBody:
              type: string
              description: Response body returned by your endpoint, truncated to 4KB.
    WebhookDelivery:
      type: object
      description: >
        A single outbound webhook delivery attempt. Returned in list responses

        (the large `requestPayload` and `responseBody` fields are omitted from
        list

        items — fetch a single delivery to see them).
      properties:
        id:
          type: string
          format: uuid
          description: Unique ID of this delivery record.
        event:
          type: string
          enum:
            - payment_order.deposited
            - payment_order.pending
            - payment_order.validated
            - payment_order.settling
            - payment_order.settled
            - payment_order.refunding
            - payment_order.refunded
            - payment_order.expired
          description: The webhook event that was delivered.
        eventId:
          type: string
          description: Identifier of the underlying event (matches the `event_id` filter).
        orderId:
          type: string
          format: uuid
          description: The payment order this delivery relates to, if any.
        status:
          type: string
          enum:
            - pending
            - success
            - failed
            - expired
          description: >
            Delivery status. `pending` — queued or awaiting retry; `success` —
            the

            endpoint returned a 2xx; `failed` — a transport error or non-2xx
            response,

            scheduled for retry; `expired` — gave up after the 24h retry window.
        trigger:
          type: string
          enum:
            - automatic
            - cron_retry
            - manual_sync
            - manual_async
          description: >
            What produced this attempt. `automatic` — first send on the event;

            `cron_retry` — automatic backoff retry; `manual_sync`/`manual_async`
            —

            a sender-initiated retry via the retry endpoint.
        httpStatusCode:
          type: integer
          description: >-
            HTTP status code returned by your endpoint (0 if no response was
            received).
          example: 200
        attemptNumber:
          type: integer
          description: 1-based attempt counter for this delivery.
          example: 1
        destinationUrl:
          type: string
          format: uri
          description: The webhook URL the request was sent to.
        signature:
          type: string
          description: The `X-Paycrest-Signature` (HMAC-SHA256 hex) sent with the request.
        errorMessage:
          type: string
          description: Transport or HTTP error message, if the attempt failed.
        durationMs:
          type: integer
          description: Round-trip duration of the attempt, in milliseconds.
        nextRetryTime:
          type: string
          format: date-time
          description: >-
            When the next automatic retry is scheduled (null once delivered or
            expired).
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: API-Key

````