Hello!
We are implementing cash on delivery function in our system. We want to send customer an order and give him tracking number. When the customer receive and pay for the order (we are using some shipping provider API for that), we want to update fulfilment and payment status in Shopify system. As I know the only way to give tracking number is to create a fulfillment and created fulfilment means fulfilled order? So is it even possible to update tracking number without updating fulfillment status?
Hey @serious_tom - there are a couple of ways you can update the tracking info for a fulfillment and it should not require you to update the fulfillment status. There’s this mutation here if you’re using our GraphQL API, or this call in REST.
Hope this helps!
Al | Shopify Developer Support
Hi @ShopifyDevSup ,
in the mutation provided mutation here, there is a required parameter “fulfillment_id” in rest and “fulfillmentId” in graphQL to make request and same is required in the rest API call.
This fulfillment_id value is the the value which we get after creating a fulfillment request with the request on https://shopify.dev/docs/api/admin-rest/2023-04/resources/fulfillment#post-fulfillments this endpoint, apart from this we don’t have fulfillment_id to pass in the calls due to which I am unable to add tracking information without changing the status from “accepted” to “fulfilled”.
i hope i have made my point clear and would definitely prefer if you can help me in this matter
Hey @shivamAgarwal , you can query the FulfillmentOrder.fulfillments to get the fulfillment ID you’re looking for.
For a more high-level overview on how to best manage the fulfillment process, reviewing our documentation on fulfillment service apps will be useful! https://shopify.dev/docs/apps/fulfillment/fulfillment-service-apps
Hope that helps!