A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
We have a unique requirement to get the employee associated with a POS order so we can calculate commission on that order. Does anyone know whether or not a POS order will include the employee name/ID in the orders API?
Solved! Go to the solution
This is an accepted solution.
HI @kingstore. If you are using this method to attribute sales to staff on a POS order. Then you can recover that staff detail from the OrderTransaction API. You can find information on it here.
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
This is an accepted solution.
`OrderTransaction` is a GraphQL object, so you should be able to access the `OrderTransaction.user` field in GraphQL.
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
This is an accepted solution.
HI @kingstore. If you are using this method to attribute sales to staff on a POS order. Then you can recover that staff detail from the OrderTransaction API. You can find information on it here.
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
This is an accepted solution.
`OrderTransaction` is a GraphQL object, so you should be able to access the `OrderTransaction.user` field in GraphQL.
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