#Voltone

1 messages · Page 1 of 1 (latest)

quiet duneBOT
glacial path
#

Can you share the invoice item id and the invoice id?

honest oar
#

Sure one moment

#

item id: ii_1M05SBKWqxTFrzeAv0wKSMbQ

The invoice never gets created as I get the response:
{"error":{"code":"invoice_no_customer_line_items","doc_url":"https://stripe.com/docs/error-codes/invoice-no-customer-line-items\",\"message\":\"Nothing to invoice for customer","param":"customer","request_log_url":"https://dashboard.stripe.com/logs/req_a4Q7RReZ28nFpm?t=1667489740\",\"type\":\"invalid_request_error\"}}"

Learn more about error codes and how to resolve them.

glacial path
honest oar
#

req_a4Q7RReZ28nFpm

glacial path
#

Can you retry the request again? The timestamps of the invoice item creation and invoice creation were close together. Wondering if this is a race condition issue

honest oar
#

Sure thing

#

Seems like a similar issue

#

interestingly it only happens for this specific item I create

#

Ive got examples of where its worked if that would help?

drifting atlas
#

👋 stepping in as codename_duchess needs to step away

#

GIve me a moment to take a look

#

Hmm in your other examples are you using a GBP price?

#

I think the issue is that you have a Eur Customer but using GBP invoice items.

#

Can you try creating a new Customer that doesn't have any Eur invoices yet and then try again with the GBP invoice item?

honest oar
#

Sure thing!

#

Bare with me!

honest oar
#

Hiya, yes the request worked when I only requested Gbp invoice items

#

It is an edge case that a customer may pay an EUR invoice and then a GBP invoice

#

Is there any way I can account for this scenario?

#

Perhaps updating the currency on the customer before creating the second invoice?

drifting atlas
#

You would want to create another Customer object in that scenario.

#

Unfortunately you can't update the currency on a Customer

#

Once the first invoice is triggered, the currency is set and immutable

honest oar
#

Ah okay so check for a currency mismatch and if so create another customer?

drifting atlas
#

Yep exactly

honest oar
#

got it, thank you for that!