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
string
Bill Id provided by aquapay, can be used for query a bill status or doing conversions
txId
string
Deposit Id provided by AquaPay
address
string
Address of the deposit
sourceAddress
string
Source address of the deposit
adminApproval
'UNCONFIRMED'|'DONE' | 'REJECTED' | 'FAILED'
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
number
The amount of crypto quantity that can be executed. Not available for "ACA"
strategy.
fiatReceivable
number
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
number
Amount traded to fiat
quantity
number
Quantity (in Crypto) deposited
subaccount
string
Payment service provider's user who initiate the deposit request
symbol
string
Crypto Symbol
tradePrice
number
Price of Execution
transactionType
'DEPOSIT'
Type of transaction. Will always be DEPOSIT
txHash
string
Blockchain Transaction Hash
txTime
number
Time of transaction confirmation in blockchain
username
string
Your username
expired
boolean
The bill is expired
strategy
string
The payment strategy of the bill
reason
string
Human-readable rejected reason for reference only.
Last updated