Python logix
Python logix

Reputation: 359

Fulfillment shopify api

I want to implement Fulfillment api with the help of php but i am geting this errors https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/fulfillment?api[version]=2020-04#create-2020-04

{ "errors": "Not Found" }

$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => "https://logix-testing.myshopify.com/admin/api/2020-04/orders/2279798145083/fulfillments.json",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS =>"{\n  \"fulfillment\": {\n    \"location_id\": 905684977,\n    \"tracking_number\": \"123456789\",\n    \"tracking_urls\": [\n      \"https://shipping.xyz/track.php?num=123456789\",\n      \"https://anothershipper.corp/track.php?code=abc\"\n    ],\n    \"notify_customer\": true\n  }\n}\n",
  CURLOPT_HTTPHEADER => array(
    "X-Shopify-Access-Token: shpat_XXXXXXXX84bf9870369c0",
    "Content-Type: application/json",

  ),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;

Upvotes: 0

Views: 720

Answers (0)

Related Questions