What's your biggest current challenge? Have your say in Community Polls along the right column.
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.

Associating Draft Orders to Staff via graph API

Associating Draft Orders to Staff via graph API

oliver-city
Visitor
1 0 0

Does anyone know if there is a way to "associate" a staff account to a draft order when creating/sending via the Admin GraphQL api though a custom app.

 

Currently when passing the email send from it doesn't match it to a registered staff account.

 

Sincerely

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 525

Hi @oliver-city we have checked into this and it appears that might not be possible with the existing Draft Orders API, however we would like to offer to mark this post as a suggested feature to our production team. We did also want to suggest as a possible workaround you can track Users for CommentEvents https://shopify.dev/api/admin-graphql/2022-10/objects/CommentEvent,  If you needed to track associated staff with the API it would be possible with this provided they had created a comment in the admin on the draft order. Alternatively you could look at options to use Metafields as well.

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