I am using Shopiy API for fulfill the order in PHP platform. When I try to fulfill the order, I can able to complete and getting a success response fron Shopify. If I pass line_items
params then I am getting
{"line_items":"Required parameter missing or invalid"}
Can any one help me to figure out the 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);
?>