Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi there,
I have a custom app using the orderCreate mutation to import orders to Shopify. Is there a way to populate the Channel/sourceName when using a custom app?
I've sent the following where the sourceName was the integration name, and another test where it was the ID.
mutation{ orderCreate( options: { inventoryBehaviour: DECREMENT_OBEYING_POLICY }, order: { test: true, sourceName: "Integration Name", ... } ) { order { id totalPrice } userErrors { field message } } }
When reviewing the documentation for sourceName, it seems like it has to be a Shopify App. Is that correct?
https://shopify.dev/docs/api/admin-graphql/2025-01/mutations/orderCreate
Thanks in advance!
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025