#adr_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1483747379516674151
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
from the subscription the metadata will be copied to the invoice line items
and you can also see it on the invoice's parent.subscription_details.metadata
can this be done from the subscription schedule call though? e.g., we dont create subscription but sub schedules
this doesnt occur for me
yes from SubSched.phases to Sub, from Sub to Invoice.parent.subscription_details, and from Sub to Invoice Line Items
would you mind sharing the subscription schedule ID?
would you prefer a real customer or test?
test
sub_sched_1SNf5ODOXupAeHf4QVNUg63M
here is the metadata associated to the sub schedule.
taking a look, please give me a second
no worries, incredible service stripe provides here
thank you so much for your time
i think i understand what you mean, after the first phase passes it'll apply this metadata to the invoices?
is there then a way to set metadata on the first subscriptions generated by a sub sched altogether before this first phase hits.
ok, the reason you're not seeing the metadata where I'm telling you is because your webhook endpoint is still using accacia
you can always update the subscription, even if it's managed by a subscription schedule
if i update that, will all my existing subscriptions pull metadata across when new invoices get generated?
Taking over here, catching up
thank you so much @hollow robin
wishing a pleasant evening/morning
for context im a BA that doesnt actually have code access, just need to write some clear requirements for the devs so trying to understand all of this.
To confirm, you want metadata from the schedule's phases to be set on the generated invoices?
any method to set the metadata on generated invoices, that were generated by a subscription, on subscriptions that were generated by a subscription schedule
whether its from the sub sched down, or phases, irrelevant, we can restructure our code.
based on what tarzan said, i will look into the api version.
That does seem to be happening already. Here's an example:
- Your code sets
phases[0][metadata]here on schedule creation: https://dashboard.stripe.com/acct_1RO90xDOXupAeHf4/test/logs/req_XlqFLuGX2rx0ei - The schedule ultimately creates this sub:
sub_1SjmAjDOXupAeHf4blo9yKeA - The most recent invoice generated for the sub,
in_1T5tEhDOXupAeHf45tRVS2Y0, has the corresponding phase metadata set in thesubscription_detailshash. This is evident in a relatedinvoice.*event, like this one: https://dashboard.stripe.com/acct_1RO90xDOXupAeHf4/test/events/evt_1T5uBgDOXupAeHf4WSTWp6DZ
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I don't think you need to change your API version at all. How are you trying to retrieve these properties? Via an API request, in a webhook event?
Ah i see, so it wont set to this metadata, but subscription_details
Sigma, and yes a webhook event occasionally
Alright, I think i understand - we can amend the phases to have the correct metadata from our system upon creation and this will flow down to invoices under subscription_details
Let's ignore the Dashboard for now, but yes I think that section will refer to the metadata set directly on the invoice. The metadata you're referencing is set indirectly via the sub
i actually love stripe, ive never seen this level of dev support.
thats all I needed, thank you so much.
I don't think this is available at all via Sigma :/