How to set include_pending_stock to true in a FulfillmentService?

Highlighted
Shopify Partner
3 0 0

Hello,

 

Whenever I create a FulfillmentService or update one with the according API calls, it doesn't matter which value I give the include_pending_stock attribute: it is always set to false by Shopify.

 

Example of creation (POST https://myshop.myshopify.com/admin/api/2020-01/fulfillment_services.json):

 

{
  "fulfillment_service": {
    "name": "MyApp Fulfillment",
    "callback_url": "https://myapp.com/api/shopify-fulfillment",
    "inventory_management": true,
    "tracking_support": false,
    "requires_shipping_method": true,
    "format": "json",
    "include_pending_stock": true
  }
}

 

Example of update (PUT https://myshop.myshopify.com/admin/api/2020-01/fulfillment_services/51523256375.json) :

 

{
    "fulfillment_service": {
        "id": 51523256375,
    	"include_pending_stock": true
    }
}
In either case, Shopify returns:
{
    "fulfillment_service": {
        "id": 51523256375,
        "name": "MyApp Fulfillment",
        "email": null,
        "service_name": "MyApp Fulfillment",
        "handle": "myapp-fulfillment",
        "fulfillment_orders_opt_in": false,
        "include_pending_stock": false,
        "provider_id": null,
        "location_id": 35541418039,
        "callback_url": "https://myapp.com/api/shopify-fulfillment",
        "tracking_support": false,
        "inventory_management": true
    }
}
I need this attribute set to true, is it not possible to do so because it is not yet supported?
 
Thanks!
0 Likes
Shopify Staff
Shopify Staff
652 87 93

Hey @victor75,

 

This is a legacy field and will be removed at some point in the future.

0 Likes