• Resolved gdcnb

    (@gdcnb)


    hello,

    i am trying to create orders with rest api

    Is there a way to specify items price total with tax included ? When the order is created, tax is calculated on and added to the price i have specified.

    As we get the price tax included from products endpoint, i do not understand why we should create corresponding orders tax excluded

    thank you in advance for your response

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @gdcnb,

    When creating orders with the REST API, the system calculates tax based on the product price you specify. The tax is then added to this price. This is because WooCommerce is designed to follow the standard practice of specifying prices without tax, and then applying tax based on the customer’s location and tax rules.

    However, if you want to create orders with the total price including tax, you can do so by adjusting the tax settings in your WooCommerce settings.

    You can set your store to display prices inclusive of tax. This way, the price you specify when creating orders via the REST API will be treated as the total price, including tax.

    To do this, navigate to WooCommerce > Settings > Tax, and select the option “Yes, I will enter prices inclusive of tax”.

    I hope this clarifies your concern. If you have any other questions, feel free to ask.

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create orders VAT included’ is closed to new replies.