Partial fulfillment returning: "Not found" error from API. when sending line_items

2 0 1


Using the phpclassic shopify-sdk for php.  I am trying to fulfill an order in my store. 

Like the example on the website im trying to do the following. 

Im trying to fulfill my order: 2935405019267 using the following data:

  'location_id' => 44151996547,
  'tracking_company' => 'PostNL',
  'tracking_number' => 'TESTCODE',
  'tracking_url' => '',
  'notify_customer' => true,
  'line_items' => 
  array (
    0 => 
    array (
      'id' => 34178788163715,

 Where the location_id matches a location from the store., and the line_items containing an id of the product_variant ordered / fulfilled. 

I've tried to remove 1 layer of 'array' on line_items but this resulted in  - line_items - expected Hash to be a Array

I am sure my id's are correct.  If I leave out the line_items the fulfilment completes the entire order. I need partial fulfilment.

Reply 1 (1)

Shopify Partner
397 40 165

Hi There,


I don't think the php classic skd supports fulfillments using the new fulfillment api. That code hasnt been updated to support all the new methods.




- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution