php - {"line_items":"Required parameter missing or invalid"} -


i using shopiy api fulfill order in php platform. when try fulfill order, can able complete , getting success response fron shopify. if pass line_items params getting

{"line_items":"required parameter missing or invalid"}

can 1 me figure out issue.

<?php require_once("inc/functions.php"); $shop = "my-store"; $fulfilment = array("fulfillment" => array ("tracking_number" =>"123456789",                                             "tracking_company" => "fedex",                                             "line_items"=>array(array("id"=>2143139779)))); $response = shopify_call('accesstoken', $shop, "/admin/orders/1123553027/fulfillments.json", $fulfilment, 'post');   print_r($response); ?> 

you need quantity each line item.

e.g.

"line_items" => array(     array("id" => 12345, "quantity" => 1), 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -