On Friday the “serviceCode” property was available. On Monday it’s changed to “code”. The documentation still says “serviceCode”. Shopify GraphiQL App says its “code”. Please halp.
Nevermind, probably an issue with my code. I see the names are different on the fulfillment order and order.
Update: The above is a wrong diagnosis of the problem. Identical queries to the same API seem to producing two different results between Friday and Monday. The former returned deliveryMethod the latter did not.
Update: Update: Can confirm that for whatever reason, deliveryMethod is not returning any longer.
curl -X POST https://example.myshopify.com/admin/api/2023-10/graphql.json -H 'Content-Type: application/json' -H 'X-Shopify-Access-Token: xxxxxxxxxxxxxx' -d '{"query": "query { shop { assignedFulfillmentOrders( first: 1,locationIds: [\"gid://shopify/Location/1234\"],assignmentStatus: FULFILLMENT_REQUESTED){ edges{ node{ id assignedLocation { location{ id isActive name } name } deliveryMethod{ id serviceCode methodType }} } } } }"}'
Additional information: I’ve been testing fulfillment on a development store. The orders are several days old and the fulfillment requests have been sent / cancelled repeatedly. These orders now have deliveryMethod null. A new order that I placed does not have a null deliveryMethod.
Responded to your linked thread with a response form the Delivery folks.
> Identical queries to the same API seem to producing two different results between Friday and Monday. The former returned deliveryMethod the latter did not.
Can you please provide store/order details? (DM is fine).