60 requests per minute limit

Errors

  • 1001
  • Wrong operator userhash. Login to admin panel go profile and check your userhash
  • RESULT
    {
        status: "error",
        msg: "wrong operator operator userhash",
        code: 1001
    }
            
  • 1002
  • Operator is disabled. please contact
  • RESULT
    {
        status: "error",
        msg: "operator disabled",
        code: 1002
    }
            
  • 1003
  • This user not exist
  • RESULT
    {
        status: "error",
        msg: "this user not exist",
        code: 1003
    }
            
  • 1004
  • User exist but, this user does not belong to you
  • RESULT
    {
        status: "error",
        msg: "user exist but, this user does not belong to you",
        code: 1004
    }
            
  • 1005
  • Transaction not found
  • RESULT
    {
        status: "error",
        msg: "transaction not found",
        code: 1005
    }
            
  • 1006
  • Shop not found
  • RESULT
    {
        status: "error",
        msg: "shop not found",
        code: 1006
    }
            
  • 1007
  • Wrong family this shop not belong to you
  • RESULT
    {
        status: "error",
        msg: "wrong family this shop not belong to you",
        code: 1007
    }
            
  • 1008
  • Balance is empty
  • RESULT
    {
        status: "error",
        msg: "balance is empty",
        code: 1008
    }
            
  • 1009
  • Wrong family this user not belong to you
  • RESULT
    {
        status: "error",
        msg: "wrong family this user not belong to you",
        code: 1009
    }
            
  • 1010
  • This shop does not have enough credits
  • RESULT
    {
        status: "error",
        msg: "this shop does not have enough credits",
        code: 1010
    }
            
  • 1011
  • This shop does not have enough credits
  • RESULT
    {
        status: "error",
        msg: "wrong family or username exist in our database please choose another",
        code: 1011
    }
            
  • 1012
  • This shop doesn't have hangout account limits
  • RESULT
    {
        status: "error",
        msg: "this shop doesn't have hangout account limits",
        code: 1012
    }
            
  • 1013
  • This shop not exist
  • RESULT
    {
        status: "error",
        msg: "this shop not exist",
        code: 1013
    }
            

    Get player profile

  • EXAMPLE
  • https://c2apieuro.grandx.org/admin/api/v1/player/profile/{ophash}/{username}
  • {ophash} => Api Userhash you can find on admin panel click on profile
  • {username} => Player username
  • RESULT
    {
        status: "success",
        username: "p100",
        shopname: "cash100",
        userhash: "a976e28e6a04442d76f93126807ca396",
        enabled: 1,
        panic: 1,
        credits: 600,
        time: 0.0071
    }
            

    Add credits

  • EXAMPLE
  • https://c2apieuro.grandx.org/admin/api/v1/credits/in/{ophash}/{username}/{credits}
  • {ophash} => Api Userhash you can find on admin panel click on profile
  • {username} => Player username
  • {credits} => 100 = 1.00 EUR;
  • RESULT
    {
        status: "success",
        action: "credits in",
        credits: 100,
        transactionID: 6370,
        time: 0.248
    }
            

    Remove credits

  • EXAMPLE
  • https://c2apieuro.grandx.org/admin/api/v1/credits/out/{ophash}/{username}
  • {ophash} => Api Userhash you can find on admin panel click on profile
  • {username} => Player username
  • RESULT
    {
        status: "success",
        action: "credits out",
        credits: 100,
        transactionID: 6371,
        time: 0.007
    }
            

    Check transaction

  • EXAMPLE
  • https://c2apieuro.grandx.org/admin/api/v1/transactions/{ophash}/{transactionID}
  • {ophash} => Api Userhash you can find on admin panel click on profile
  • {transactionID} => Transaction ID;
  • RESULT
    {
        status: "success",
        transactionID: 6357,
        in: 100,
        out: 0,
        description: "Api",
        time: 0.0068
    }
            

    Get all players / terminals

  • EXAMPLE
  • https://c2apieuro.grandx.org/admin/api/v1/players/{ophash}/{shopname}
  • {ophash} => Api Userhash you can find on admin panel click on profile
  • {shopname} => You can find it on admin panel
  • RESULT
    {
        status: "success",
            users: [
                {
                email: "atm_pc1",
                userhash: "2f95b2360c8dff801c65183808fbe5d9",
                score: 0,
                alarm: 1,
                enabled: 1
                },
                {
                email: "atm_pc2",
                userhash: "2f95b2360c8dff801c65183808fbsfsd",
                score: 0,
                alarm: 1,
                enabled: 1
                }
        ],
        time: 0.0074
    }
            

    Create new player and add credits

  • EXAMPLE
  • https://c2apieuro.grandx.org/admin/api/v1/new/player/{ophash}/{shopname}/{username}/{password}/{balance}
  • {ophash} => Api Userhash you can find on admin panel click on profile
  • {shopname} => You can find it on admin panel
  • {username} => username from your player / terminal
  • {password} => password from your player / terminal
  • {balance} => 100 = 1.00 EUR
  • RESULT IF SHOP DON'T HAVE CREDITS BUT PLAYER CREATED
    {
        status	"success"
        msg	"player created successfully"
        msg1	"balance not load"
        msg2	"shop don't have engout credits"
        userhash	"098f6bcd4621d373cade4e832627b4f6"
        credits	0
        code	2002
        time	3.3979
    }
            
    RESULT PLAYER CREATED AND CREDITS LOAD
    {
        status	"success"
        action	"player created successfully"
        action2	"credits in"
        userhash	"098f6bcd4621d373cade4e832627b4f6"
        transactionID	6407
        credits	100
        code	2001
        time	3.6071
    }
            
    RESULT PLAYER EXIST AND CREDITS LOAD
    {
        status	"success"
        action	"credits in"
        credits	100
        transactionID	6413
        code	2003
        time	0.2607
    }
            

    API - DOC