Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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

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

RaymondVdVelden
Visitor
2 0 1

Hello.

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' => 'http://postnl.nl/tracktrace/?D=NL&B=TESTCODE&P=10000SB&L=NL&T=C',
  '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)

garyrgilbert
Shopify Partner
433 41 191

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.

 

Cheers,

Gary

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