Hello,
I’ve been trying for some time to set an order as ready for pickup and obtain the same result as when we manually click it.
From what I understood, there is no way to do this using the REST API, only graphQL.
I tried to do it using this mutation: https://shopify.dev/docs/api/admin-graphql/2023-04/mutations/fulfillmentOrderLineItemsPreparedForPickup that I understood its the only way (https://community.shopify.com/c/shopify-apis-and-sdks/mark-order-as-quot-ready-for-pickup-quot-via-admin-rest-api/td-p/801602) but when I’m trying to actually use it there are some errors. Can anybody help me figure it out? Thank you
@body=
{"errors"=>
[{"message"=>"FulfillmentOrderLineItemsPreparedForPickupInput isn't a defined input type (on $input)",
"locations"=>[{"line"=>1, "column"=>53}],
"path"=>["mutation fulfillmentOrderLineItemsPreparedForPickup"],
"extensions"=>
{"code"=>"variableRequiresValidType",
"typeName"=>"FulfillmentOrderLineItemsPreparedForPickupInput",
"variableName"=>"input"}},
{"message"=>"Field 'fulfillmentOrderLineItemsPreparedForPickup' doesn't exist on type 'Mutation'",
"locations"=>[{"line"=>2, "column"=>3}],
"path"=>["mutation fulfillmentOrderLineItemsPreparedForPickup", "fulfillmentOrderLineItemsPreparedForPickup"],
"extensions"=>
{"code"=>"undefinedField", "typeName"=>"Mutation", "fieldName"=>"fulfillmentOrderLineItemsPreparedForPickup"}},
{"message"=>"Variable $input is declared by fulfillmentOrderLineItemsPreparedForPickup but not used",
"locations"=>[{"line"=>1, "column"=>1}],
"path"=>["mutation fulfillmentOrderLineItemsPreparedForPickup"],
"extensions"=>{"code"=>"variableNotUsed", "variableName"=>"input"}}]}