Re: Partially fulfill order via API

Can orders be partially fulfilled using REST API?

Bitzu
Shopify Partner
11 0 2

Hello,

I was wondering if there is any way that an order can be fulfilled partially via rest API.

I know that we can create fulfilment for a fulfilment order and that is how we can fully fulfil an order. 

Can we do that partially?

 

Thank you

Reply 1 (1)

ms_stryker
Visitor
3 0 0

I have the same question!

 

I tried doing a partial fulfillment by doing the following:

1. Get the fulfillment orders:

       https://{shop}.myshopify.com/admin/api/{api_version}/orders/{order_id}/fulfillment_orders.json

 

2. Update the fulfillment partially with:

     https://{shop}.myshopify.com/admin/api/{api_version}/fulfillments.json

 

3. Cancellation Request:

    https://{shop}.myshopify.com/admin/api/fulfillment_orders/{fulfillment_order_id}/close.json

   

However, I get a 406 here.

 

Am I missing a flow or should I be taking different steps?

 

I have verified that the token has the following scopes:

[

  {

    "handle": "write_fulfillments",
    "description": "Modify fulfillment services"
  },
  {
     "handle": "read_fulfillments",
     "description": "Read fulfillment services"
  },
  {
    "handle": "read_custom_fulfillment_services",
    "description": "Read custom fulfillment services"
  },
  {
    "handle": "write_custom_fulfillment_services",
    "description": "Manage custom fulfillment services"
  },
  {
    "handle": "write_assigned_fulfillment_orders",
    "description": "Modify assigned fulfillment"
  },
  {
    "handle": "read_assigned_fulfillment_orders",
    "description": "Read assigned fulfillment"
  },
  {
    "handle": "write_merchant_managed_fulfillment_orders",
    "description": "Action fulfillment for merchant-managed locations"
  },
  {
    "handle": "read_merchant_managed_fulfillment_orders",
    "description": "Read fulfillment for merchant-managed locations"
  },
  {
    "handle": "read_third_party_fulfillment_orders",
    "description": "Read fulfillment assigned to fulfillment services"
  },
  {
    "handle": "write_third_party_fulfillment_orders",
    "description": "Modify fulfillment assigned to fulfillment services"
  }
]