Logo

Webhook Response

Webhook is a kind of feedback method for payment information. When payment order status changes, a POST request is sent to the url_callback specified when creating the payment orders.

Ex. response json body

{
  "type": "deposit",
  "ref_id": "656ca3c4df962ac7174821f11701879101296880418",
  "amount": 100,
  "status": "success", //success and fail
  "transactions": {
    "transaction_hash": "123123123",
    "wallet_address": "0x24B356654D8954211623eA4b15EDB4b4DA570Edb",
    "amount": 3,
    "amount_base": 100,
    "token": "USDT",
    "chain": "polygon",
    "rate": {
      "coin_to_usd": 0.9999,
      "usd_to_coin": 1.000100010001,
      "base": "THB",
      "base_convert": 35.200458852075
    }
  }
}