Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Draft Order Unable to Update Attributes, Note or Metafields

Solved

Draft Order Unable to Update Attributes, Note or Metafields

yesyo
Shopify Partner
15 1 3

After upgrading to API 2024-07 (as specified in the 2024-07 update) and checking the required cart instructions, we noticed that the UI components are now appearing on the draft order checkout page. However, I have encountered two issues:

 

  1. We're unable to query the Storefront API. The API returns a 403 error with the message "Channel not found for the given token." The same API call works fine for regular orders.
  2. The attributes "instructions.attributes.canUpdateAttributes," "instructions.notes.canUpdateNote" and "instructions.metafields.canSetCartMetafields" always return false. We're unsure if this is by design. If it is, are there any workarounds? If it is not, what are we doing wrong?
Accepted Solution (1)

yesyo
Shopify Partner
15 1 3

This is an accepted solution.

Shopify customer service has responded with the following information:

 

  1. They have confirmed that this is a bug and are writing  a PR to fix it.
  2. canUpdateAttributes will keep returning false for draft orders for the foreseeable future. The reason for this is that draft orders don't support all checkout features at the moment but are under active development.

View solution in original post

Replies 2 (2)

ShipNotIncluded
Shopify Partner
16 0 2

I would like to know the answer to this as well, as we haev an app installed that uses Draft Orders to manage the checkout, which will impact an extension we are using that needs to save attributes.

yesyo
Shopify Partner
15 1 3

This is an accepted solution.

Shopify customer service has responded with the following information:

 

  1. They have confirmed that this is a bug and are writing  a PR to fix it.
  2. canUpdateAttributes will keep returning false for draft orders for the foreseeable future. The reason for this is that draft orders don't support all checkout features at the moment but are under active development.