Error code 2604 using luminateExtend to access getTopTeamDonors API

Options
Hello,


I need some help with the getTopTeamDonors API. I'm using luminateExtend to access the API with the following code block:


luminateExtend.api.request({
api: 'teamraiser',
data: 'method=getTopTeamDonors&v=1.0&fr_id=' + evtid,
requiresAuth: true,
callback: {
success: getTopTeamDonorsSuccess,
error: getTopTeamDonorsError
}
});
evtid is a predefined TR code. success and error are simply console logging the results. Upon execution of the codeblock above, it errors out with the following:

  1. error: "2604"
  2. message:"You do not have permission to view registrations for the specified constituent."
What does this error code mean and how can I resolve it? I am unfamiliar with a specific permissions setting related to this in LO.


Thank you,

Ryan
Tagged:

Comments

  • Ryan Doiron:

    Hello,


    I need some help with the getTopTeamDonors API. I'm using luminateExtend to access the API with the following code block:


    luminateExtend.api.request({
    api: 'teamraiser',
    data: 'method=getTopTeamDonors&v=1.0&fr_id=' + evtid,
    requiresAuth: true,
    callback: {
    success: getTopTeamDonorsSuccess,
    error: getTopTeamDonorsError
    }
    });
    evtid is a predefined TR code. success and error are simply console logging the results. Upon execution of the codeblock above, it errors out with the following:

    1. error: "2604"
    2. message:"You do not have permission to view registrations for the specified constituent."
    What does this error code mean and how can I resolve it? I am unfamiliar with a specific permissions setting related to this in LO.


    Thank you,

    Ryan

    This API method can only be called by a logged in participant, to retrieve their own team's donors. I'm guessing you're calling the API while not logged in, or, while logged in as someone who is not a participant.

Categories