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

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

1 Like

Hello,

You need to upgrade your api version to at least 2022-07, but preferably to 2023-04. Shopify has stopped supporting fulfillments for any version that is younger than 2022-07, and has been warning about it for about six months now :).

Cheers,

Gary