Skip to main content
GET
/
Tokens
/
{YourAPIKEY}
/
{ProjectGuid}
/
{CustomerID}
Get the tokens for a customerID. These can be onchain tokens, allowances or db tokens
curl --request GET \
  --url https://intern.payingame.io/rest/PayIngame/PublicAPI/Tokens/{YourAPIKEY}/{ProjectGuid}/{CustomerID}
{
  "isError": "0",
  "Error": "",
  "Data": {
    "Tokens": [
      {
        "Total": 80.62,
        "TokenSymbol": "BOLT",
        "Guid": "5E5B9042-FA98-CBBE-9C92-E42F13FD8EBE",
        "Name": "Bolts",
        "Details": [
          {
            "Wallet": "0x2FEA74160714A5Cbc556A24fAe5cCa5F29a05000",
            "Amount": "80.62",
            "ChainName": "Ethereum",
            "ContractGuid": "0x24BD97449b970421F2597071697FfC782F93d0AA",
            "IsAllowance": false
          }
        ]
      }
    ]
  }
}
Get the tokens that a user has. The total amount as well as the details will be shown. It will contain the tokens onchain, allowance and db tokens.

Path Parameters

YourAPIKEY
string
required
ProjectGuid
string
required
CustomerID
string
required

Your unique customer id that is identified in your game.

Response

200 - application/json

List of tokens that a user has.

isError
string
Example:

"0"

Error
string
Example:

""

Data
object