Hello I am trying to create fulfillment using the GraphQL API but it returns
{
“response”: {},
“body”: {
“fulfillmentCreate”: {
“fulfillment”: null,
“userErrors”: [
{
“field”: [
“fulfillment”
],
“message”: “The api_client does not have access to the fulfillment order.”
}
]
}
},
“errors”: false,
“timestamps”: [
null,
1735768787.851566
]
}
Here is the mutation that I am sending
mutation CreateFulfillment {
fulfillmentCreate(
fulfillment: {
lineItemsByFulfillmentOrder: [
{
fulfillmentOrderId: “gid://shopify/FulfillmentOrder/6711205331003”
}
],
notifyCustomer: true,
trackingInfo: {
company: “Carrier Name”,
number: “TRACKING_NUMBER”,
url: “https://tracking-url.com/TRACKING_NUMBER”
}
}
) {
fulfillment {
id
status
trackingInfo {
company
number
url
}
}
userErrors {
field
message
}
}
}
App permissions related to fulfillments
{
“handle”: “read_fulfillments”
},
{
“handle”: “write_fulfillments”
},
{
“handle”: “read_assigned_fulfillment_orders”
},
{
“handle”: “write_assigned_fulfillment_orders”
},
{
“handle”: “read_third_party_fulfillment_orders”
},
{
“handle”: “write_third_party_fulfillment_orders”
},
{
“handle”: “read_merchant_managed_fulfillment_orders”
},
{
“handle”: “write_merchant_managed_fulfillment_orders”
},
x-request-id: 63a06145-7c4e-4dc2-bfc7-510983328e18-1735768787
Please help. What I am missing?