#gunwant_dev-orders-tax

1 messages · Page 1 of 1 (latest)

primal wedge
#

Hey, can you clarify what you mean by:

How can I apply one TAX on all product line items total?

#

I don't think that's possible, you need to apply a rate per line item and a total is computed

wide quiver
#

In the orders API, we can add multiple line_items like

const order = await stripe.orders.create({
  currency: 'usd',
  line_items: [
    {product: 'prod_Lo4g3M5YKF8AoB', quantity: 10}, // 5 * 10 = 50
    {product: 'prod_Lo4g3M5YKF8XYZ', quantity: 5}, // 7 * 5 = 35
  ], // 50 + 35 = 85
  payment: {
    settings: {payment_method_types: ['card']},
  },
  expand: ['line_items'],
});

How can apply TAX on product total, not in a single product?

primal wedge
#

You can't, as I explained. You'd add tax_rates on a per line item basis

wide quiver
#

Do you mean it's not possible ?

primal wedge
#

Correct

wide quiver
#

Okay

primal wedge
#

What do you mean?

wide quiver
#

Please check I have share one link.

#

Is it similar to tax?

primal wedge
#

Those are tax IDs relating to your customer (for invoicing/receipts), not tax rates for the products

wide quiver
#

Okay

#

Thank you

#

Nice to talk with you

primal wedge
#

Np!