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.

{
  "address": "mzczAqqqNqtozbaT7oJEzYML814Wg7d999",
  "adminApproval": "UNCONFIRMED",
  "confirmation": 0,
  "executableQuantity": 0.00002159,
  "fiatReceivable": 1,
  "quantity": 0.00002159,
  "strategy" : "RFQ",
  "sourceAddress": "tb1qx3r63vymgvp0ln5na022zzh7cv6xu3rs94g6ca",
  "subaccount": "deedddff",
  "symbol": "BTC",
  "tradePrice": 46319.1759999501,
  "transactionType": "DEPOSIT",
  "txHash": "14a8cbac6973374573326ab97891c9fe13eec03143e538e1a3e92987140ab04a",
  "txId": "3e06c4eb-b134-4a93-a78f-a979e1d3a803",
  "paymentId": "4618d63b-ea56-4f9f-920a-932faac40c4b",
  "username": "woojchung"
}

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