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

James commented on 500 error when creating orders with discount_codes

$
0
0

After playing around with the shopify_api gem and Postman (REST client), I've observed the following:

  • You can only set the discount_codes field when POSTing to create a new order - PUT requests to update existing orders don't seem to work, although there's nothing in the documentation to indicate this
  • Attempting to create a new order with a discount code works if you use Postman, but the shopify_api Ruby client library itself seems to be incapable of doing the same. 

Viewing all articles
Browse latest Browse all 25503

Trending Articles



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