Argon

API Reference

Webhook testing

Preview and send sample payment webhooks to your callbackUrl.

When you configure a custodian callbackUrl, Argonpay sends HTTP POST requests with Content-Type: application/json on payment lifecycle events.

When webhooks fire

Eventstatus in body
Payment completedcompleted
Payment expiredexpired
Payment cancelledcancelled

Request format

HTTP
POST /your/webhook/path HTTP/1.1
Content-Type: application/json

Body fields

FieldTypeDescription
txnidstringPayment identifier
statusstringcompleted, expired, or cancelled
amountnumberRequested payment amount
amountInTokennumberToken-denominated amount
networkstringChain identifier (e.g. polygon, bep20)
createdAtstringTransaction creation timestamp
secretstringCustodian secret (when configured)
privateKeystringSame value as secret (legacy field name)

Verify on your server

  1. Accept POST JSON only.
  2. Match txnid against your order records.
  3. Validate secret / privateKey against the secret you set on the custodian.
  4. Treat completed as paid, expired / cancelled as terminal non-success states.

Use the webhook tester below to preview the JSON body and send a test POST to your endpoint.

Webhook preview

Test your webhook

Argonpay POSTs JSON to your custodian callbackUrl when a payment completes, expires, or is cancelled. Adjust the fields below to see the exact body shape, then optionally send a test request to your endpoint.

POST body preview
JSON
{
"txnid": "demo-txn-abc123",
"status": "completed",
"amount": 25.5,
"amountInToken": 25.5,
"network": "polygon",
"createdAt": "2026-07-13T17:22:58.995Z",
"secret": "your-custodian-secret",
"privateKey": "your-custodian-secret"
}