POST /test-webhook/payment
Sends a test webhook callback to the specified URL. Useful for verifying your webhook handler. Requires authentication.
Request
Section titled “Request”POST /test-webhook/paymentRequest Body
Section titled “Request Body”| Field | Type | Required | Description |
|---|---|---|---|
url_callback | string | Yes | The webhook URL to send the test payload to |
currency | string | Yes | Currency code (e.g., USDT) |
network | string | Yes | Blockchain network (e.g., tron) |
amount | string | Yes | Payment amount |
uuid | string | Yes | A payment UUID |
order_id | string | Yes | Your internal order identifier |
status | string | Yes | Payment status to simulate (e.g., paid) |
Example
Section titled “Example”# Compute sign: MD5(base64(JSON.stringify(body)) + API_KEY)curl -X POST https://api.nearpayments.io/cryptomus/v1/test-webhook/payment \ -H "Content-Type: application/json" \ -H "merchant: YOUR_MERCHANT_UUID" \ -H "sign: COMPUTED_SIGN" \ -d '{ "url_callback": "https://example.com/webhook", "currency": "USDT", "network": "tron", "amount": "50.00", "uuid": "a1b2c3d4-...", "order_id": "order-42", "status": "paid" }'Response
Section titled “Response”{ "state": 0, "result": []}