hello i am programming a python script that calls the shopify api the script should mark the orders as prepared
but the orders placed from shopify pay in test mode and created by hand the location_id field is null and i need it to mark it as ready.
if i create it from draft and mark it as paid that one does contain location_id
I am using the shopifyAPI library I leave here the part of the script where I mark it as ready:
fulfillment = shopify.Fulfillment({
‘order_id’: order.id,
‘line_items’: order.line_items,
‘location_id’: order.location_id
})
fulfillment.save()
Hi @Oscarnico 
As of 2022-07, the fulfillment workflow as changed in favour of the FulfillmentOrder resource model. This doc highlights the changes, and how to migrate to the new workflow.
The ShopifyAPI python library maps to REST resources, and in this case it would be the /admin/api/2023-01/fulfillments.json endpoint. At the moment, the new fulfillment order workflow isn’t supported natively in the python library, and it may be best to use the REST endpoint directly. There are examples payloads here for reference once the app has migrated to the new fulfillment order workflow.