api_client

Highlighted
New Member
5 0 0

hi, getting the following error

{
    "errors": [
        "The api_client is not associated with any fulfillment service."
    ]
}
when calling
 
assigned_fulfillment_orders.json
 
Any ideas?
 
 
0 Likes
Highlighted
Shopify Partner
648 46 130

Have you verified that the Shopify shop has fulfillment services properly defined? And have you verified your API credentials have been granted this access scope? https://shopify.dev/docs/admin-api/access-scopes 

0 Likes
Highlighted
New Member
5 0 0
please describe where fulfillment services are "properly defined"
We are new to this and documentation is a bit confusing.

thanks


0 Likes
Highlighted
Shopify Partner
648 46 130

I mean is it configured in the Shopify web admin? Details here --> https://help.shopify.com/en/manual/orders/fulfillment/setting-up-fulfillment

0 Likes
Highlighted
New Member
5 0 0

The fulfillment is configured, but the api_client is not, that is where our issue is

Please describe where the api_client is assigned permissions to see fulfillment for "assigned_fulfillment_orders.json" endpoint

 

thanks

 

 

0 Likes
Highlighted
Shopify Partner
648 46 130

Did you follow the first link I posted? It describes the whole authorization process, access scopes, etc. 

0 Likes
Highlighted
New Member
5 0 0

yes but there is no reference to the api_client, and we do have orders entered that I can see using "orders.json" so I believe it was set up properly.

please explain how api_client permissions are defined. 

Thanks

 

0 Likes
Highlighted
Shopify Partner
648 46 130

I honestly have no idea what project, library, wrapper, etc. that this api_client is. If it's something like this --> https://shopify.github.io/shopify-app-cli/ then have you reviewed any "getting started" documentation? Regardless what this tool is, you have to install something in the Shopify shop to get things going. And part of that install process involves getting API credentials as well as using OAuth as a Shopify shop user to authorize access scopes --> https://shopify.dev/tutorials/authenticate-with-oauth

0 Likes
Highlighted
New Member
5 0 0

in the chat, yesterday they told me to post the question about why the message 

"The api_client is not associated with any fulfillment service."

was sent. They told me that you might have to reach the technical team for that, might be there is a bug in Shopify api...

 

 

 

0 Likes
Highlighted
Shopify Partner
648 46 130

Okay, taking this a step or two back still. I assume you have a Shopify shop, and that you had to install an app into it in order to be able to use your API credentials, right? The step of that installation process that allowed the app to reside in the Shopify shop involved a logged-in Shopify user account authorizing the app access to the shop. Where is displays that the app will have access to customer, products, order, etc. That step is where the access scopes are defined. That step needed to include the access scope that your api_client is kicking back as being missing. 

0 Likes