How to change the Sales channel name when adding an order via API

APIANT
Shopify Partner
21 1 5

I'm trying to customize the name that shows up here in the order:

APIANT_0-1623763976306.png

 

And here in the Stats dashboard:

APIANT_1-1623764052027.png

 

I thought the source_name was the way to do it according to the doc: https://shopify.dev/docs/admin-api/rest/reference/orders/order

source_name
"source_name": "web"

Where the order originated. Can be set only during order creation, and is not writeable afterwards. Values for Shopify channels are protected and cannot be assigned by other API clients: web, pos, shopify_draft_order, iphone, and android. Orders created via the API can be assigned any other string of your choice. If unspecified, then new orders are assigned the value of your app's ID.

 

I am able to change the source_name and when fetching the order I just placed, I see:

"referring_site":"Mindbody",
"source_identifier":null,
"source_name":"Mindbody",
"source_url":null,

But the new Sales channel "Mindbody" is not showing on the order or the report. The App ID is still showing.

 

Do I also need to provide it a source_identifier?

 

0 Likes
APIANT
Shopify Partner
21 1 5

Ah, maybe I should create additional sales channels before posting sales to them?:

https://shopify.dev/docs/admin-api/rest/reference/sales-channels

0 Likes
awwdam
Shopify Staff
Shopify Staff
92 10 4

Hey @APIANT,

I took a look through your first post, and can confirm that the "source_identifier" field is currently read-only and not related to the app name displayed to merchants in the Admin - I was also able to find a forum thread that might offer some more insight.

The name that you are outlined in your screenshots would be the name you have set for your app, and can be updated in from the Partner Dashboard by heading to the Apps > {click app name} > App Setup menu! 

- Cheers!

awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me 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

0 Likes