跳至主要内容

交易通知

交易通知

Webhook URL

Webhook Method

  • HTTP MethodPOST

Authentication

  • 雙方共享 IP 白名單
  • Bybit Pay 將透過 RSA_SHA256 對回調資料進行加密
    • 合作方可提供其 公鑰(public key)
    • 簽名資料會放在 回應標頭(response header)
    • 詳情請參考 Signature Algorithm

Headers

Content-Type: application/json
timestamp: xxx
publicKey: xxx
signature: xxx

Request Body

請求體為 JSON 格式,包含以下欄位:

欄位名稱型別說明
tradeNostring交易訂單號
statusstring交易狀態:processingsuccessfailed
quoteTxIdstring報價交易 ID,由系統產生,用於確認報價
exchangeRatestring匯率
fromCoinstring兌出幣種(賣出的幣)
fromCoinTypestringfromCoin 的幣種類型,fiatcrypto
toCoinstring兌入幣種(買入的幣)
toCoinTypestringtoCoin 的幣種類型,fiatcrypto
fromAmountstring兌出幣種數量(賣出數量)
toAmountstring兌入幣種數量(依照匯率計算的買入數量)
createdAtstring交易建立時間