How to fulfill an order without customer/shipping details in Python Shopify-API.

yogesh1920
New Member
1 0 0

I tried with this call.

final_data = {
"order_id": order_id,
"location_id": ****894,
"line_items": [{'id': '****16074566', 'quantity': 3}, {'id': '*****16107334', 'quantity': 1}],
}

f = shopify.Fulfillment.create(final_data)

f.save()


API Request sent to: /admin/api/2021-01/orders/****9965510/fulfillments.json

but It won't work.

 

If I add a customer to the same order and do the fulfillment with the above example then the order is fulfilled successfully.

So How should I fulfill an order without customer/shipping details using python Shopify-API.

I can see them from Shopify I can fulfill using Send fulfillment Request. but I don't know how to do using python shopify-api.

Reference I've used: https://github.com/Shopify/shopify_python_api

yogesh1920_0-1621240653564.pngyogesh1920_1-1621240675200.png

 

0 Likes