Constituent API does not return value for sometime when a new constituent is fetched.

Hi there, I'm trying to fetch a constituent. I add a constituent and fetch it with its constituent Id, but I don't get the record, it returns count: 0, value: []. And when I hit the same after few minutes, it returns the data. Sometimes it takes more than 10 minutes to update the data. Is there's a way to get updated record instantly after it updates in web view or optimize this on my side?

Comments

  • Dan Bonville
    Dan Bonville New Member
    Eighth Anniversary Kudos 1 Name Dropper Participant

    They do have an expected latency noted on the constituentList endpoint in the documentation, but not on the individual constituent. I haven't noted that lag when testing with our sandbox, but I wonder if “busier” environments may be different.

  • Chris Rodgers
    Chris Rodgers Blackbaud Employee
    Ninth Anniversary Kudos 3 Name Dropper Participant

    Hey Aayesha, @Dan Bonville has it right – the Constituent List endpoint has some inherent latency, and that appears to be what you're seeing. If you're making a request specifically for a single constituent, the Get Constituent endpoint will return the latest information (regardless of environment – to answer Dan's question).

  • I'm having this lag in both Get constituent and List endpoints. Tested multiple times today and it takes about 25 minutes to update.

Categories