我现在用 /admin/api/2022-10/fulfillments.json 这个接口进行发货,这是我的代码
$fulfillment = new \Shopify\Rest\Admin2022_10\Fulfillment($offlineSession);
$fulfillment->message = "The package was shipped this morning.";
$fulfillment->notify_customer = false;
$fulfillment->tracking_info = [
"number" => 9400111202565851502441,
"url" => "https://www.usps.com",
"company" => "USPS"
];
$fulfillment->line_items_by_fulfillment_order = [
[
"fulfillment_order_id" => $orderId,
// 'fulfillment_order_line_items' => [
// [
// 'id' => 13646186512706,
// 'quantity' => 1
// ]
// ]
]
];
$fulfillment->save(true);
但是调用返回错误
REST request failed: “Not Found”
请教一下这是什么原因?
我是使用的测试帐号,还没有进行审核,商店是开发商店,订单是手动在商店创建的