Hi all,
When creating an order via the GraphQL API, there are the fields:
"shippingLine": {
"price": "",
"shippingRateHandle": "",
"title": ""
},
However, I can’t see how I can retrieve the “shippingRateHandle” from the API in the first place. In fact, I can’t see how you can retrieve any costs associated with any delivery profiles / shipping rates at all via the GraphQL API.
There is the ShippingZone REST API: https://shopify.dev/docs/api/admin-rest/2023-01/resources/shippingzone - however, this doesn’t appear to return a field which maps back to the GraphQL “draftOrderCreate” “shippingLine > handle”.
Can anyone shed any light on how shipping rates can be retrieved and then included as appropriate when creating an order?
Thanks very much ![]()