FROM CACHE - zh-cn_header

fulfillment接口调用失败

zsh
Shopify Partner
3 0 0

我使用SDK https://github.com/Shopify/shopify-api-php 调用fulfillment接口进行发货 https://shopify.dev/api/admin-rest/2022-10/resources/fulfillment#post-fulfillments

这是我的调用代码

$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.my-shipping-company.com",
"company" => "USPS"
];
$fulfillment->line_items_by_fulfillment_order = [
[
"fulfillment_order_id" => 5206245736770
]
];
$fulfillment->save(true);

 返回结果为

REST request failed: "The api_client does not have the required permission(s)."

请问是什么原因?要怎么解决?

0 条回复0