#hanh-le_unexpected
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1345962709753139200
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- hanh-le_api, 6 days ago, 9 messages
What editor do you use generate / update the csv file? Is it excel, apple number… etc?
If you’re using any of the editor above, could you try raw text editor to generate the content? It sounds like the editor might be populating the decimal (.00 behind the integer) even though it is set to integer
I used VSC to edit the sample csv file
It did not show any .00 in VSC though, just tried with BBEdit on Mac and also the same error
Do you need the file to check? I can give you that, it's in test anyway
Sure! It'll be helpful to share the sample file, so that I can test it out
1 is the sample I downloaded from Dashboard, only add the customerid, the headers are auto-generated so, not a problem I think
2 is the error file I got
Thanks!
if i put the line break after the second line, the decimal error will go away
this is the file i tried
I still got the same issue with the file you sent above
This is strange. Could you manually put a line break in your original file and try it out again?
All failed, fyi, the same errors
Hi there, did you use this exact file? The error message mentioned about 31 but this file is 26
Yes I used the exact file, the number is different because I got it from a sample downloaded previously. But still, I only downloaded sample file from Dashboard, add a customer id to it (tried with VSC, BBEdit) then import, also used the file river sent me above
Can you use a simpler eidtor like the TextEditor on Mac, or vim if you use terminal?
both not work
That that's weird. Can you screenshot the error?
It's the same error with the decimal payload I sent above. In case you can check, here is the event: evt_1QySm0CGh2E5KNbVorioImdH
I tried this with Mac TextEditor
Sure let met try in a couple of minutes
Hi! How's everything?
Umm I tried and can rerproduce what you are seeing. Trying to get around it too
Thanks for your patience and report
hi! I'm taking over this thread.
Thanks, same issue as described above, if you need any more info, let me know
Yes, looking into this
okay, looks like you found an issue in the Dashboard. However we on Discord don't know much about the Dashboard (we help with API questions).
so I recommend you to directly ask that question to Stripe Support: https://support.stripe.com/contact
Make sure to include all the relevant information (screenshot, video, test file, etc.)
Okay got it, anyway I have the second question of my reported meter (manually) not showing up in the subscription/invoice
For specifically, I have draft invoices created on 1st March, and need to import the file backdate to 28th Feb so I can include them in that invoice if possible, they were successfully added, but I dont see them anywhere
Any reasons you might know?
can you share more concrete information? Somehting like:
- For Subscription sub_xxx
- I added a usage on XX
- However when I check Invoice in_xxx, I don't see it
sorry for the delay, we are looking into this
there are 2 usage events that have a timestamp prior to the subscription start date
that's why they're not showing in the upcoming invoice
I dont see them in current (draft invoice) eitheir, any way I can include them?
you can but you need to change the timestamp to be within the current period
By changing the timestamp do you mean I call a meter event adjustment?
no that would only let you cancel the old one
you need to create a new usage event but change the timestamp you used the first time
So those 2 are lost or some thing?
in a sense yes
okay, i'll try it
one question, is there any way I can set an automation/work around for this?
I have product A and product B in the subscription
I dont want to bill any invoices if the Product B quantity is 0, no matter how many A it has?
let me wrap my head around this for a second
I don't think that's possible
is this related to usage?
would you mind describing your use case so I could think about what options you have?
Okay, so I have subscription that includes product A and product B
- Product A is like the number of user
- Product B is like the item that they use in the system (there are 2 type of pricing as well, 1 is monthly recurring and 1 is usage-based)
I want to apply a logic somewhere that allow me to NOT generate invoice/or automatically void invoices that have 0 quantity of product B in it, since it's not right if the users are there but they dont use anything
So, If product B is 0 -> no invoice/or something equivalent (no matter if A exists),
Otherwise, bill as normal
I think you should update/change your pricing model
You should modelize the products and prices in a way that illustrate the number of items used per user
You can track the number of users in metadata or your database
I see, will take a look at that. Thank all guys!