Hi!
I have an order that I want to mark as fulfilled. In the admin frontend it is as simple as clicking “Mark as fulfilled”.
The json for the order then looks like this:
```json
…
“displayFulfillmentStatus”: “FULFILLED”,
“fulfillments”: [
{
“id”: “gid://shopify/Fulfillment/6840712003949”,
“displayStatus”: “FULFILLED”,
“events”: {
“nodes”: []
}
}
],
“fulfillmentOrders”: {
“edges”: [],
“nodes”: []
}
…
```
How can one achieve the same using the GraphQL Admin API?
I couldn’t find any fitting mutations for the Order object. I just found (somewhat contradicting) suggestions:
- Create a fulfillment fulfillmentCreate - GraphQL Admin - but this needs a FulfillmentOrder, and as you can see in the json above the order doesn’t have on
- Create a fulfillment event [GraphQL] How to mark a order as delivered (fulfilled) using the GraphQL API? - #4 by makriman - but this needs a Fulfillment in the first place
So, whats the simplest way to mark an order as fulfilled using GraphQL?