#Gautam

1 messages · Page 1 of 1 (latest)

stiff gyroBOT
vast karma
#

Hey there

fading ice
#

yes

vast karma
#

You are usiong the InvoiceItem retrieve endpoint here

#

Instead of the Invoice retrieve

fading ice
#

okay thanks trying with that one

fading ice
#

Hey Actually I want the upcoming invoice so that I can attach it into the custom email which I am sending it manually.
const invoice = await stripe.invoices.retrieveUpcoming({
customer: trialEndObj.customer,
});
I tried with above one, but there is no invoice_hosted_url is there.
How can I get?

vast karma
#

You can't get the Invoice Hosted URL because the Invoice hasn't been created yet so it doesn't yet exist

fading ice
#

Okay thanks for the clarification.