#mentijm-invalid-request
1 messages · Page 1 of 1 (latest)
Hi there 👋 I'm happy to take a closer look, could you share the request ID of the request that returned the error?
One sec
Hmm, don't know if I have that
We're reacting to a charge.refunded webhook (evt: "evt_3LcUXyLLAsLlRiDe11HrzlCj") and there triggering a CreditNote.create which yields: error.kind="Stripe::InvalidRequestError" error.message="The credit quantity of 1 for invoice line item il_1LcUXxLLAsLlRiDeMLR5WZr6 exceeds the limit of 0 units."
Does that help you?
It might, let me see if I can track down the bad request from that.
Looking at the Invoice that you're trying to issue a Credit Note for, I'm not seeing an Invoice Line Item with that ID on that Invoice.
Hmm, its wierd
Because it seems both: in_1LcUYMLLAsLlRiDeW2Um1G7K & in_1LcUXxLLAsLlRiDe7M8uyeRn got a corresponding credit_note
Ah, sorry, yes I do. I see that line item is present.
So we get the error but the call actually succeeds?
I'm seeing that this successful request created a credit note for that invoice:
https://dashboard.stripe.com/test/logs/req_tpoTl6sehmGxZe
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Had a credit note created by this request:
https://dashboard.stripe.com/test/logs/req_sBgaHDR8dXAqmr
You can see the list of requests that adjusted an object in the Stripe dashboard in the logs section:
https://dashboard.stripe.com/test/invoices/in_1LcUYMLLAsLlRiDeW2Um1G7K