Hi, I’m trying to create a fulfillment using GraphQL, using this page as a reference: fulfillmentCreate - GraphQL Admin
Until now I’ve been pretty successful converting to GraphQL just by following the examples. But not with this one. Here is the data I’m sending to Shopify:
{
"query": "mutation fulfillmentCreate($fulfillment: FulfillmentInput!) { fulfillmentCreate(fulfillment: $fulfillment) { fulfillment { notifyCustomer trackingInfo { number url company } lineItemsByFulfillmentOrder { fulfillmentOrderId fulfillmentOrderLineItems { id quantity }} } userErrors {field message}}}",
"variables": {
"fulfillment": {
"notifyCustomer": true,
"trackingInfo": {
"company": "USPS",
"url": "https://tools.usps.com/go/TrackConfirmAction.action?tRef=fullpage&tLc=1&text28777=&tLabels=9434611206224830964813",
"number": "9434611206224830964813"
},
"lineItemsByFulfillmentOrder": [
{
"fulfillmentOrderId": "gid://shopify/FulfillmentOrder/7463001751613",
"fulfillmentOrderLineItems": [
{
"id": "gid://shopify/FulfillmentOrderLineItem/15046805979197",
"quantity": 1
},
{
"id": "gid://shopify/FulfillmentOrderLineItem/15046806011965",
"quantity": 1
}
]
}
]
}
}
}
When I do, I get an error that says “Field ‘notifyCustomer’ doesn’t exist on type ‘Fulfillment’”. Well, that message doesn’t help, as it most certainly does, at least according to the page I mentioned at the beginning.
Am I formatting this wrong? It would help if that page included a variety of good examples like so much of the rest of the GraphQL docs.
Any information or help figuring this out would be much appreciated.
Thanks!