For the implementation of the ChangeUp Partner API, only two requests will need to be made. First, a request to get the charity data will return the name, logo, etc. Then, a batch of donations can be sent to the ChangeUp API on a nightly basis or at any other interval as selected by Partner.
Note: For Staging testing, use the Cause ID. This ID will be replaced with the charity of your choice for Production deployment.
For technical support, contact: John Jordan | john@changeupforcharity.com
Your API keys will be created and delivered once your Partner account is being set up.
API Request # 1 - Get charity data:
Documentation here.
Example request:
curl -X GET "http://partner-api-staging.changeupforcharity.com/partner/v1/cause/<CAUSE-ID-HERE>" -H "accept: application/json" -H "X-Changeup-API-Key: <API-KEY-HERE>" -H "Content-Type: application/json"
API Request # 2 - Post a batch of donations:
Documentation here.
Example request:
curl -X POST "http://partner-api-staging.changeupforcharity.com/partner/v1/donation" -H "accept: application/json" -H "X-Changeup-API-Key: <API-KEY-HERE>" -H "Content-Type: application/json" -d "{\"donations\":[{\"user_donation_amount_micros\":5000000,\"partner_donation_amount_micros\":0,\"partner_attributable_user_id\":\"test-user-id\",\"partner_attributable_user_email_address\":\"test@test.com\",\"partner_attributable_user_first_name\":\"Test First Name\",\"partner_attributable_user_last_name\":\"Test Last Name\",\"partner_transaction_id\":\"test-partner-tx-id\",\"cause_uuid\":\"<CAUSE-ID-HERE>\"}]}"