Code 14 - getUser and getUserTransaction API result

Options
Hello Community,


I am a new LO API user.


I am having trouble using the client side APIs to get the user info and all transactions. I keep getting the response,{"errorResponse":{"code":"14","message":"Get failed: getting a record is not allowed for the caller."}} (HTTP status: 403)


I can login as a user using the "login" method and I can get a token using "getLoginUrl" method. Not problems using the POST and GET respectively.


But using the info from the "getLoginUrl" method and setting the POST body for the getUser method (like so):
method=getUser&api_key=xxxx&v=1.0&auth=xxxx&response_format=json&JSESSIONID=010A50A1B20133754FFE70974A8826B3.app20103b&cons_id=100xxxx. I keep getting the error above.


I have been able to get the user and trans data using the server-side methods with no issue, but in the browser / ajax it is not working. I think it is a configuration issue inside the LO site or the constituent record. I have setup the LO site following the instructions here: http://open.convio.com/api/?referrer=http://open.convio.com/api/?referrer=http://open.convio.com/api/?referrer=http://open.convio.com/api/#main.javascript_crossdomain_library.html for API access.


Any thoughts?
Tagged:

Comments

  • I believe the getUser and getUserTransaction API can only show constituent record that matches the logged in user, thus you can't be using i.e. admin api credentials to see other people records


    excerpt from the documentation:

    If the requester is a constituent using the Client API:
    1. An authentication token representing the logged-in user must be passed.
    2. Only the constituent record of the logged in user may be retrieved.

    Andre Small:

    Hello Community,


    I am a new LO API user.


    I am having trouble using the client side APIs to get the user info and all transactions. I keep getting the response,{"errorResponse":{"code":"14","message":"Get failed: getting a record is not allowed for the caller."}} (HTTP status: 403)


    I can login as a user using the "login" method and I can get a token using "getLoginUrl" method. Not problems using the POST and GET respectively.


    But using the info from the "getLoginUrl" method and setting the POST body for the getUser method (like so):
    method=getUser&api_key=xxxx&v=1.0&auth=xxxx&response_format=json&JSESSIONID=010A50A1B20133754FFE70974A8826B3.app20103b&cons_id=100xxxx. I keep getting the error above.


    I have been able to get the user and trans data using the server-side methods with no issue, but in the browser / ajax it is not working. I think it is a configuration issue inside the LO site or the constituent record. I have setup the LO site following the instructions here: http://open.convio.com/api/?referrer=http://open.convio.com/api/?referrer=http://open.convio.com/api/?referrer=http://open.convio.com/api/#main.javascript_crossdomain_library.html for API access.


    Any thoughts?

     

Categories