Webhooks
We offer webhook callbacks for clients that want to be updated when a deposit is detected on-chain or finalized.
Webhook payload examples
AquaPay guarantees at-least-once delivery of our webhook messages, and to avoid duplicates, you can utilize txHash and adminApproval as deduplication IDs.
Unconfirmed webhook is disabled by default. You can enable it on AquaPay web portal "Webhooks" page.
Callback parameter values
Parameter | Type | Description |
paymentId |
| Bill Id provided by aquapay, can be used for query a bill status or doing conversions |
txId |
| Deposit Id provided by AquaPay |
address |
| Address of the deposit |
sourceAddress |
| Source address of the deposit |
adminApproval |
| Status of Transaction. UNCONFIRMED: a deposit is detected and waiting for further confirmation DONE: Successfully deposited and converted REJECTED: Successfully deposited but no conversion occurred FAILED: a deposit is failed on blockchain |
executableQuantity |
| The amount of crypto quantity that can be executed. Not available for |
fiatReceivable |
| The amount of quantity in fiat that is expected. If a user accidentally sends over the value of the quantity accepted, we will never trade above the quantity provided, and thus the fiatReceived will never be higher than the fiatReceivable. |
fiatReceived |
| Amount traded to fiat |
quantity |
| Quantity (in Crypto) deposited |
subaccount |
| Payment service provider's user who initiate the deposit request |
symbol |
| Crypto Symbol |
tradePrice |
| Price of Execution |
transactionType |
| Type of transaction. Will always be DEPOSIT |
txHash |
| Blockchain Transaction Hash |
txTime |
| Time of transaction confirmation in blockchain |
username |
| Your username |
expired |
| The bill is expired |
strategy |
| The payment strategy of the bill |
reason |
| Human-readable rejected reason for reference only. |
Last updated