Skip to main content

Bet Detail Page Link

Description​

  • From the bet log in your own back office, you can build an EEAI bet detail page link for a single bet, open it directly in a browser, or embed it in an iframe
  • The page shows the bet's basic info (transaction ID, player, game, table, round, currency, times, amounts, status), the card/draw result and the bet details. No login is required and no video replay is provided
  • Only bets of your own merchant and your sub-merchants can be viewed; unsettled bets can also be viewed, with win/loss shown as "--"
  • The link itself is the access credential: anyone holding the link can view this bet while it is valid. Do not share it publicly
https://merchant.aig1234.com/#/bet-detail?agent_id={agent_id}&txn_id={txn_id}&lang={lang}&tz={tz}&timestamp={timestamp}&sign={sign}
ParameterNameTypeRequiredDescription
agent_idMerchant IDstringRequiredMerchant ID
txn_idTransaction IDstringRequiredTransaction ID (the id returned by the bet record APIs)
langPage languagestringOptionalzh: Chinese; any other value or omitted: English
tzDisplay timezonestringOptionalHours offset from UTC, -12 ~ 14, e.g. 8 for UTC+8, -4 for UTC-4; do not prefix positive values with +; omitted means UTC+0
timestampCreation timestampint64RequiredTimestamp when the link is generated (milliseconds); the link is valid for 24 hours
signSignaturestringRequiredSee the signature algorithm in the API description; lang and tz must be signed when passed

Notes​

  • The signature must be generated on your server. Never compute it in browser JavaScript, or your secret will be exposed
  • Parameters are sorted by name in ASCII order before joining; note that txn_id comes before tz
  • Sign the raw parameter values (no URL encoding); URL-encode them when putting them into the link
  • After the link expires the page shows "This link has expired"; simply generate a new one. We recommend generating it when the agent clicks
  • The page supports iframe embedding and switches to a single-column layout on narrow screens

Signature Example​

  • Merchant secret: your_secret
  • Parameters: agent_id=agent001, txn_id=67f8cdf7ab12bf8b5b606115, lang=en, tz=-4, timestamp=1761638400000
  • String to sign:
your_secret&agent_id=agent001&lang=en&timestamp=1761638400000&txn_id=67f8cdf7ab12bf8b5b606115&tz=-4
  • md5 result:
25bc6d9a3313f0dfc5be6fa7d2eaef28
  • Final link:
https://merchant.aig1234.com/#/bet-detail?agent_id=agent001&txn_id=67f8cdf7ab12bf8b5b606115&lang=en&tz=-4&timestamp=1761638400000&sign=25bc6d9a3313f0dfc5be6fa7d2eaef28

Page Error Messages​

MessageCause
Incomplete link parametersOne of agent_id, txn_id, timestamp, sign is missing
Invalid linkWrong signature or the merchant does not exist
This link has expiredtimestamp is older than 24 hours, or more than 5 minutes ahead of server time
Bet record not foundThe transaction does not exist, or does not belong to you or your sub-merchants
Merchant is disabledThe merchant has been disabled
Too many requestsToo many opens from the same IP in a short time; please try again later