Creation of address with new vendor record
Hello,
We are trying to create vendor records that include a specific address type along with the vendor info. The vendor record is created correctly but no address is included. Can anyone else either show me where I set it up wrong, or verify that it does the same for you? Thank you!
Here is the JSON for my POST to https://api.sky.blackbaud.com/accountspayable/v1/vendors:
[test data, no actual personal info]
{
"vendor_name": "Johannes\Ockeghem",
"vendor_type": "Individual",
"vendor_status": "Active",
"ui_defined_id": "S5555555",
"addresses": [
{
"description": "ULS Primary Address",
"address_line": "514 Mendenhall St",
"city": "Greensboro",
"state": "NC",
"postal": "27403",
"country": "United States",
"is_primary": true,
"is_invoices": true,
"is_pos": true,
"is_1099": true
}
]
}
The vendor creation is successful (Status 200, with the vendor ID included), but no address appears on the record. The result of GET to https://api.sky.blackbaud.com/accountspayable/v1/vendors/12345/addresses is
{
"count": 1,
"results": [
{
"address_id": 0,
"description": "<Vendor Address>",
"is_primary": true,
"is_invoices": false,
"is_pos": false,
"is_1099": false,
"first_name": "",
"middle_name": "",
"last_name": "",
"position": "",
"address_contact_methods": [],
"payee_name": ""
}
]
}
Best Answer
-
Hi @Kyle Barger, reviewed this with the team and you are close; it's a single field-name mismatch, not anything on your account setup.
The Create Vendor endpoint expects the address collection under
address(singular), notaddresses. Because the property name doesn't match, the API ignores the array and creates the vendor with a default blank address which is exactly the empty stub you're seeing on the GET ("address_id": 0,"<Vendor Address>").I think you should rename that one key and the rest of your payload is fine (
is_1099and the other flags are correct as-is)
{
"vendor_name": "Johannes\Ockeghem",
"vendor_type": "Individual",
"vendor_status": "Active",
"ui_defined_id": "S5555555",
"address": [
{
"description": "ULS Primary Address",
"address_line": "514 Mendenhall St",
"city": "Greensboro",
"state": "NC",
"postal": "27403",
"country": "United States",
"is_primary": true,
"is_invoices": true,
"is_pos": true,
"is_1099": true
}
]
}
(Minor aside:"Johannes\Ockeghem"— a single backslash isn't a valid JSON escape, so use\\there to be safe.) After that, GET/vendors/{id}/addressesshould return the populated address. Let me know if it still comes back empty.1
Answers
-
Hi @Kyle Barger I am going to tag @Regina Okonkwo in this discussion to offer any insight. She may not respond right away and I'm hoping more members of the community come forward in the meantime!
0 -
@Regina Okonkwo Thanks for looking at this & finding my issue! I'm annoyed I didn't see it myself in all the times I pored over my code. Is there any kind of error log (beyond what gets returned with the API result) that might have shown something like this?
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
- 223 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®
- 688 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®
- 7.1K 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)

