The api_client does not have access to the fulfillment order

This is the permission I applied for:
“read_customers”,
“write_customers”,
“read_products”,
“write_products”,
“read_inventory”,
“write_inventory”,
“read_orders”,

“write_orders”,
“read_order_edits”,
“write_order_edits”,
“read_discounts”,
“write_discounts”,
“read_all_orders”,
“read_locations”,
“write_locations”,
“read_locales”,
“write_locales”,
“read_fulfillments”,
“write_fulfillments”,
“read_assigned_fulfillment_orders”,
“write_assigned_fulfillment_orders”,
“read_merchant_managed_fulfillment_orders”,
“write_merchant_managed_fulfillment_orders”,
“read_third_party_fulfillment_orders”,
“write_third_party_fulfillment_orders”
The waybill was uploaded normally, but suddenly it returned “The api_client does not have access to the fulfillment order”.
The waybill was uploaded normally, but suddenly it returned “The api_client does not have access to the fulfillment order”.
The page display permissions include:
Detailed information of all orders, order editing, order shipping, assigned shipping, merchant-managed shipping, or third-party shipping,
I can’t find the reason for the mistake
:$request = [
“query” => "
mutation FulfillmentCreate($fulfillment: FulfillmentV2Input!) {
fulfillmentCreateV2(fulfillment: $fulfillment) {
fulfillment {
fulfillmentLineItems(first: 5) {
edges {
node {
id
lineItem {
title
variant {
id
}
}
quantity
originalTotalSet {
shopMoney {
amount
currencyCode
}
}
}
}
}
status
estimatedDeliveryAt
location {
id
legacyResourceId
}
service {
handle
}
trackingInfo(first: 5) {
company
number
url
}
originAddress {
address1
address2
city
countryCode
provinceCode
zip
}
}
userErrors {
field
message
}
}
}
",
“variables” => [
“fulfillment” => [
“lineItemsByFulfillmentOrder” => $fulfillment_orders,
“trackingInfo” => [
“company” => $param[‘carrierName’],
“number” => $param[‘trackingNumber’],
// “url” => “http://www.fedex.com/track?tracknumbers=1234567890
]
]
]
];

Hi @ex_qq

This error is almost certainly related to scopes or permissions. Your app can only fulfill fulfillment orders that are assigned to a location or fulfillment service your app manages, and for which you have the correct scope.

Also, the user (or API client) must have the fulfill_and_ship_orders permission in the Shopify admin.

Can you check both of these and test again?

After testing, the permissions are fine. One order(#1008) reports the above error, but the other order(#1009) can upload the shipping information normally. I don’t know why this is happening.

Is this only happening with one specific order and all others are having shipping info applied as expected?

Yes, but I don’t see any special feature of this order.

Is there another app interacting with this order in some way?

No, it hasn’t been submitted for review yet. It is still being tested in the test store for the test data.