Migration to new Shopify Admin REST API 2023-07 - FulfillmentOrders not being created

Migration to new Shopify Admin REST API 2023-07 - FulfillmentOrders not being created

bmdevs
Visitor
2 0 1
I've tried to migrate from our old Admin REST API calls for fulfillment over to the new Fulfillments Admin REST API version 2023-07 but we're stuck.
 
I've spent considerable time to go through the developer docs and have tried a number of test calls using the new Shopify Admin REST API to fulfill a test order but I haven't been successful. I've created a new test order and left it unfulfilled. I have also created a brand new app in the store's settings, enabled all permissions and am using the right secure access token to access the Admin REST API services. All calls succeed with HTTP 200 responses so there are no issues with connectivity. Currently just testing with cURL to confirm with the test order.
 
The gist of the problem is that when a test order is created in the system, Shopify's documentation indicates that it will create the FulfillmentOrder automatically. However, this doesn't happen. When we query fulfillments for a given order using the new API we get an empty array response.
 
Test order was created using a custom product. Its not fulfilled currently and as per Shopify documentation it should have an automatically created FulfillmentOrder with items as part of it. In this case its just one item.
 
Here's an example for a ficticious order id 4152868438888:
 
Request:
curl -X GET "https://my-store.myshopify.com/admin/api/2023-07/orders/4152868438888/fulfillments.json" -H "X-Shopify-Access-Token: my_own_secure_access_token"
 
Response (HTTP 200):
{"fulfillments":[]}
 
This order is in Paid status, Unfulfilled, and doesn't require shipping. We've also tried the same test with a sample test order that "does" require shipping but regardless, we don't see Shopify auto-create the fulfillment order.
 
Our custom app is set up with all of these permissions on it to ensure we're not hitting a permissions related issue:
write_assigned_fulfillment_orders, read_assigned_fulfillment_orders, write_fulfillments, read_fulfillments, write_merchant_managed_fulfillment_orders, read_merchant_managed_fulfillment_orders, write_orders, read_orders, write_third_party_fulfillment_orders, read_third_party_fulfillment_orders, write_custom_fulfillment_services, read_custom_fulfillment_services, write_fulfillment_constraint_rules, read_fulfillment_constraint_rules, write_order_edits, read_order_edits
 
We went through Shopify's documentation to see if we can create a FulfillmentOrder for a given order but this isn't a REST service that's available and Shopify documentation explicitly states FulfillmentOrders are created by Shopify. What are we missing here?
Replies 2 (2)

LPAN012345
New Member
5 0 0

Hi,

I'm having the exact same issue and have spent hours trying to work out why. 

Did you manage to solve this?  If so how?

bmdevs
Visitor
2 0 1

Any resolution to this?