• Resolved stijnetje

    (@stijnetje)


    Hi,
    Is this this plugin also working together with orders placed through the woocommerce REST API?
    Many thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author David Anderson

    (@davidanderson)

    Please can you explain specifically which features you are referring to? Some of them don’t make any sense in a REST API context.

    Thread Starter stijnetje

    (@stijnetje)

    hi,
    we prepare orders for customers through REST API.
    but we want woocommerce to apply the EU Tax rules:
    – in case of a customer from another EU country: no VAT needed if verified VAT/location of customer is “confirmed”.
    – in case of a customer of my country: VAT needed
    Looking forward for your answer & many thanks in advance

    Plugin Author David Anderson

    (@davidanderson)

    This plugin does not calculate taxes (whether over REST, or at the checkout). That is done by WooCommerce core, according to the tax tables you set up – https://docs.woocommerce.com/document/setting-up-taxes-in-woocommerce/ . The only input that the plugin has is to mark a customer as VAT-exempt at the checkout if a valid number is supplied (and if the settings are set accordingly). The plugin itself does not have a REST interface. You would need to yourself decide if you want to mark the customer as exempt.

    Thread Starter stijnetje

    (@stijnetje)

    – I presume the check {VAT-exempt or not} is done at the moment (and stored with) the order is submitted, based on customer info.
    – Does the plugin check an order placed through the REST API and mark it as VAT-exempt or not?

    Plugin Author David Anderson

    (@davidanderson)

    Hi, unfortunately, internally, things don’t really work like that. The REST API is a bare-bones interface to WC’s internals. It’s a quite different environment, from the point of view of how orders go through, to the front-end- checkout. Things only exist there if they’ve been explicitly coded. In the context of EU VAT, that presents a number of technical complications. As things are, our plugin does not have any specific code for doing anything with REST orders.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘REST API’ is closed to new replies.