Creating order in different sales channel via API

MrBasicX
Shopify Partner
5 0 4

Hello there,

I am working with a client on a custom workflow for wholesale orders where we will be creating and fulfilling parts of a wholesale order. Where the wholesale customer will place order which will go in the draft orders (ref: https://help.shopify.com/en/manual/online-sales-channels/wholesale/channel). From there we will be creating normal orders using the Rest API (https://shopify.dev/docs/admin-api/rest/reference/orders/order#create-2021-04) by taking data from original Wholesale draft order.

Everything is working as expected. Issue is that my client wants to create the order (which we are creating using the Rest API) in the Wholesale Sales Channel for better reporting. Currently the orders created come in the app's own sales channel (checked this in the orders page by filtering via sales channel). There is nothing I am able to found on this. Is it possible to create orders in different sales channels than app's own? Is there any way to edit the sales channel for an order? If anyone can help with this, I will be really grateful.

I have already contacted the support for this but and was directed here to ask the question which i am doing right now.

TLDR: Is there any way to create an order through API (Rest/GraphQL) in different sales channel than the app's own sales channel?

Reply 1 (1)

Luke_K
Shopify Staff
402 66 98

Hey @MrBasicX 

I'd taken a look into this for you, and there isn't a way to do this presently in GQL / REST unfortunately.

When the order is created from a Shopify channel the values you are trying to set are read only. From REST Order resource docs for example :

"Values for Shopify Channels are protected and cannot be assigned by other API clients"  (such as Sales Channels).

Hope this helps explain more. 

 

 

 

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!