#worming_api

1 messages · Page 1 of 1 (latest)

quaint frigateBOT
#

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

📝 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.

pseudo linden
#

hello! handling a few threads atm but i'll get back to you asap

pliant fern
#

ok

pseudo linden
#

ok, sorry for the delay - still juggling a few things but want to at least get moving on this

#

just want to sanity check - you're concerned because the preview invoice automatically includes information from an upcoming subscription payment for that customer?

pliant fern
#

correct, i just want to get a one-time invoice with the items that i sent in the request

#

and if we include a discount coupon, the one-time invoice should include the discount

#

I’m using that endpoint via HTTP request because the InvoiceService.Upcoming endpoint does not work with one-time invoices. I read in the docs that I can use the createPreview endpoint to generate a one-time invoice not related to any subscription. I implemented the HTTP request because we are currently using an old SDK that does not include the createPreview method

pseudo linden
#

makes sense! the problem is pretty clear, let me do some digging

quaint frigateBOT
wise latch
#

Hi, taking over as my teammate needs to step away. Let me catch up.

pliant fern
#

ok

wise latch
#

Which document are you referring to? We have specific modes you can pass, https://docs.stripe.com/api/invoices/create_preview#create_create_preview-preview_mode but there is not one-off mode so that would not work. As a work around, you could programatically ignore the line-items that belong to a recurring price.

if you can share where you read 'I read in the docs that I can use the createPreview endpoint to generate a one-time invoice not related to any subscription.' I'm happy to further look here and test

pliant fern
wise latch
#

Where exactly, can you point me there please?

pliant fern
#

the first paragraph

wise latch
#

That has subscriptions thought:

Item 1: 299 USD one-time service fee
Item 2: 29 USD repair material A
Item 3: 99 USD repair material B
Item 4: 49 USD per month support plan

pliant fern
#

then you have another paragraph saying "Preview invoices with subscriptions"

wise latch
#

if you already know that information when you create the invoice, why would you want a preview?

#

That is if you want to omit the one-time fees

#

And only look at subscriptions

pliant fern
#

because i want to avoid having to pull the coupon, and then applying the discount

#

but i guess i will have to do it

wise latch
#

That is not currently supported as you're passing all that information on your end to know what that would be.

pliant fern
#

ok, it makes sense... im not sending the priceId

#

ok thx