Skip to content

POST /test-webhook/payment

Sends a test webhook callback to the specified URL. Useful for verifying your webhook handler. Requires authentication.

POST /test-webhook/payment
FieldTypeRequiredDescription
url_callbackstringYesThe webhook URL to send the test payload to
currencystringYesCurrency code (e.g., USDT)
networkstringYesBlockchain network (e.g., tron)
amountstringYesPayment amount
uuidstringYesA payment UUID
order_idstringYesYour internal order identifier
statusstringYesPayment status to simulate (e.g., paid)
Terminal window
# 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"
}'
{
"state": 0,
"result": []
}