Searching for constituent by email address - 400 bad request?
Hi all,
Quite new to SKY API and am using this with PHP/Drupal with the Blackbaud SKY API module (https://www.drupal.org/project/blackbaud_sky_api) that seems to be most working successfully. I'm able to authenticate and make API requests.
As I say, new to the API and currently running into a strange issue that I'm sure is quite straightforward.
The API call I'm making looks like:
/constituent/v1/constituents/search?search_text=valid.email@example.com&search_field=email_address&strict_search=true
However I always get a 400 bad request.
/constituent/v1/constituents/search?search_text=valid.email@example.com&search_field=email_address
Appears to work correctly but I'm not getting expected results back. Wondered if anyone can point out what I'm missing?
Thank you!
Comments
-
all parameters need to be encoded for the string. e.g., in js, use encodeURIComponent to replace the @ in email address before submitting to API
1 -
Try after removing strict_search=true. I got the following message if I included that filter. “This request includes an invalid combination of filters. The only filters that are available for use with the email_address search_field filter are search_text and include_inactive.”
1 -
Of course. Schoolboy error on my part! Thank you, I'll do that!
0
Categories
- All Categories
- New K-12 Community Home (TEST)
- New Higher Education Home Page (Test)
- New Impact Edge Community TEST
- New YourCause Community TEST
- New SKY Community TEST
- New Grantmaking TEST Community
- New Altru Test Community
- New bbcon Community - TEST
- 12 Blackbaud Agents for Good™
- New Raiser's Edge NXT Community
- 8 Blackbaud Community Help
- 222 bbcon®
- 1.4K Blackbaud Altru®
- 411 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.2K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 16 donorCentrics®
- 361 Blackbaud eTapestry®
- 2.7K Blackbaud Financial Edge NXT®
- 687 Blackbaud Grantmaking™
- 604 Blackbaud Education Management Solutions for Higher Education
- 3.3K Blackbaud Education Management Solutions for K-12 Schools
- 954 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 85 JustGiving® from Blackbaud®
- 7K Blackbaud Raiser's Edge NXT®
- 4K SKY Developer
- 258 ResearchPoint™
- 123 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 249 Member Lounge (Just for Fun)
- 40 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Closed) PowerUp Challenge: Grid View Batch
- 3 (Closed) 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
- 829 Community News
- 3.1K Jobs Board
- 57 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
