๐Ÿ”—Webhooks

Wallet Deposit Webhook Payload (POST)

{
   "success":true,
   "response":{
      "webhook":{
         "accountID":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
         "type":"wallet",
         "event":"deposit",
         "deposit":{
            "depositID":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            "walletID":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            "hashID":"{transaction hash}",
            "currency":"{currency}",
            "address":"{address}",
            "amount":"{amount sent}",
            "fee":"{CoinStack fee}",
            "metadata":"{metadata}"
         }
      }
   }
}

Charge Completion Webhook Payload (POST)

{
   "success":true,
   "response":{
      "webhook":{
         "accountID":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
         "type":"charge",
         "event":"paid",
         "charge":{
            "chargeID":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            "currency":"{currency}",
            "address":"{address}",
            "amount":"{amount sent}",
            "amountUSDT":"{amount sent in USDT}",
            "feeUSDT":"{CoinStack fee in USDT}",
            "metadata":"{metadata}"
         }
      }
   }
}

Last updated

Was this helpful?