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

# Get merchant webhook delivery

> Get merchant webhook delivery.



## OpenAPI

````yaml /openapi.yaml get /v2/external/webhook-deliveries/{deliveryId}
openapi: 3.1.0
info:
  title: DropHub External API
  version: v2
  description: >-
    DropHub API v2 for Merchant, shipping-company, shipment, and OAuth 2.0
    integrations.
  contact:
    name: DropHub API Governance
  license:
    name: Proprietary
servers:
  - url: https://api-test.drop-hub.com
    description: Sandbox deployment with isolated data and credentials.
  - url: https://api.drop-hub.com
    description: Production deployment; production credentials only.
security: []
tags:
  - name: Authentication
    description: >-
      Authentication, sessions, the company a principal is, and merchant API
      credentials
  - name: External Price Estimates
    description: OAuth-scoped transient route-distance and tariff calculation
  - name: External Shipments
    description: OAuth-scoped Merchant shipment creation, lookup, and cancellation
  - name: External Tracking
    description: Merchant-authenticated and privacy-minimized public tracking projections
  - name: Sandbox
    description: >-
      Tenant-bound self-service fixture lifecycle, available only on the
      isolated sandbox deployment
  - name: Webhook Endpoints
    description: Merchant webhook subscriptions, lifecycle, and signing-secret rotation
  - name: Webhook Deliveries
    description: Durable webhook delivery history and replay
paths:
  /v2/external/webhook-deliveries/{deliveryId}:
    get:
      tags:
        - Webhook Deliveries
      summary: Get merchant webhook delivery
      description: Get merchant webhook delivery.
      operationId: getMerchantWebhookDelivery
      parameters:
        - $ref: '#/components/parameters/AcceptLanguage'
        - $ref: '#/components/parameters/WebhookDeliveryId'
      responses:
        '200':
          description: Delivery and immutable attempts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookDeliveryDetails'
        '401':
          $ref: '#/components/responses/AuthenticationFailed'
        '403':
          $ref: '#/components/responses/AccessDenied'
        '404':
          $ref: '#/components/responses/ResourceNotFound'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
      security:
        - oauthClientCredentials:
            - webhooks:manage
