#andrew.cai
1 messages · Page 1 of 1 (latest)
Do you plan to create the Invoice using Dashboard or API?
api
You may refer to the guide here: https://stripe.com/docs/invoicing/integration
I already know the operation of the dashboard
There's an error.
Nothing to invoice for customer
Can you share the request ID (req_xxx) where this error occurred? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_bDpEi1qIN3nhUL
I see that you're using API version 2020-08-27 when creating an invoice in https://dashboard.stripe.com/test/logs/req_bDpEi1qIN3nhUL. In API version 2020-08-27, the invoice item has be added to the customer first, then create the invoice.
I'd recommend upgrading your API version to latest 2022-11-15, so that you can create the empty invoice first, then add invoice item to it.
You may follow this guide for upgrading the API version: https://stripe.com/docs/upgrades#how-can-i-upgrade-my-api
will the upgrade affect the interfaces I have previously docked
like Subscription、 Payment method
It will not affect the Subscription or Payment Method created. It will only affect the API behaviour
I'd recommend testing out the new API version with Stripe-Version header in your code in test mode if there's any impact to your current changes
If the behaviour remains the same, then upgrading to new version will work fine
Ok, I'll try it first, and ask you if I have any questions
Sure, no problem!
You can add //@ts-ignore to bypass typescript check
😥 ok
What is the charge
req_f4dWwCSIFUb3Qk
Here is another error
Also help me to see
The error I encountered when creating the payment method.
The SetupIntent has already confirmed successfully in https://dashboard.stripe.com/test/logs/req_0ZfCMOB3h9Olcv, but you tried to confirm the successful SetupIntent again in https://dashboard.stripe.com/test/logs/req_f4dWwCSIFUb3Qk
Does it mean to repeat the request?
Yup! Your frontend submitted the requests multiple times
ok i got it