简体   繁体   English

Woocommerce REST API 通过 REST API 对新订单不征税

[英]Woocommerce REST API No TAX applied on New Order Via REST API

I'm working on site, built on Wordpress with Woocommerce for product selling.我在网站上工作,基于 Wordpress 和 Woocommerce 进行产品销售。 When customer buy products via website, it works perfect and tax based on customer's Country, State, & City applied on whole item.当客户通过网站购买产品时,它会根据客户的国家、州和城市对整个项目应用完美的税收。

The same procedure I need to achieve via Woocommerce REST API - Order Complete .我需要通过Woocommerce REST API - Order Complete实现的相同过程。 version 2.版本 2。

I'm using a postman collection and prepare a order data and hits the end-point我正在使用邮递员集合并准备订单数据并到达终点

{POST}wp-json/wc/v2/orders 

Everything works perfect, billing address, shipping address, customer notes.一切都很完美,账单地址,送货地址,客户备注。 But there is no TAX added on order created via REST API.但是通过 REST API 创建的订单没有添加税金。 Please advise or share any example to how I can achieve it manually via PHP or by Woocommerce Hooks.请就我如何通过 PHP 或 Woocommerce Hooks 手动实现它提供建议或分享任何示例。

在此处输入图片说明

In postman {{baseUrl}} means the link to your webiste let " http://example.com/wp-json/wc/v2/orders ".在邮递员中,{{baseUrl}} 表示指向您网站的链接让“ http://example.com/wp-json/wc/v2/orders ”。 In the place of " https://example.com/ " replace with your own website URL of woo commerce.在“ https://example.com/ ”的地方替换为您自己的woo commerce网站URL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM