#Gautam
1 messages · Page 1 of 1 (latest)
Hey there
yes
You are usiong the InvoiceItem retrieve endpoint here
Instead of the Invoice retrieve
okay thanks trying with that one
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?
You can't get the Invoice Hosted URL because the Invoice hasn't been created yet so it doesn't yet exist
Okay thanks for the clarification.