#ddbg
1 messages ยท Page 1 of 1 (latest)
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
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?
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
This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
@grizzled condor Re-opened your thread. Can you explain a bit about what you don't understand?
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
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
will it be copied for every incoming invoices? If yes that's the solution I guess!
Yes, the subscription metadata should show up on the invoice item that represents it on each invoice it is in. Also to clarify, this metadata won't be on the top level of the invoice, it will be in an invoice item object that you can find within the Invoice's lines array
https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-metadata
https://stripe.com/docs/api/invoices/object#invoice_object-lines-data
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 :
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
sorry for keeping you waiting
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?
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)
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.
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
no. By default we generate a daily payout once a day with all your payments in it.
not really, if it's for your own account we just send a transfer and the descriptor is something like "STRIPE"
you generally reconcile by matching the date of the payout and the amount, that you see on your bank statements, to the Payout object po_xxx in the API
we would like to add it into the stripe document available for download
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
when we click on the export button]
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
which userID are you referring to exactly?
the one in the reporting
metadata
if you click on export
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
it is a developer coding question
im wondering how the metadata is filled in the payout reporting so i can add more
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
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
it comes from the metadata on the customer object e.g. cus_Lmzek5iaA9EDRp
no