Why is the shippingLine null in my draftOrder on a mobile app?

Topic summary

Issue: A mobile app using the Shopify Admin API calls draftOrderCalculate to fetch shipping rates, then attempts createDraftOrder with the chosen rate, but the mutation returns ready: false and shippingLine: null.

Details:

  • Returned draft order sample shows id, name, ready=false, shippingLine=null.
  • shippingLine = the selected shipping method on a draft order; draftOrderCalculate = API call to compute available rates before creating the draft.

Follow-up insight: Another participant asks whether “Carrier and app rates” are configured in the Shopify dashboard, noting they’ve seen this issue correlate with those rate settings.

Status: No confirmed fix or root cause shared. Open question; potential lead is to review/adjust Carrier and app rates configuration.

Summarized with AI on January 13. AI used: gpt-5.

Hi,

We have a mobile app that uses the shopify admin api. We use draftOrderCalculate to get available shipping rates. After that we try to create a draftOrder with the selected shipping line but the createDraftOrder mutation returns ready is false and shippingLine is null.

{
  id: 'gid://shopify/DraftOrder/x',
  name: '',
  ready: false,
  shippingLine: null
}

Does anyone know why?

Thanks!

1 Like

Hi, did you find a fix for this? And out of interest, do you have any shipping options set under “carrier and app rates” in the shopify dashboard? We found that this issue is associated with those rates somehow.