#Rango-invoice
1 messages · Page 1 of 1 (latest)
Hi 👋 can you share the ID of the Invoice that you're referring to so I can take a closer look at what you're describing?
I'm not sure what that means
i created invoice on the stripe test
I'm going to need more information about what you did in order to know whether the behavior you're describing is expected. Did you create an Invoice using a Price that had a zero-dollar amount? You said that you did this via the API, can you share the IDs of the requests that you made?
how can i create invoice with price using stripe api?
const invoiceItem = await stripe.invoiceItems.create({ // You can create an invoice item after the invoice
customer: customer.id,
price: PRICES,
quantity: 1,
});
console.log('create an invoice');
// Create an Invoice
const invoice = await stripe.invoices.create({
customer: customer.id,
collection_method: 'send_invoice',
days_until_due: 30,
});
console.log('Send the Invoice');
// Send the Invoice
await stripe.invoices.sendInvoice(invoice.id);
console.log('success');
});
Is PRICES a variable that contains the ID of a Price object?
yes
const PRICES = "price_1LUrWWEyI1uCzhx3hplQVSEX";
That all looks pretty normal then, can you share the ID of the zero-dollar Invoice that you said this created?