Bet Detail Page Link
1、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
Link Format
https://merchant.aig1234.com/#/bet-detail?agent_id={agent_id}&txn_id={txn_id}&lang={lang}&tz={tz}×tamp={timestamp}&sign={sign}
Link Parameters
| Parameter | Name | Type | Required | Description |
|---|---|---|---|---|
| agent_id | Merchant ID | string | Required | Merchant ID |
| txn_id | Transaction ID | string | Required | Transaction ID (the id returned by the bet record APIs) |
| lang | Page language | string | Optional | zh: Chinese; any other value or omitted: English |
| tz | Display timezone | string | Optional | Hours 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 |
| timestamp | Creation timestamp | int64 | Required | Timestamp when the link is generated (milliseconds); the link is valid for 24 hours |
| sign | Signature | string | Required | See 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_idcomes beforetz - 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×tamp=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×tamp=1761638400000&sign=25bc6d9a3313f0dfc5be6fa7d2eaef28
Page Error Messages
| Message | Cause |
|---|---|
| Incomplete link parameters | One of agent_id, txn_id, timestamp, sign is missing |
| Invalid link | Wrong signature or the merchant does not exist |
| This link has expired | timestamp is older than 24 hours, or more than 5 minutes ahead of server time |
| Bet record not found | The transaction does not exist, or does not belong to you or your sub-merchants |
| Merchant is disabled | The merchant has been disabled |
| Too many requests | Too many opens from the same IP in a short time; please try again later |