Is it possible to update order tracking number without fulfilling an order?

Is it possible to update order tracking number without fulfilling an order?

serious_tom
Visitor
1 0 0

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?

Replies 3 (3)

ShopifyDevSup
Shopify Staff
1453 238 498

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

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

shivamAgarwal
Shopify Partner
1 0 0

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

ShopifyDevSup
Shopify Staff
1453 238 498

Hey @shivamAgarwal , you can query the FulfillmentOrder.fulfillments to get the fulfillment ID you're looking for. 

- https://shopify.dev/docs/api/admin-graphql/2023-10/objects/FulfillmentOrder#connection-fulfillmentor... 

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! 

- Kyle G.

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog