Creating a constituent and then adding a constituent code for them.
Hi all,
I'm fairly new to the SKY API and I wonder if I'm missing something obvious here - but there don't seem to be any endpoints for managing a constituent's constituent codes?
Here's what I would like to do:
- User signs up on website
- Connect to SKY API and check for duplicates via this endpoint
- No duplicates? Create a new constituent record in RE via this endpoint and retrieve the new constituent ID from successful response
- Use new constituent ID to add a constituent code to the new constituent
That last point is where I'm stuck. The closest I have found to something that does this is the Constituent (Convert) endpoint. I'm unclear as to exactly what makes someone a "non-constituent", but as a test I have tried to add a new cons code to my own (already existing and with a couple of cons codes) record in RE via the convert endpoint and got the error "The contact with an id of XXX is already a constituent."
The name of the Constituent (Convert) endpoint infers (to me at least) that it should work when I create a new constituent void of any cons codes, and then try to add them. I haven't tried that yet, but I will also need it (or something) to work in the scenario where the user already exists in our RE database and I merely want to add a cons code to their existing record.
I'd be really grateful if anyone could point me in the right direction on this. Thanks in advance!
Best Answer
-
Hi @Oliver New For the last point, try using POST Constituent Code (Create).
In your scenario, the form submitter will be a constituent so you don't need to convert them from non-constituent to constituent.1
Answers
-
Erik pointed out the API endpoint that is for creating a constituent code. You had the wrong idea around the "Constituent (Convert)" endpoint as that's for converting a non-constituent record to a constituent record. The create constituent endpoint creates a constituent, it does not create a non-constituent. A constituent without constituent code does not mean the record is a non-constituent record, just a constituent record with no constituent code. Hope that make sense.
As for your "existing" situation, the workflow should look something like this:
- search for duplicate constituent
- condition if found
- list constituent codes for the found constituent
- check if the code you want to add already exists
- if yes, do nothing
- if no, create the constituent code
- condition if not found
1 -
Thanks both! Of course, shortly after posting my question I found the answer myself 😂
I missed it because neither the create new constituent code or it's brother delete constituent code are listed in the docs. Why is that?
0 -
@Oliver New - I must be misunderstanding your comment about docs missing as you've linked to the relevant docs. The endpoints for Constituent are lengthy & have pagination at the bottom of the left sidebar. Open to suggestions to improve the process.
1 -
@Erik Leaver thanks - I had not realised there is pagination at the bottom of the sidebar. My mistake but it wasn't very clear to me. I actually found the links to the endpoints via ChatGPT, so I assumed they were not present in that navigation.
0 -
@Oliver New - thanks for the feedback. I've focused a chunk of time this fall on updating documentation. We'll get UX up next ;-)
1
Categories
- All Categories
- 6 Blackbaud Community Help
- 213 bbcon®
- 1.4K Blackbaud Altru®
- 403 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 656 Blackbaud Grantmaking™
- 576 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 939 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.6K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 241 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 34 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 793 Community News
- 2.9K Jobs Board
- 54 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)

