#Voltone
1 messages · Page 1 of 1 (latest)
Can you share the invoice item id and the invoice id?
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\"}}"
Can you share the request id for that invoice creation api call? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center 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.
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_a4Q7RReZ28nFpm
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
Sure thing
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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?
👋 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?
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?
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
Ah okay so check for a currency mismatch and if so create another customer?
Yep exactly
got it, thank you for that!