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
- 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™
- 577 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
- 37 PowerUp Challenges
- 3 (Open) 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
- 794 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)
