【问题标题】:Trying to figure out how tax lines work when creating Shopify order via API通过 API 创建 Shopify 订单时试图弄清楚税线的工作原理
【发布时间】:2016-10-04 16:40:10
【问题描述】:

我将以下内容发布到 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"
  }
}

【问题讨论】:

标签: rest shopify


【解决方案1】:

这里有一份关于税收的有用文档:https://help.shopify.com/api/reference/location

税不会从 cart.js ajax api 自动计算。他们只是提供一个线索,即税费是否已包含在价格中。如果没有,那么它可以与账单一起添加。

【讨论】:

    猜你喜欢
    • 2016-01-27
    • 2019-11-22
    • 1970-01-01
    • 2016-05-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多