Issue: After creating a Fulfillment Service via REST (POST /admin/api/2023-10/fulfillment_services.json), stocking inventory at its location, and creating an order, API calls to request and accept fulfillment fail. Errors: “The fulfillment order is not assigned to the requesting fulfillment service.” and “Cannot request fulfillment for the fulfillment order.” GET assigned_fulfillment_orders?assignment_status=fulfillment_requested returns empty, though fulfillment orders are retrievable via the order endpoint.
Guidance provided: Verify product variants are assigned to the correct fulfillment service (not “manual”). Ensure the app is registered as a Fulfillment Service in the Partner Dashboard. Accept is only possible when fulfillment order status is “fulfillment_requested.”
Latest update from OP: Product still shows fulfillment_service:“manual” despite attempts to assign. The created service made a Shopify location, but the app does not appear under Partner Dashboard > App setup > Fulfillment services; only an authentication app is visible. OP asks if another app/setup is required. Screenshots show attempted assignment and the created location.
Context: A fulfillment order must be assigned to the same fulfillment service app (owns the variant’s fulfillment_service) to receive requests/accept via API.
Status: Unresolved. Open questions: How to properly register the app as a fulfillment service and link variants so assignments appear and API acceptance succeeds.
I am trying to use the Fulfillment Service app to fulfill a given order.
Steps tried:
Created a fulfillment service app via REST Admin API (POST admin/api/2023-10/fulfillment_services.json)
This created a location on Shopify.
Created a new product and stocked the inventory in the above location (Fulfillment service app)
Create an order using the above product
Requested for Fufillment from Orders page from the UI which was successful
Tried to accept the fulfillment using the REST Admin API (POST admin/api/2023-10/fulfillment_orders/fulfillment_order_id/fulfillment_request/accept.json)
This action gives the below error
{
“errors”: [
“The fulfillment order is not assigned to the requesting fulfillment service.”
]
}
I am not sure what is going wrong or if there is any setting missing.
Also the following API gives me no results GET admin/api/2023-10/assigned_fulfillment_orders.json?assignment_status=fulfillment_requested
{
“fulfillment_orders”:
}
However I am able to fetch the fulfillment order for my order using GET admin/api/:version/orders/:order_id/fulfillment_orders.json
Also I am able to request fufillment via the UI but from the REST Admin API I get the below error. POST admin/api/2023-10/fulfillment_orders/fulfillment_order_id/fulfillment_request.json
{
“errors”: [
“Cannot request fulfillment for the fulfillment order.”
]
}
Can someone please help me in understanding how can we link the fulfillment order with the fulfillment service app and how the flow works. I have gone through all the documents but could not find much information.
Based on the error message that you’re seeing, it seems like the fulfillment order hasn’t been assigned to the fulfillment service you created. Here’s a few things you can check for troubleshooting:
Ensure that you are using the correct fulfillment service. When creating a product, you can assign it to a specific fulfillment service. You should ensure that the product you’re trying to fulfill is indeed assigned to the fulfillment service that you created.
Check if the fulfillment service app is properly configured. You should make sure that your app is registered as a fulfillment service. You can do this by going to the “App setup” page in your Shopify Partner dashboard and checking that your app is listed under “Fulfillment services”.
Check the fulfillment order’s status. You can only accept fulfillment requests that are in the “fulfillment_requested” status. If the order has a different status (like “cancelled”, “fulfilled” or “in_progress”), you won’t be able to accept the fulfillment request.
Test out the above and let us know if you’re still seeing issues.
Regarding point 2, I created the fulfillment service app using the REST Admin API admin/api/2023-10/fulfillment_services.json. This created a location on shopify store.
Also I do not see this in the Partner Dashboard → App setup" page in your Shopify Partner dashboard and checking that your app is listed under “Fulfillment services”.
I do see my app which we use for authentication. Is there any other app we need to create.