#ddbg

1 messages ยท Page 1 of 1 (latest)

supple tundraBOT
carmine flax
#

Hello ๐Ÿ‘‹
I don't think there's a built in way to do this unfortunately.

If you really need the metadata to be present on the invoice object itself then you can listen to invoice.created webhook event and expand the subscription property to look at the invoice.subscription.metadata and then use the Update Invoice API to update the metadata on the invoice
https://stripe.com/docs/api/invoices/object#invoice_object-subscription

If you only care about the metadata and not really need to have it on the invoice object then you can retrieve the invoice and expand the subscription to look at the subscription's metadata

grizzled condor
#

Hey @carmine flax thank you for your reply! But the thing is I prefer to not add a metadata every month (our product renewal is every month), is there a way to not update every month?

carmine flax
#

Gotcha in that case you'd want to go with Option 2 above

If you only care about the metadata and not really need to have it on the invoice object then you can retrieve the invoice and expand the subscription to look at the subscription's metadata

heady sonnetBOT
livid minnow
#

@grizzled condor Re-opened your thread. Can you explain a bit about what you don't understand?

grizzled condor
#

Hey @livid minnow thank you very much!

#

the initial need is, for our inner business reportings, we need to know for what products the customer is client (there are several products), how (or where) can we add a metadata to specify what product is bought, once we import every month/week/day all the payments we received

livid minnow
#

Gotcha. Thinking on that.

#

Is the end goal still to have this metadata showing on the invoice?

#

If you set this metadata on the subscription itself, its metadata will get copied on to the invoice item representing that subscription on the actual inboice

grizzled condor
#

will it be copied for every incoming invoices? If yes that's the solution I guess!

livid minnow
vast narwhal
#

hello thanks for opening the thread

#

i have a question regarding the solution

#

will the metadata be available in the payout reporting please ?

#

the export

#

we only have the userId meta data, here an example :

#

our accounting service has pb matching the payouts with those info, we'd like to ad more in it so they dont have to look in stripe dashboard

silk finch
#

๐Ÿ‘‹ happy to help

#

just give me a few minutes to catch up

silk finch
#

sorry for keeping you waiting

silk finch
#

I'm looking into this

#

sorry I think I might have completely misunderstood the Q and was barking off the wrong tree here

#

what you're looking for is the metadata of the subscription in the payout?

vast narwhal
#

yes please

#

hi @silk finch

#

no pb !

#

i have also another question but i think i already have the answer
is it possible to change the payout label (displayed in the bank account) please ? (different for each transaction)

safe girder
#

as in the text that appears on the recipient bank statement when the Stripe payout arrives to them?

#

not sure what you mean by "different for each transaction" since a payout generally consists of multiple transactions so I don't see how you could have the limited one-line bank statement information capture that.

vast narwhal
#

ah okay we thought that for each payin a payout is generated & then 1 baking transaction

#

thanks for the explanation
regarding my first question is there any solution please ?

#

we're looking for the subscription metadata in the payout

safe girder
safe girder
safe girder
vast narwhal
#

we would like to add it into the stripe document available for download

#

when we click on the export button]

safe girder
#

the only options are whatever are in the export popup on that page

#

anything beyond that is not possible really and you'd have to call the API to build up whatever you need or look into generating reports

vast narwhal
#

how the userId metada is in the reeporting please ?

#

where is it pulled from ?

safe girder
#

which userID are you referring to exactly?

vast narwhal
#

metadata

#

if you click on export

safe girder
#

I cna't do that unfortunatelty as it would require access to your account and this is not accont-specific support

#

it's for developer coding questions

vast narwhal
#

it is a developer coding question

#

im wondering how the metadata is filled in the payout reporting so i can add more

safe girder
#

it's an internal CSV we generate

#

if you want to generate your own report on transactions within a payout then these links would be good starting points

vast narwhal
#

thanks for the links
Unfortunately the accounting uses only stripe :/

#

where do you retrieve the data of the csv

#

so i can insert metadata please

safe girder
#

it comes from the metadata on the customer object e.g. cus_Lmzek5iaA9EDRp

vast narwhal
#

ah okay

#

so it's not possible to also add the subscription metadata in the payout ?

safe girder
#

no