Hello,
I’m trying to figure out how to get the pledge history for a member of a campaign. I’ve tried
campaign = api_client.get_campaigns_by_id_members(campaign_id, page_size=50, cursor=cursor,
fields={‘member’: [
‘pledge_history’,
]})
and it returns that pledge_history is not a valid field. The library doesn’t mention pledge_history or pledge events, and I can’t figure out how to get them. I finally figured out how to get the pledge_history of the user using a request, but I need the details from pledge event and don’t know what endpoint to get it from.
That can be acquired by requesting pledge_history as a relationship over member resource. When requesting the member resource, add pledge_history as a relationship include in the request.
pledge_history is nice, and it looks like it’s exactly the same as what we see when we click See all payment history for a particular member.
But am I correct in thinking that in pledge_history, there’s no way to tell whether the payment was for a month or a year? Is there any workaround to be able to differentiate between the length of a subscription?
My goal is to reconstruct the payment history.
UPDATE: There are major differences between what the website shows and the raw pledge history. It seems like the results are somehow non-trivially interpreted.