#Rango-invoice

1 messages · Page 1 of 1 (latest)

graceful anvil
#

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?

dry oyster
#

hi

#

i used test version

graceful anvil
#

I'm not sure what that means

dry oyster
#

i created invoice on the stripe test

graceful anvil
#

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?

dry oyster
#

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');

});

graceful anvil
#

Is PRICES a variable that contains the ID of a Price object?

dry oyster
#

yes
const PRICES = "price_1LUrWWEyI1uCzhx3hplQVSEX";

graceful anvil
#

That all looks pretty normal then, can you share the ID of the zero-dollar Invoice that you said this created?