English English
Chinese Chinese
English English

Frequently Asked Questions

Common questions and solutions for BYW Lottery API integration.

Account & Token

Q: How to get API Token?

A: Login to BYW, go to "API Management" -> "Token Management" to create your token.

Q: Token validity period?

A: Tokens don't expire, but your account must have active API access and sufficient permissions.

API Calls

Q: "Token not found" error?

  • Check token spelling
  • Verify token exists in dashboard
  • Ensure account has active API access
  • Confirm lottery is purchased for this token

Q: Request interval?

A: Latest query: min 1 second, recommended 5-10 seconds. History query: min 10 seconds.

Q: Supported languages?

A: All HTTP-capable languages: C#, PHP, JavaScript, Python, Java, Go, etc.

Error Codes

CodeMeaningSolution
1001Token emptyAdd valid token
1002Token invalid/expiredCheck token
1003Permission deniedPurchase lottery access
1004Invalid lottery codeCheck lotteryid
1005Too many requestsReduce frequency
1006IP not authorizedAdd to whitelist

Security

Q: Token leaked?

  1. Delete the leaked token in dashboard
  2. Create a new token
  3. Check usage history for anomalies

💬 Need Help?