Gifted pledges neither trigger a webhook nor are they exposed properly in the API

@Nimja_Hypnosis what exactly are you looking for? If a membership is gifted? That can be found on the member resource ( API Reference ) via the is_gifted attribute.

This is actually not very helpful, because it’s not present in the list of pledges. In the case of this user, for example, they have been a member previously. So they have pledges in the past.

How do I know when the gift was given?

In theory it looks like I could derive it from pledge_relationship_start, combined with currently_entitled_amount_cents, if the start is after last_charge_date, AND it is gifted. I guess you could use that. But I’m sure you would agree that this is a very ugly work-around.

Actually that doesn’t even work, because this user has been a member before, so the relationship start date is years ago, instead of a few days ago.

So there appears to be no way to know when the gift was given and when it is valid.

Yes, there’s currently still no way to determine pledge duration for gifted subscriptions. What we’re doing is basically guessing that every gifted sub is limited to 1 month. After that, the user will have to manually synchronize their subscription status via the API, which would either add another month if it’s still a gifted sub or show the actual expiration date if they switched to a normal pledge.

In assume that as you write that, you realize that this is unacceptable. Please get this fixed it’s been a year.

I’m not working for Patreon, I’m dealing with the same problem as you are. :sweat_smile: I just told you how we’re mitigating this.

1 Like

Sorry, you’re right. It’s a very messy situation.

1 Like