I would like to mark the orders as fulfilled via the Admin APIs. We sell eSIM cards which are digital products and do not require shipping. We have essentially built a mechanism that listens to the webhook when a customer places an order and sends the relevant product to the customer via email. After the mail has been sent, I would like to mark the order as fulfilled via the Admin REST APIs as we can have a situation where manual intervention might be required and those orders shall not be marked as fulfilled.
I have tried following the tutorial to fulfil the request. I can retrieve the fulfilment orders by using the API https://shopify.dev/docs/api/admin-rest/2023-01/resources/fulfillment#get-orders-order-id-fulfillments
However, I am unable to comprehend the next steps as the product does not require shipping and only requires the change in status from unfulfilled to fulfilled.
I tried my hands on https://shopify.dev/docs/api/admin-rest/2023-01/resources/fulfillment#post-fulfillments based on the fulfilment_order_id I received in the previous API call only to get a 404 Not Found error.
I simply need a way to change the status of the order to fulfilled. Any guidance will be greatly appreciated.


