Invalid INVALID_APP_KEY Error code for some accounts while getting listMarketData

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • David Sutcliffe
    Junior Member
    • Sep 2014
    • 30

    #1

    Invalid INVALID_APP_KEY Error code for some accounts while getting listMarketData

    Hello.
    I am able to Login but not able to get listMarketData from listMarketCatalogue API.
    I have two accounts From one account everything works fine and i am able to get Data. But from second i am not able to get data.
    It means API key is working only for one account or something else
    Please help me out

    for Example to GetAccount Balance problem is like this. For one account it is woking and giving me correct response
    and for 2nd account following things happen
    Request- {"id":"1","jsonrpc":"2.0","method":"AccountAPIN G/v1.0/getAccountFunds","params":{"filter":{}}}
    response- {"jsonrpc":"2.0","error":{"code":-32099,"message":"AANGX-0004","data":{"AccountAPINGException":{"errorDetai ls":"","errorCode":"INVALID_APP_KEY","requestUUID" :"null"},"exceptionname":"AccountAPINGException"}} ,"id":"1"}
    Last edited by David Sutcliffe; 22-01-2015, 01:10 PM.
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 679

    #2
    Hi,

    This error normally occurs if the sessionToken you are making the request with isn't associated with the Application Key that was created for that account.

    You'll need to create a separate Application Key for the second account as a single App Key is only associated with a single Betfair account.

    Thanks

    Neil

    Comment

    • David Sutcliffe
      Junior Member
      • Sep 2014
      • 30

      #3
      Hello, It means if this application is to be used by 5 user, I need to create Application key for each of their accounts. and then that application key should be used for only that account holder application.
      And how could i get application key for different different account. Should i ask them to create application key from their own with their credential or your support can provide application key if i mail you with their userName(with not their password as i dont have password).
      Waiting for Help.

      Thanks

      Comment

      • betdynamics
        Junior Member
        • Sep 2010
        • 534

        #4
        If your software is being used by people other than yourself, then you need to apply for a vendor licence.

        Once you have a vendor licence, you will have access to additional API calls (via the vendor API, an extension to the Accounts API). This will you to activate your software for other Betfair accounts without generating a new application key.

        Comment

        • David Sutcliffe
          Junior Member
          • Sep 2014
          • 30

          #5
          How could i get vendor licence.I dont know for my question this is the right place. Can you please provide some information or any weblink for vendor licence and while using vendor licence API's will be same or some other API's should be used.It means this vendor accound can only provide a application key which can be used commercially in application for following features(Login through application, get Account Balance, and place a Bet through Betfair API) for multiple users.

          Comment

          • betdynamics
            Junior Member
            • Sep 2010
            • 534

            #6
            Details of the vendor program can be found at https://developer.betfair.com/defaul...endor-program/

            Details about the vendor API are in the standard API documentation - see https://api.developer.betfair.com/se...pageId=4391024

            Comment

            • Merlin
              Junior Member
              • Jan 2009
              • 56

              #7
              David,
              If you are selling your software, you will need a vendor licence - if you are just making it available for other people to use (without charge), you don't.
              In the second case, what your software needs to do is the following:-
              1. Allow the user to log on using interactive login - API endpoint - no app key or SSL cert required for this
              2. Call createDeveloperAppKeys, which just fails politely if they already exist
              3. Call getDeveloperAppKeys and extract the live key from the response
              4. Use this key in all subsequent calls.

              You can do this once for each user, and permanently store the App Key somewhere, or just do it every time someone logs in.

              Cheers,
              Merlin

              Comment

              • BetfairDeveloperProgram
                Administrator
                • Oct 2008
                • 679

                #8
                Software Vendor Licence

                If you are selling your software, you will need a vendor licence - if you are just making it available for other people to use (without charge), you don't.
                Hi,

                Just to clarify, if you are distributing an application for use by other Betfair customers you do require a software vendor licence, whether you are charging for the software or not.

                Thanks

                Neil
                Last edited by BetfairDeveloperProgram; 27-01-2015, 04:25 PM.

                Comment

                • Merlin
                  Junior Member
                  • Jan 2009
                  • 56

                  #9
                  Neil,
                  How does that relate to libraries and sample code?
                  Do all contributors to this forum now need a vendor licence?
                  Cheers
                  Merlin

                  Comment

                  • BetfairDeveloperProgram
                    Administrator
                    • Oct 2008
                    • 679

                    #10
                    Hi Merlin,

                    No, this doesn't relate to libraries and sample code.

                    Thanks

                    Neil

                    Comment

                    • Merlin
                      Junior Member
                      • Jan 2009
                      • 56

                      #11
                      Neil,
                      thanks for the clarification. Can I suggest that you change the wording on your Vendor Program page, which currently states:

                      "The Software Vendor licence allows you to use the Betfair API to create betting applications to sell to third parties for private use." (my emphasis),

                      as it currently implies that the licence is only required for paid software.
                      cheers,
                      Merlin

                      Comment

                      • BetfairDeveloperProgram
                        Administrator
                        • Oct 2008
                        • 679

                        #12
                        Hi Merlin,

                        Thanks for pointing this out, yes, we'll update this accordingly to "The Software Vendor licence allows you to use the Betfair API to create betting applications and distribute these to Betfair customers for private use"

                        The update will occur when we next release changes to the developer program site within the next couple of weeks.

                        Thanks for your feedback

                        Neil

                        Comment

                        Working...
                        X