#archmaze-credit-notes
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- archmaze., 43 minutes ago, 13 messages
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
request_log_url: 'https://dashboard.stripe.com/test/logs/req_0CEyz7vPS9ysZo?t=1703092696',
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
req_0CEyz7vPS9ysZo
Thanks, looking
๐ @gusty notch
https://stripe.com/docs/invoicing/integration/programmatic-credit-notes#paid-invoices
Since the invoice is in paid status, you also need to specify the amount
along with quantity ?
ok
You may only specify one of these parameters: amount, quantity. ... getting this error so i'm gonna try with amount only
๐
The sum of credit amount, refund amount and out of band amount ($0.00) must equal the credit note amount ($720.00) getting this now
can you share the request ID?
const creditNote = await stripe.creditNotes.create({
invoice: invoice.id,
lines: invoice.lines.data.map(lineItem => ({
type: 'invoice_line_item',
invoice_line_item: lineItem.id,
amount: 72000
})),
});
this is my code sample
req_Ia3uuUQk124c0j
oh the amount needs to be a sibling parameter to lines and not part of the lines
invoice: '{{INVOICE_ID}}',
lines: [
{
type: 'invoice_line_item',
invoice_line_item: '{{INVOICE_LINE_ITEM}}',
quantity: N,
},
],
refund_amount: xxx,
});```
ok let me try it
did that work? @gusty notch
yes it did.. but i thought with credit note it won't charge for new subscription....
but it's basically charging the customer and refunding
What are you trying to do exactly? What's the usecase here?
i'm letting user to pay uncollectible invoice and after they pay the invoice i called a webhook and create a new subscription
So are you trying to use credit notes to offset the cost of the new subscription?
yes
๐ hopping in here since hanzo has to head out soon - am I understanding correctly that your goal is for some of the funds from the now paid, uncollectible invoice to be automatically applied towards the cost of the new subscription?
archmaze-credit-notes
yes it is