PHP is total_historical_amount_cents accurate?


#1

I’m trying to use total_historical_amount_cents to get the total amount pledged by patrons.

Does this value return amounts greater than the pledge amount? It looks like it returns a sum of the pledge tiers the patron was at. Some patrons add additional amounts above the pledge value and those amounts seem to be missing.

Thanks!


#2

Hi daxherrera,

The name may be confusing, but the field should return the total amount ever paid by the patron to this campaign. New pledge changes won’t factor in unless the patron has actually paid, and the payment has been fully processed.

Best,
Jeffrey


#3

Correct. I really that, but even the total amount is inaccurate. I have some active Patrons with >$600 in lifetime support, however, the highest total amount I get back is the lifetime of my Patreon * the highest pledge level. total_historical_amount_cents doesn’t return the amount they pledged over that, which Patreon allows you to do within the system.


#4

I’m not sure if I fully understand. The total_historical_amount_cents is generated from billing information. It’s defined as the amount that’s ever been transferred between that patron and your campaign.

total_historical_amount_cents doesn’t return the amount they pledged over that, which Patreon allows you to do within the system.

Could you explain what you mean by this?


#5

In that case, it doesn’t seem to be returning the full amount. Are there any stipulations or historical limits?


#6

Failed or declined payments will not show up. Refunds are deducted from the amount. And people who are no longer pledging won’t be in your pledges to begin with. That’s all the ones I can think of. Does that account for the discrepancies?


#7

Sadly, no. Many of my Patrons’ amounts are short by several hundred dollars. It seems like their first several months of pledges are reduced to the value of the pledge level they were at ($20), and not the amount they pledged over the default. Is there a way I can submit their info privately or test code I can run?