#prerak-theCirqle
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Invoice items have tax_behaviour parameter you can use
https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-tax_behavior
Ah I see. Missed it. Thanks for the reference.
The invoice that is generated in test mode, I do not see the tax calculations. Is this expected?
Umm not sure, can you share the example request?
Sure.
Invoice creation:
const newInvoice = await createInvoice({
customer: stripeCustomerId,
auto_advance: false,
collection_method: 'send_invoice',
days_until_due: 7,
pending_invoice_items_behavior: 'include',
automatic_tax: {
enabled: true,
},
});
Invoice item creation:
const newInvoiceItem = await createInvoiceItem({
customer: stripeCustomerId,
invoice: newInvoice.id,
amount: applicationDetails.bidWithFee * 100,
description: `Creator - ${applicationDetails.Blogger.fullName}`,
tax_behavior: 'exclusive',
});
I can see the invoice with the item in dashboard, but nothing related to tax.
Here is the invoice id in case it is helpful: in_1NL4qTJfDrXXnmWjKLlVr3XW
I already have a registration in Netherlands
The invoice was created before I did the registration. let me try with a new one.
๐