Common questions and solutions for BYW Lottery API integration
A: Login to BYW, go to "API Management" -> "Token Management" to create your token.
A: Tokens don't expire, but your account must have active API access and sufficient permissions.
A: Latest query: min 1 second, recommended 5-10 seconds. History query: min 10 seconds.
A: All HTTP-capable languages: C#, PHP, JavaScript, Python, Java, Go, etc.
| Code | Meaning | Solution |
|---|---|---|
| 1001 | Token empty | Add valid token |
| 1002 | Token invalid/expired | Check token |
| 1003 | Permission denied | Purchase lottery access |
| 1004 | Invalid lottery code | Check lotteryid |
| 1005 | Too many requests | Reduce frequency |
| 1006 | IP not authorized | Add to whitelist |