Hello, Im facing with issue about free trial subscription,
- question, how to I get info when trial period ends, because my subscription flow in Nodejs project depend on subscription end data, which is next_charge_date in normal flow, in webhook im reciving pledge_relationship_start and Im manually add 7 days to it,
{
attributes: {
campaign_lifetime_support_cents: 0,
currently_entitled_amount_cents: 500,
email: 'xxxxxxxx@privaterelay.appleid.com',
full_name: 'xxxxxxx',
is_follower: false,
is_free_trial: true,
last_charge_date: null,
last_charge_status: null,
lifetime_support_cents: 0,
next_charge_date: null,
note: '',
patron_status: 'active_patron',
pledge_cadence: null,
pledge_relationship_start: '2023-11-19T16:32:51.000+00:00',
will_pay_amount_cents: 0
},
id: 'xxxxxxxxxxxxxx',
relationships: {
address: { data: null },
campaign: { data: [Object], links: [Object] },
currently_entitled_tiers: { data: [Array] },
user: { data: [Object], links: [Object] }
},
type: 'member'
}
how to get same data in https://www.patreon.com/api/oauth2/v2/campaigns/${campaignId}/members
endpoint
its return data wihtout any inforramtion when this trial ends
{
attributes: {
currently_entitled_amount_cents: 100,
full_name: 'xxxxxxxxx',
is_follower: false,
last_charge_date: null,
last_charge_status: null,
lifetime_support_cents: 0,
patron_status: 'active_patron'
},
id: 'xxxxxxxxxxxxxx',
relationships: { address: [Object], currently_entitled_tiers: [Object] },
type: 'member'
},
- next questinon, why Im not reicieve any webhooks, or any field in check subscription endpoint which indicate that user canceled free trial, even in my personal profile im getting this info, that user canceled his trial or subscription
and how do I get this info???