#Bas
1 messages · Page 1 of 1 (latest)
"end_behavior": "release",
"start_date": "1697714055",
"phases": {
"0": {
"items": {
"0": {
"price_data": {
"recurring": {
"interval": "month",
"interval_count": "1"
},
"product": "prod_O2SzdFkZ9H1DQI",
"currency": "EUR",
"unit_amount_decimal": "995"
},
"quantity": "1",
"metadata": {
"user": "624004",
"identifier": "premium"
}
}
},
"collection_method": "charge_automatically"
}
},
"customer": "cus_OI8TFWE75vWf1x"
}```
I don't get any metadata out of it when I retrieve the schedule later.
Where are you expecting to see themetadata?
Whats the sub_sched_xxx ID?
My guess is because that phase hasn't started, so the metadata hasn't been set on the associated Subscription item:
Set of key-value pairs that you can attach to an item. Metadata on this item will update the underlying subscription item’s metadata when the phase is entered.
https://stripe.com/docs/api/subscription_schedules/object#subscription_schedule_object-phases-items-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The weird thing is: the list of subscriptions is empty for this user
when I'm having a subscription schedule with 1 phase with 1 item starting in the future
even if I filter on status=all