#Ravg
1 messages · Page 1 of 1 (latest)
Hi there,
The quantity must be greater than 1 in fact yes. But let me check the invoiceId, do you have the requestId of the retrieve you did on that invoice ?
I don't have the request ID of the retrieve as that request doesn't show in the Logs page, only the one that tries to create the note. Is there another way to find that ID other than Logs?
The credit note request ID is req_3iV9DMI4MalLT6
Now I'm wondering if I should specify only the line items where quantity is not 0 🤔
Adding only the line item with quantity>0 doesn't work either. I get the error "Request req_eO8CIMVi869Lk8: The amount of all credit note line items must be greater than 0. The value for invoice line item il_1LhbtcIHkzU3FsNm7vgKRbwP is €0.00 eur."
The thing is that the AMOUNT is in the first line item (which has quantity=0), and the QUANTITY is in the second line item (which has AMOUNT=0).
So adding both line items doesn't work, nor adding one or the other line item
I found the retrieve request ID: req_ACdK4WAJBRra0g (there was a filter applied in the Logs xD)
You can find the GET request in your dashbord logs page, here is an example url
https://dashboard.stripe.com/test/logs?method[]=get&direction[]=self&direction[]=connect_in
Yes, I just found it: req_ACdK4WAJBRra0g
Thanks for sharing, so, let me check
Thank you
I'm seeing that you are using a flat rate price: You are having two line in that invoice:
- the first line item
sli_19623eIHkzU3FsNm04b138adwhich reflect to 500 quantity with amount zero as you are starting to charge your customer by unit above 100001 quantity for 0.0.2€ => 500*0€ = 0€ - the second line item
sli_1f78b6IHkzU3FsNmffe0707dreflect the flat rate amount wich is 199€ (quantity between 151 and 500) the quantity is zero but the amount of the line item is flat and not by unit, that's why the total invoice at the end is 199€ but the quantity is yet zero (there is no related price by unit)
Right
But then how can I create a credit note with the amount of 199 for that invoice? I tried 3 different ways:
- adding both line items: fail
- adding only the first line item: fail
- adding only the second line item: fail
So there's no other line item ID to set other than those 2...
Oh I got it!
It worked when I added only the second item, but instead of setting "quantity" for that line item I set only the "amount"
yes you can do that in fact as you are using flat rate prices
That will solve the problem 🙂
Thank you very much!