在通过API创建Shopify订单时,试图弄清税线如何运作

时间:2016-06-04 19:37:54

标签: rest shopify

我将以下内容发布到Shopify API创建订单端点并接收没有填写的税行的响应。我没有在互联网上看到任何东西,除了Shopify没有提供另一个只是税收的终点。因此,我试图弄清楚在通过API创建订单时是否应该在订单响应中自动生成税行,或者我是否必须在请求中包含税行以便包含税行,因为我知道当我在管理员中创建订单时,税线会自动计算并包含在我手中吗?:

   {
  "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"
  }
}

1 个答案:

答案 0 :(得分:0)

以下是有关税收的有用文档:https://help.shopify.com/api/reference/location

不会从cart.js ajax api自动计算税金。他们只是想知道税收是否已包含在价格中。如果没有,那么它可以与账单一起添加。