关于Shopify API产品变体有效值的澄清

关于Shopify API产品变体有效值的澄清,shopify,Shopify,关于产品变体某些属性的有效值的问题 具体地说,关于variant inventory\u management属性和fulfillment\u service属性存在混淆 首先,这里有一些由商店管理员输出的JSON变体: compare_at_price: "39.99" created_at: "2012-02-18T20:14:40-05:00" fulfillment_service: "manual" grams: 0 id: 201382272 inventory_management

关于产品变体某些属性的有效值的问题

具体地说,关于variant inventory\u management属性和fulfillment\u service属性存在混淆

首先,这里有一些由商店管理员输出的JSON变体:

compare_at_price: "39.99"
created_at: "2012-02-18T20:14:40-05:00"
fulfillment_service: "manual"
grams: 0
id: 201382272
inventory_management: "shopify"
inventory_policy: "deny"
inventory_quantity: -1
option1: "Gold"
option2: null
option3: null
position: 1
price: "29.99"
product_id: 85812592
requires_shipping: true
sku: "charm amethyst"
taxable: true
title: "Gold"
updated_at: "2012-12-01T19:29:32-05:00"
现在,这里是Shopify帮助文档的链接,解释变量的所有属性的有效值:

假设这个链接将您带到看起来像液体代码的地方,我希望我们可以期望后端上的相同属性在前端重新出现。在大多数情况下,它们是这样做的,下面是在前面提到的链接中提供的定义的所有属性的列表:

1 variant.id
2 variant.title
3 variant.price
4 variant.compare_at_price
5 variant.available
6 variant.inventory_management
7 variant.inventory_quantity
8 variant.inventory_policy
9 variant.weight
10 variant.sku
11 variant.option1
12 variant.option2
13 variant.option3
14 variant.options
15 requires_shipping
16 taxable
希望您已经注意到,出现在后端API上的fulfillment_服务在前端没有表示出来

为了使问题进一步复杂化,已经编写了另一篇帮助文章来提供变量属性的定义。本文的问题在于,它提到了一个名为“variant Inventory Tracker”的变量属性,该属性在帮助文档的其他任何地方都没有出现,但似乎包含了与履行服务和可能的库存管理变量相关的值


非常感谢这里的帮助

有关最新的API文档,请使用我们的。API文档是自动生成的,而wiki显然已经过时了。从变体API文档:

{
  "variant": {
    "compare_at_price": null,
    "created_at": "2012-12-06T17:33:56-05:00",
    "fulfillment_service": "manual",
    "grams": 200,
    "id": 808950810,
    "inventory_management": "shopify",
    "inventory_policy": "continue",
    "option1": "Pink",
    "option2": null,
    "option3": null,
    "position": 1,
    "price": "199.00",
    "product_id": 632910392,
    "requires_shipping": true,
    "sku": "IPOD2008PINK",
    "taxable": true,
    "title": "Pink",
    "updated_at": "2012-12-06T17:33:56-05:00",
    "inventory_quantity": 10
  }
}

我认为这应该回答你的问题。顺便说一句,我们的文档正在积极地进行修复,因此,一旦修复完成,这种事情在将来应该不会成为问题。

variant.inventory\u管理的有效值是

variant.u服务的有效值为
[“Manual”、“Shipwire”、“Webgistix”、“Amazon Marketplace Web”]

抱歉@LydiaKrupp Hunter,但您的回答指的是我引用的导致混淆的相同文档。按照API文档,您可以完全忽略您找到的wiki文档。这并没有回答主要问题,这可以归结为:CSV导入字段中的“Variant Inventory Tracker”==API中的Variant.Inventory\u管理吗?如果是这样的话,为什么api文档会说“有效值为:空白:Shopify不跟踪此产品变体的库存数量;Shopify:Shopify跟踪此产品变体的库存数量。”但CSV文档会说有效值为[“Shopify”、“shipwire”、“amazon_marketplace_web”]还是空白?这些值仍然有效吗?