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

# Send a test webhook to either `url` from the body or the merchant's callback URL



## OpenAPI

````yaml /api-reference/openapi.json post /api/v2/notifications/test
openapi: 3.1.0
info:
  title: PawPayments API
  description: >-
    Public REST API for the PawPayments crypto payment gateway.


    All `/api/v2/*` endpoints require an `x-api-key` header issued in the
    merchant dashboard. Responses are wrapped in `{"ok": true, "result": ...}`
    on success and `{"ok": false, "error": {code, message, details?}}` on
    failure.
  version: 2.0.0
servers:
  - url: https://api.pawpayments.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Catalog
  - name: Merchant
  - name: Invoices
  - name: Payouts
  - name: Notifications
  - name: Permanent addresses
paths:
  /api/v2/notifications/test:
    post:
      tags:
        - Notifications
      summary: >-
        Send a test webhook to either `url` from the body or the merchant's
        callback URL
      operationId: post__api_v2_notifications_test
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TestWebhookBody.1a0169e'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookProbeEnvelope.d4a12ff'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope.d4a12ff'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope.d4a12ff'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope.d4a12ff'
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope.d4a12ff'
components:
  schemas:
    TestWebhookBody.1a0169e:
      description: Optional override for the destination URL of the test webhook.
      properties:
        url:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Override target URL. If omitted, uses the merchant's configured
            callback URL.
          title: Url
      title: TestWebhookBody
      type: object
    WebhookProbeEnvelope.d4a12ff:
      properties:
        ok:
          const: true
          title: Ok
          type: boolean
        result:
          $ref: '#/components/schemas/WebhookProbeEnvelope.d4a12ff.WebhookProbe'
      required:
        - ok
        - result
      title: WebhookProbeEnvelope
      type: object
    ErrorEnvelope.d4a12ff:
      example:
        error:
          code: VALIDATION_ERROR
          details:
            - field: amount
              message: Field required
          message: Validation failed
        ok: false
      properties:
        ok:
          const: false
          title: Ok
          type: boolean
        error:
          $ref: '#/components/schemas/ErrorEnvelope.d4a12ff.ErrorBody'
      required:
        - ok
        - error
      title: ErrorEnvelope
      type: object
    WebhookProbeEnvelope.d4a12ff.WebhookProbe:
      example:
        delivered: true
        error: null
        status_code: 200
        url: https://shop.example.com/webhook/paw
      properties:
        url:
          title: Url
          type: string
        status_code:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Status Code
        delivered:
          default: false
          title: Delivered
          type: boolean
        error:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Exception class name if delivery failed.
          title: Error
      required:
        - url
      title: WebhookProbe
      type: object
    ErrorEnvelope.d4a12ff.ErrorBody:
      properties:
        code:
          description: Machine-readable error code (e.g. NOT_FOUND, VALIDATION_ERROR).
          title: Code
          type: string
        message:
          title: Message
          type: string
        details:
          anyOf:
            - {}
            - type: 'null'
          default: null
          description: >-
            Optional context. For VALIDATION_ERROR contains a list of {field,
            message}.
          title: Details
      required:
        - code
        - message
      title: ErrorBody
      type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: x-api-key
      in: header

````