Create a webhook endpoint for a PSP

Create a webhook endpoint for a PSP.

Authentication

Requires X-Access-Key and X-Secret-Key headers.

Path parameters

  • pspId (number): the PSP identifier

Request body

JSON payload matching CreateWebhookEndpointDto.

Required fields:

  • url (string)

Optional fields:

  • secret (string)
  • isActive (boolean)

Response

  • 201: Webhook endpoint created successfully. Returned data (WebhookEndpointResponseDto) includes:
    • id
    • pspId
    • merchantId (nullable)
    • url
    • isActive
    • createdAt
    • updatedAt
  • 400: Bad request
  • 401: Unauthorized
  • 403: Forbidden
  • 500: Internal server error
Language
Credentials
Response
Click Try It! to start a request and see the response here!