Hi,
I’m getting the error ‘The api_client does not have access to the fulfillment order.’ when trying to fulfil an order via the fulfilment orders GraphQL API
I’m wondering under what circumstances one can expect to get that error?
Here’s the mutation I’m using in Postman to test :-
mutation fulfillmentCreateV2 {
fulfillmentCreateV2(fulfillment: {
trackingInfo: {
number:"05222701968432",
url:"https://tracking.dpd.de/status/en_US/parcel/05222701968432"
}
notifyCustomer: true,
lineItemsByFulfillmentOrder: [
{
fulfillmentOrderId:"gid://shopify/FulfillmentOrder/5831213514916"
fulfillmentOrderLineItems: {
id:"gid://shopify/FulfillmentOrderLineItem/12380782362788"
quantity:1
}
}],
})
{
fulfillment {
id
status
trackingInfo {
company
number
url
}
}
userErrors {
field
message
}
}
}
The fulfilment order id and the fulfilment line item id was obtained from a successful order query on the order, so that tells me they are correct and that the access token I’m using is correct.
Any help/ideas as to what else could be wrong?
TIA,
Matt