#talker-subscription-metadata
1 messages · Page 1 of 1 (latest)
talker-subscription-metadata
Hey @young moat I don't think it's possible but let me look to make sure
Oh there's https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-phases-metadata that is public
I think that's what you want, can you try?
yes, that is actually what we are currently setting now
so what's the problem?
var o = new SubscriptionScheduleCreateOptions
{
Customer = customerId,
StartDate = startDate,
Phases = new List<SubscriptionSchedulePhaseOptions>
{
new SubscriptionSchedulePhaseOptions
{
CollectionMethod = collectionMethodString,
// InvoiceSettings = new SubscriptionSchedulePhaseInvoiceSettingsOptions()
// {
// DaysUntilDue = daysUntilDue
// },
ProrationBehavior = "none",
Items = phaseOptions,
},
},
Metadata = new Dictionary<string, string>()
{
{"AffiliateId", affiliateId.ToString() }
}
};
this is the code we used last year, and I am going back into the subscriptions and I don't see any subscriptions with the affiliateId.
all of the subscriptions in here should have been created from this code here.
ah yeah you read too fast 🙂
no metadata
you're setting metadata top-level on the Schedule itself. The link I gave you is for the Metadata option/parameter inside the phases array
yeah we shipped this recently enough
got it, this is perfect thanks