2012-08-24 9 views

답변

6

광고 항목 속성은 기본적으로 존재하는 Order API를 통해 노출됩니다. 속성 배열이 비어 있다면 결석, 그래서 당신은 당신의 코드에서 그 음식을 장만해야합니다 것

<line-items type="array"> 
    <line-item> 
    <id type="integer">223039148</id> 
    <requires-shipping type="boolean">true</requires-shipping> 
    <fulfillment-service>manual</fulfillment-service> 
    <grams type="integer">0</grams> 
    <price type="decimal">9.99</price> 
    <quantity type="integer">1</quantity> 
    <sku/> 
    <title>All the Tests</title> 
    <product-id type="integer">90620559</product-id> 
    <variant-id type="integer">212221205</variant-id> 
    <vendor>soundcloud</vendor> 
    <variant-title nil="true"/> 
    <fulfillment-status nil="true"/> 
    <name>All the Tests</name> 
    <variant-inventory-management/> 
    <properties type="array"> 
     <property> 
     <name>Monogram</name> 
     <value>omg</value> 
     </property> 
    </properties> 
    </line-item> 
</line-items> 

참고 예를 들면 다음과 같습니다 라인 항목의 XML 조각은 하단의 '모노그램'속성은,주의 사항입니다.

+0

우수. 고마워. 덜 게을러서 스스로 테스트 할 수는 있었지만 Cart API로 수정하는 것이 필요했습니다. 너무 감사드립니다. – joecritch

관련 문제