@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.
I just told you how weāre mitigating this.
Sorry, youāre right. Itās a very messy situation.