Currently_entitled_amount_cents field is zero when a pledge is gifted

It seems that gifting is a new feature? Anyway, I have an API integration that relies on currently_entitled_amount_cents to distribute perks. For normal pledges this works fine, but I recently got a gifted pledge and the value is zero. Is this intended? Is there another field like currently_entitled_tiers that I’d have to use instead?

This is for the https://www.patreon.com/api/oauth2/v2/campaigns/.../members endpoint

1 Like

After experimenting with this further I can confirm that using the maximum value of currently_entitled_tiers.amount_cents is a functional workaround.

Yes, gifting is not supported in the api at the moment but some work is underway. For now try using workarounds.

Is there any progress on this?

I have the WordPress plugin running and am testing out gift memberships. It is showing a zero pledge.

I currently use Patreon_Wordpress::getUserPatronage(); to determine the user’s pledge.

  // determine user's current pledge
  $user_patronage = Patreon_Wordpress::getUserPatronage();