Gift API Error
When using the Gift API → Gift (Create) call, gift_splits is a required attribute, which takes a GiftSplitAdd array. Each object in a GiftSplitAdd array requires a fund_id attribute, which takes a String. All donations for the application that I am developing will go into the same fund (for example purposes we will call the fund ‘Gift Fund’). In the Raiser's Edge NXT database, the fund id column for Gift Fund is defined as ‘Gift Fund’, not a number. Since all donations go into one fund, I am storing the fund name as an environment variable called ‘FUND_ID’. When I build the request body, I define fund_id inside of the gift splits object using process.env.FUND_ID, and have verified that the variable is coming from the environment as the correct data and the correct datatype.
When I call the Gift api, it returns a 25001 error with the error message: "The provided id value ‘Gift Fund’ is not in the correct format. I am passing the fund id in as a string. What format is this error referring to? As far as I know, I am passing all required values and datatypes in the request body. Note: I've also tried passing this variable into the body directly as a string instead of calling the env variable.
Comments
-
@Kyle Lejeune
the api is expecting the fund system id that is an integer. Yes, while the documentation expects “string”, it is not the “FUND ID" that is a string. so you need to go to your fund record in database view, and go to File > Property to get the system record id of the fund.then provide that into the gift splits array
“fund_id”: “999999”
where 999999 is the integer that is a system record id of the fund record
1
Categories
- All Categories
- 6 Blackbaud Community Help
- 212 bbcon®
- 1.4K Blackbaud Altru®
- 399 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 655 Blackbaud Grantmaking™
- 572 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
- 240 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
- 790 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
