#wendy
1 messages · Page 1 of 1 (latest)
Hi, I was just looking at this today and I do not think this is possible. However, let me confirm and look thoroughly again.
thanks!
Yeah, you can pass the invoice line item: https://stripe.com/docs/api/credit_notes/create#create_credit_note-lines-invoice_line_item and what you're trying to do is not an option.
i want to apply the creditNote of another product of the invoice that I want to reduce the amount of
You could use type: 'custom_line_item' and pass an amount
but even with that, i don't see a way to indicate the product of the credit note
If you need to tie this to a specific product, you can then pass in that product id in the metadata: https://stripe.com/docs/api/credit_notes/create#create_credit_note-metadata.
ok thanks, it would be the same thing i have to do with -ve amount invoice line item approach, i.e. by adding metadata
Yes!