2012-12-02 4 views
2

제품 변형의 일부 속성에 유효한 값에 대한 질문.Shopify API 제품 변형의 유효한 값에 대한 설명

특히 변형 된 inventory_management 속성과 fulfillment_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 도움말 문서에 대한 링크입니다 :

http://wiki.shopify.com/Variant#variant.inventory_management

이 링크 액체 코드를 어떻게 생겼는지로 이동하는 것이 허락, 나는 우리가 백 엔드에서 동일한 속성이 프런트 엔드에 다시 나타날 것으로 예상 할 수 있기를 바랍니다 것입니다. 그들은 여기에서, 그리고 대부분의 정의는 앞서 언급 한 링크에서 제공되는 모든 속성의 목록은 다음과 같습니다

희망
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_service 프런트 엔드에 표시되지 않습니다.

문제를 더 복잡하게 만들기 위해 변형 속성 here에 대한 정의를 제공하는 또 다른 도움말이 작성되었습니다. 이 기사의 문제는 "Variant Inventory Tracker"라는 변형 속성을 언급하는데 도움 문서의 다른 곳에서는 나타나지 않지만 fulfillment_service 및 가능하면 inventory_management 변형과 관련된 값을 포함하고있는 것으로 보입니다.

정말로 도움을 주셔서 감사합니다!

답변

4

유효한 값은 ["Shopify", "Shipline", ""]

하고 variant.fulfillment_service에 대한 유효한 값은 ["Manual", "Shipwire", "Webgistix", "Amazon Marketplace Web"]

+0

인데 여전히 유효합니까? –

1

최신 API 문서는 API docs을 사용하십시오. 위키는 분명히 구식이지만 API 문서는 자동으로 생성됩니다. 변형 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 
    } 
} 

나는 이것이 귀하의 질문에 대답해야한다고 생각합니다. sidenote로, 우리의 문서는 활발히 재 포장을 얻고 있습니다, 그래서 일단 펼쳐지면 이런 종류의 것이 미래에 문제가되어서는 안됩니다. variant.inventory_management에 대한

+0

죄송합니다 LydiaKrupp - 헌터 @하지만 대답은 내가 참조 같은 문서에 저를 참조하는 혼란의 원인입니다. – Bnjmn

+1

API 문서를 따라 가면 찾은 위키 문서를 완전히 무시할 수 있습니다. –

+0

이 질문에 답할 수 없습니다.이 질문은 다음과 같습니다. CSV 가져 오기 필드에서 'Variant Inventory Tracker'== API의 variant.inventory_management? 그렇다면 API 문서에서 "유효한 값 : blank : Shopify는이 제품 변형에 대한 재고 품목 수를 추적하지 않습니다. shopify :이 제품 변형에 대해 재고가있는 품목 수를 추적합니다." CSV 문서에 유효한 값은 [ "shopify", "shipwire", "amazon_marketplace_web"] 또는 공백 –