#mp_api

1 messages ¡ Page 1 of 1 (latest)

jaunty cloakBOT
#

👋 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/1348657480862797895

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

lone burrow
#

The question is why 0.00 invoice got generated

#

Was the other request probably in error hence the invoice is 0

calm sorrel
#

Hi, both of these requests were created from your code. What is the invoice id?

lone burrow
#

in_1PivKbJqE5f9ucQhqWEs8j0L -> charged
in_1PivKrJqE5f9ucQhpFxXylQA -> 0

calm sorrel
#

Taking a look

#

The reason why you see a $0 invoice is because of prorations, https://docs.stripe.com/billing/subscriptions/prorations

You're making two requests at around the same time to update the subscription. Since the invoice from this update, https://dashboard.stripe.com/logs/req_36vRofDctbcs6X is already charged just a second prior and the second request to update the subscription for the same amount, it prorates and no payment is due: https://dashboard.stripe.com/logs/req_2BYSN9ELtjnnXG

You should debug your code to better undrerstand why you're sending the same request twice within seconds.

calm sorrel
#

@lone burrow are you still here?

lone burrow
#

Hi, sorry. Going through your message

calm sorrel
#

Sure

lone burrow
#

We are aware that a second request happens but it is usually with an empty body for eg: req_GeJCn9WD83ZsWd

#

But this wasn't

calm sorrel
#

Why are you making a second request in the first place?

#

You will need to debug your code on your end