Paytec Asset Gateway API
  • Introduction
  • Initial Setup
  • Integration and Function Flow
    • 1. Request a Quote
      • Get Quote Error Codes
    • 2. Authorize Transaction
      • Simulating Refused Transactions
      • Authorize Transaction Error Codes
    • 4. Get Details (Optional)
      • Get Details Error Codes
  • Webhooks
    • Setting up Webhooks
      • Provision an endpoint
      • Receiving and Acknowledging webhooks
      • Testing Webhooks
    • Example Callbacks
      • 3D Secure Webhooks
  • Direct Deposit
Powered by GitBook
On this page
  1. Webhooks
  2. Setting up Webhooks

Testing Webhooks

Available ONLY in Sandbox

PreviousReceiving and Acknowledging webhooksNextExample Callbacks

POST Request to {Endpoint}/merchant/testWebhook

Use this endpoint to simulate webhooks. Once enrolled in receiving webhooks, you can configure the request body to simulate either a or failure (refund) notification.

Header Configuration

Header Parameter
Type

apiKey

String

API key provided by Support

content-type

String

application/json

Body Configuration

Parameter
Type
Details

merchantUserID

String

success

boolean

Set to true for simulating successful order notifications. Set to false for simulating unsuccessful order notifications.

If the request is successful, meaning that you are properly enrolled in receiving webhooks, a successful response (status 200) will mean that a webhook notification was sent to your endpoint(s).

{
    "success": true
}

If you are not actively enrolled in receiving webhooks, you will receive a request such as the following:

{
    "success": false,
    "error": "Merchant is not enrolled in webhooks. Contact support to enroll."
}

Merchant username/ID. Same as used in

successful
step 1.