Post Fulfillment Services no longer creating a fulfillment service

dseipel
Shopify Partner
7 0 3

Hi, we are a fulfillment center and I've done this dozens of times in the past without issue, so not sure what's changed. I'm trying to set us up as a fulfillment service.  I'm sending a Post to https://XXX.myshopify.com/admin/api/2024-01/fulfillment_services.json

The body of the message is:

{
  "fulfillment_service": {
    "name": "XXXX",
    "callback_url": "https://.....",
    "inventory_management": false,
    "permits_sku_sharing": true,
    "fulfillment_orders_opt_in": true,
    "tracking_support": false,
    "requires_shipping_method": true,
    "format": "json"
  }
}
The result has a status of 200 OK but the body of the response is:
{
    "fulfillment_services": []
}
When I do a get of fulfillment services it does confirm that no services were created.  I do have read/write access to Fulfillment Services.
The body of the message is identical to the 20 or so other times I've done this for other clients.  Any idea why this isn't working?
Replies 8 (8)

Liam
Shopify Staff
2731 297 768

Hi Dseipel,

 

Is this only happening with one specific store? If you test on a dev store, are you seeing the same behaviour?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

dseipel
Shopify Partner
7 0 3

HI Liam,  I just tried the exact same request with my development store and everything worked correct.  I then when back to my clients store and again, no error, but no fulfillment_services created.  I would think if it were a store permission problem that I would get some sort of error, but I don't know what else it could be.

Liam
Shopify Staff
2731 297 768

It doesn't sound like a scopes/ permission issue - could there be another fulfilment app on the store that might be conflicting with your API calls somehow?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

dseipel
Shopify Partner
7 0 3

Hi Liam,

No, this is a brand new site, there are 2 physical locations that they've set up, but no fulfillment sites.  When I do a query on fulfillment_services it shows there's nothing there:

{
    "fulfillment_services": []
}
Which happens to be the same response when I Post in an attempt to create our service.  
Thanks

Venki_b2sell
Shopify Partner
4 0 1

Hi, You need to use the domain name with myshopify.com in the url to create a fulfillment service. you can find your domain name in the domain section in settings page.  example : https://XXXXX.myshopify.com/admin/api/2023-01/fulfillment_services.json

dseipel
Shopify Partner
7 0 3

Hi, I am using the actual domain in the URL, I simply changed it to XXX in my example to avoid displaying our actual URL.  If the URL was invalid I'm sure I would not be getting a status returned of 200 OK.

Venki_b2sell
Shopify Partner
4 0 1

Hi, just login to Shopify admin from desktop or laptop, after that go to settings, there you will find the url with store details use that. For example https://admin.shopify.com/store/xxxxxx/settings/general. If in url after store there is xxxxxx then use https://xxxxxx.myshopify.com in api calls.

dseipel
Shopify Partner
7 0 3

I have the correct URL.  If I use that exact same URL to run a GET (instead of the POST I am trying to use to create the fulfillment service) I do get an empty list of fulfillment services.  If I had the wrong URL there's no way I would be getting a 200 OK response.  The URL is not the problem.