税行不会在 Shopify API 订单中自动生成 [英] Tax lines won't automatically generate in Shopify API order
本文介绍了税行不会在 Shopify API 订单中自动生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将以下内容发布到 Shopify API 订单端点:
I am posting the following to the Shopify API order endpoint:
{
"order": {
"email": "some@email.com",
"financial_status": "paid",
"fulfillment_status": null,
"send_receipt": true,
"send_fulfillment_receipt": true,
"note": "Created by somename",
"line_items": [
{
"variant_id": 21718275463,
"quantity": 1,
"price": 99,
"requires_shipping": true,
"product_id": 6820646151
},
{
"variant_id": 21717700871,
"quantity": 1,
"price": 1000,
"requires_shipping": true,
"product_id": 6820646151
},
{
"variant_id": 21717690055,
"quantity": 1,
"price": 555,
"requires_shipping": true,
"product_id": 6821668807
}
],
"processing_method": "offsite",
"shipping_address": {
"first_name": "Chris",
"address1": "10101 Musick Road",
"phone": "9999999999",
"city": "St. Louis",
"zip": "63123",
"province": "MO",
"country": "United States",
"last_name": "Becker",
"name": "Chris Becker",
"country_code": "US",
"province_code": "MO"
},
"source_name": "somename",
"taxes_included": false,
"shipping_lines": [
{
"title": "standard",
"price": 0.00,
"code": null,
"source": "brand owner on shopify",
"carrier_identifier": null,
"tax_lines": null
}
],
"tags": "some Order"
}
}
并收到未填写税项的回复.我在 shopify 论坛上看到,税线应该是自动的由shopify计算和填写.我也试过和客户一起做,但也没有用.
and receiving a response without tax lines that are filled. I have seen on the shopify forum that the taxlines are supposed to then be automatically calculated and filled by shopify. I tried doing it with a customer as well but that didn't work either.
推荐答案
Orders API 不会自动计算税款,但如果您的应用知道税款是多少,那么您可以使用 tax_lines
和 total_tax
:
The Orders API will not auto-calculate the taxes but if your app knows how much they are then you can include this data using tax_lines
and total_tax
:
{
"order": {
"line_items": [{
"title": "Big Brown Bear Boots",
"price": 74.99,
"quantity": 3,
"tax_lines": [{
"price": 13.50,
"rate": 0.06,
"title": "State tax"
}]
}],
"total_tax": 13.50
}
}
这篇关于税行不会在 Shopify API 订单中自动生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文