Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

nc-tester commented on 406 Error When Posting Order

$
0
0

As things stand, it cannot be configured to use JSON instead of XML (it's beyond my control). I submitted the following XML, and still received a 400 error. Is there still something syntactically incorrect? Obviously because of the shift toward JSON, there isn't much documentation on suitable syntax.

<order>
    <line-items>
        <line-item>
            <quantity>1</quantity>
            <variant-id>739391395</variant-id>
        </line-item>
        <line-item>
            <quantity>1</quantity>
            <variant-id>739382303</variant-id>
        </line-item>
    </line-items>
</order>


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>