| You send | You get | Use it |
|---|---|---|
terminalId + trxRefId | transaction: that one deposit | When a callback arrives: credit your user from this answer, not from the callback |
terminalId only (+ page, perPage) | transactions: a page of the terminal's deposits, newest first | When you have no trxRefId |
trxRefId)amount is what was sent; your balance received amount - fee.status is SUCCESS for a credited deposit.trxRefId and trx_hash are the same transaction hash.transaction not found!.trxRefId)data: [] (HTTP 200), not an error.curl --location 'https://chainhub.bitycle.com/pg/v1/inquiryPay' \
--header 'Authorization: Token YOUR_MERCHANT_CODE' \
--header 'Content-Type: application/json' \
--data '{
"terminalId": "300001",
"trxRefId": "0x55a13a230a4db3b0d4c1e7f8a2b9d6e3f0c5a8b7d4e1f2a3b6c9d8e7f0a1b2c3"
}'{
"transaction": {
"terminalId": "300001",
"token": "USDT",
"trxRefId": "0x55a13a230a4db3b0d4c1e7f8a2b9d6e3f0c5a8b7d4e1f2a3b6c9d8e7f0a1b2c3",
"status": "SUCCESS",
"amount": "500.00000000",
"fee": "0.30000000",
"trx_hash": "0x55a13a230a4db3b0d4c1e7f8a2b9d6e3f0c5a8b7d4e1f2a3b6c9d8e7f0a1b2c3",
"to": "0x0Af8e9cc82ed86BA382C2CeBb08DCA4F7809018c",
"network": "BSC",
"description": "User 586230"
}
}