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

How do you fulfill a line item with the python SDK? by Arian Solberg

$
0
0

I'm trying to fulfill a line item on an order with the python API but I'm getting an error. I'm trying to do this:

xxxx is the line_item ID and yyyy is the order_id

line_items =[{"id": xxxx}]
new_fulfillment = shopify.Fulfillment()
new_fulfillment.order_id = "yyyy"
new_fulfillment.line_items = line_items
new_fulfillment.save()

 

However at this point I get an error

pyactiveresource.connection.ResourceNotFound: Not Found:https://postrgram.myshopify.com/admin/orders//fulfillments.json

 

It looks like the order_id is not getting into the endpoint URL correctly. What am I missing here?


Viewing all articles
Browse latest Browse all 25503


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