Is there a way I can get a list of currently available shipping methods so I can display them to the customer inside a 3rd party app? Very similar to what checkout does.
I’d love to know is there a way I can also get a shipping time information using Admin API? And what’s the purpose of id property? Can I use it during Order creation (also using Admin API)?
Hi! A question. I’m trying to build a shipping discount app using Shopify functions and shipping discount API. When I query cart graphQL API for delivery methods, I get this response:
To apply the discount I use targets.deliveryOptions.handle . But how I can get this deliveryOption handle from the admin API( to surface the available options for user in the UI)?
When I’m executing your query I only get id and name, no handle.
You can show the names of your shipping methods by using the query above and then pass the names to the function and filter out the handles with the same name.
Like This code: