#adr_api

1 messages ยท Page 1 of 1 (latest)

daring daggerBOT
#

๐Ÿ‘‹ 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.

hollow robin
#

๐Ÿ‘‹ 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

slim drift
#

can this be done from the subscription schedule call though? e.g., we dont create subscription but sub schedules

#

this doesnt occur for me

hollow robin
#

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?

slim drift
#

would you prefer a real customer or test?

hollow robin
#

test

slim drift
#

sub_sched_1SNf5ODOXupAeHf4QVNUg63M

#

here is the metadata associated to the sub schedule.

hollow robin
#

taking a look, please give me a second

slim drift
#

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.

daring daggerBOT
hollow robin
#

ok, the reason you're not seeing the metadata where I'm telling you is because your webhook endpoint is still using accacia

hollow robin
slim drift
#

if i update that, will all my existing subscriptions pull metadata across when new invoices get generated?

vagrant current
#

Taking over here, catching up

slim drift
#

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.

vagrant current
#

To confirm, you want metadata from the schedule's phases to be set on the generated invoices?

slim drift
#

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.

vagrant current
#

That does seem to be happening already. Here's an example:

vagrant current
slim drift
#

Ah i see, so it wont set to this metadata, but subscription_details

slim drift
#

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

vagrant current
slim drift
#

i actually love stripe, ive never seen this level of dev support.

#

thats all I needed, thank you so much.

vagrant current
slim drift
#

thats okay, this is plenty for me to think about - Sigma is low impact, I can just connect other tables to derive this.

#

enjoy your evening / morning!!