#mentijm-invalid-request

1 messages · Page 1 of 1 (latest)

covert sandal
#

Hi there 👋 I'm happy to take a closer look, could you share the request ID of the request that returned the error?

gritty cradle
#

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?

covert sandal
#

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.

gritty cradle
#

Hmm, its wierd

#

Because it seems both: in_1LcUYMLLAsLlRiDeW2Um1G7K & in_1LcUXxLLAsLlRiDe7M8uyeRn got a corresponding credit_note

covert sandal
#

Ah, sorry, yes I do. I see that line item is present.

gritty cradle
#

So we get the error but the call actually succeeds?

covert sandal
gritty cradle
#

That's the one without proration

#

What about: in_1LcUYMLLAsLlRiDeW2Um1G7K

covert sandal
gritty cradle
#

Hmm ok, so both are created by successful requests?

#

Where's that error coming from. hehe