components:
  parameters:
    AcceptLanguage:
      name: Accept-Language
      in: header
      required: false
      description: >-
        Preferred response language when a localized representation is
        available.
      schema:
        type: string
        maxLength: 64
        example: en
    WebhookDeliveryId:
      name: deliveryId
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    WebhookDeliveryDetails:
      type: object
      additionalProperties: false
      required:
        - delivery
        - attempts
      properties:
        delivery:
          $ref: '#/components/schemas/WebhookDelivery'
        attempts:
          type: array
          items:
            $ref: '#/components/schemas/WebhookDeliveryAttempt'
    WebhookDelivery:
      type: object
      additionalProperties: false
      required:
        - deliveryId
        - endpointId
        - eventId
        - replayNumber
        - status
        - attemptCount
        - nextAttemptAt
        - createdAt
        - updatedAt
        - version
      properties:
        deliveryId:
          $ref: '#/components/schemas/Uuid'
        endpointId:
          $ref: '#/components/schemas/Uuid'
        eventId:
          type: string
          pattern: ^evt_[0-9a-f]{32}$
        replayNumber:
          type: integer
          minimum: 0
        replayOfDeliveryId:
          oneOf:
            - $ref: '#/components/schemas/Uuid'
            - type: 'null'
        status:
          type: string
          enum:
            - PENDING
            - IN_FLIGHT
            - RETRY_WAIT
            - DELIVERED
            - DEAD_LETTER
        attemptCount:
          type: integer
          minimum: 0
          maximum: 12
        nextAttemptAt:
          $ref: '#/components/schemas/InstantUtc'
        lastFailureCategory:
          type:
            - string
            - 'null'
        lastHttpStatus:
          type:
            - integer
            - 'null'
          minimum: 100
          maximum: 599
        deliveredAt:
          oneOf:
            - $ref: '#/components/schemas/InstantUtc'
            - type: 'null'
        deadLetteredAt:
          oneOf:
            - $ref: '#/components/schemas/InstantUtc'
            - type: 'null'
        createdAt:
          $ref: '#/components/schemas/InstantUtc'
        updatedAt:
          $ref: '#/components/schemas/InstantUtc'
        version:
          type: integer
          format: int64
          minimum: 0
      example:
        deliveryId: 018f2d8a-1f00-7000-8000-000000000209
        endpointId: 018f2d8a-1f00-7000-8000-00000000020a
        eventId: evt_018f2d8a1f0070008000000000000205
        replayNumber: 1
        replayOfDeliveryId: 018f2d8a-1f00-7000-8000-00000000020b
        status: PENDING
        attemptCount: 0
        nextAttemptAt: '2026-08-22T18:31:00Z'
        createdAt: '2026-08-22T18:31:00Z'
        updatedAt: '2026-08-22T18:31:00Z'
        version: 0
    WebhookDeliveryAttempt:
      type: object
      additionalProperties: false
      required:
        - attemptId
        - attemptNumber
        - startedAt
        - completedAt
        - latencyMillis
      properties:
        attemptId:
          $ref: '#/components/schemas/Uuid'
        attemptNumber:
          type: integer
          minimum: 1
          maximum: 12
        startedAt:
          $ref: '#/components/schemas/InstantUtc'
        completedAt:
          $ref: '#/components/schemas/InstantUtc'
        responseStatus:
          type:
            - integer
            - 'null'
          minimum: 100
          maximum: 599
        responseExcerpt:
          type:
            - string
            - 'null'
          maxLength: 1024
        latencyMillis:
          type: integer
          format: int64
          minimum: 0
        failureCategory:
          type:
            - string
            - 'null'
        retryAt:
          oneOf:
            - $ref: '#/components/schemas/InstantUtc'
            - type: 'null'
    Problem:
      type: object
      description: RFC 9457 Problem Details with stable DropHub extensions
      additionalProperties: true
      required:
        - type
        - title
        - status
        - code
        - timestamp
        - correlationId
        - requestId
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
          maxLength: 128
        status:
          type: integer
          format: int32
          minimum: 400
          maximum: 599
        detail:
          type: string
          maxLength: 512
        instance:
          type: string
          format: uri-reference
        code:
          type: string
          pattern: ^[A-Z][A-Z0-9_]{1,63}$
        timestamp:
          type: string
          format: date-time
        correlationId:
          type: string
          format: uuid
        requestId:
          type: string
          format: uuid
        traceId:
          type: string
          pattern: ^[0-9a-f]{32}$
        violations:
          type: array
          maxItems: 20
          items:
            $ref: '#/components/schemas/Violation'
      example:
        type: https://api.drop-hub.com/problems/access-denied
        title: Access denied
        status: 403
        detail: Access to this resource is denied.
        instance: /v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206
        code: ACCESS_DENIED
        timestamp: '2026-08-22T18:30:00Z'
        correlationId: 018f2d8a-1f00-7000-8000-000000000207
        requestId: 018f2d8a-1f00-7000-8000-000000000208
    Uuid:
      type: string
      format: uuid
    InstantUtc:
      type: string
      format: date-time
      x-java-type: java.time.Instant
      x-postgresql-type: timestamptz(6)
      x-time-semantics: UTC-instant
    Violation:
      type: object
      additionalProperties: false
      required:
        - field
        - code
        - message
      properties:
        field:
          type: string
          maxLength: 128
        code:
          type: string
          maxLength: 64
        message:
          type: string
          maxLength: 256
  responses:
    AuthenticationFailed:
      description: Authentication failed without account, token, or tenant enumeration.
      headers:
        WWW-Authenticate:
          $ref: '#/components/headers/WwwAuthenticate'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          example:
            type: https://api.drop-hub.com/problems/authentication-required
            title: Authentication required
            status: 401
            detail: Authentication is required for this resource.
            instance: /v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206
            code: AUTHENTICATION_REQUIRED
            timestamp: '2026-08-22T18:30:00Z'
            correlationId: 018f2d8a-1f00-7000-8000-000000000207
            requestId: 018f2d8a-1f00-7000-8000-000000000208
    AccessDenied:
      description: >-
        Access denied without exposing internal policy or resource ownership.
        The machine code is `ACCESS_DENIED`, except for two refusals that
        describe the caller's own session and are therefore safe to name:
        `ASSURANCE_REQUIRED`, when the caller holds the authority but the
        session has not proved a second factor, and `REAUTHENTICATION_REQUIRED`,
        when the session is no longer fresh enough for the operation. Both are
        answered by proving the session again and retrying — see `POST
        /v2/company-authentication/assurance-elevations`.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    ResourceNotFound:
      description: Resource not found; existence is hidden across authorization boundaries.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    MethodNotAllowed:
      description: The method is not supported for this resource.
      headers:
        Allow:
          description: Methods supported by this resource.
          schema:
            type: string
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  headers:
    WwwAuthenticate:
      description: Bearer challenge for an unauthenticated or invalid-token request.
      schema:
        type: string
        example: Bearer
  securitySchemes:
    oauthClientCredentials:
      type: oauth2
      description: >-
        OAuth 2.0 client-credentials flow for external machine-to-machine
        integrations.
      flows:
        clientCredentials:
          tokenUrl: /oauth/token
          scopes:
            shipments:read: Read Merchant-owned shipments
            shipments:write: Create and cancel Merchant-owned shipments
            webhooks:manage: Manage Merchant webhook endpoints, delivery history, and replay

````