Closed ziyan-junaideen closed 4 years ago
Hi @ziyan-junaideen!
I had the same error at first when trying to create a contribution. After working through it with the API docs: https://app.breezechms.com/api#add_contribution, I found that the name
key in person_json
is required when you pass in the person_id
.
So if you pass in a single key/value array on person_json
like {"name":"Tony Stark"}
, it should come back with success and the corresponding payment_id
.
I hope that helps you on your Ruby Library!
Ok. so add_contribution is available in the api? Why wouldn't this be in the documentation??? I've been waiting for api v2 before I bothered creating an interface.
Is there an interface for get contributions?
Summary
Attempting to create a contribution fails. The error message isn't helpful to figure out the issue.
Details
Make a POST to /api/giving/add with the following data.
Request params (as a Ruby Hash):
Response:
Looking at the API documentation, there doesn't seem to be "name" field. Would appreaciate to figure out what might be missing. Also would be good to know which fields are required in teh API documentaiton.
Expected behavior
The API request to create a record, or respond with a more helpful error message.
What is the motivation / use case for changing the behavior?
NA
Environment