importing orders via api -- pos location name

milosz_meller
Shopify Partner
1 0 0

hello,

 

is it possible to import (point of sale) orders via api such that the POS location name in analytics is populated properly (instead of N/A)? we need to be able to set a filter that selects both historical (imported) and "real" orders created via the shopify pos app.

 

setting source_name to pos returns "Source name cannot be set to a protected value by an untrusted API client."

 

thanks

0 Likes
Josh
Shopify Staff
Shopify Staff
1131 82 198

Hey there, 

 

This isn't something currently possible, I'm afraid. It does look to be something that has already been raised internally though and is being discussed, so keep your eyes peeled on our changelog for any new developments! 

0 Likes
aleksandarZlii
Shopify Partner
1 0 1

Hi Josh

 

I have a similiar issue. 


When creating an order using the order API I would like to set the Sales Channel as POS.

I seems though that Shopify sets the Sales Channels to the name of the private APP whose APIs I am using to call the order API.

 

I have tried setting the source_name to pos but I get the error " Source name cannot be set to a protected value by an untrusted API client.".

Does the error mean that if my private APP gets the status of "trusted API client" that I could then freely use the source_name:pos parameter?

 

My issue also stems from your analytics->report functions aggregates sales based on sales channels. 

mannyg
New Member
1 0 0

Hi Josh,

 

Have there been any further discussions here?  Do you think we'll be seeing this soon?

0 Likes
Josh
Shopify Staff
Shopify Staff
1131 82 198

Hey folks, 

 

I'm not aware of any recent updates on this topic, I'm afraid. I wish I had better news but I don't have anything new that I can share.

0 Likes
Maris
Shopify Partner
307 5 64

Hey, @Josh !

 

How about now?

Our clients need to migrate Orders as if they came from POS, but how?

It would be really valuable if it was possible to set the proper source for those Orders, like "POS".

 

Thanks!

 

Maris

Matrixify (Excelify) | Bulk Import Export Update Migrate | https://matrixify.app
0 Likes
APIANT
Shopify Partner
21 1 5

I have the exact same issue as @aleksandarZlii 

Any news on this?

0 Likes
APIANT
Shopify Partner
21 1 5

It doesn't look like setting a value of "pos" for source_name is allowed via API:

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.

 

But when I give it another string, it is still using my app ID.

 

{
   "order":{
      "email":"test+309@apiant.com",
      "billing_address":{
         "first_name":"Rebecca",
         "last_name":"Armstrong",
         "phone":"3108801234",
         "province":"PA",
         "country":"US"
      },
      "location":"37372952676",
      "referring_site":"Mindbody",
      "shipping_address":{
         "first_name":"Rebecca",
         "last_name":"Armstrong",
         "phone":"3108801234",
         "province":"PA",
         "country":"US"
      },
      "source_name":"Mindbody",
      "tags":"Mindbody",
      "line_items":[
         {
            "variant_id":"39338710237284",
            "quantity":1
         }
      ]
   }
}

 

 

APIANT_0-1623681664396.png

 

0 Likes
APIANT
Shopify Partner
21 1 5

Digging a little further, it looks like the source_name "Mindbody"  id worked when I fetch the order:

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

 

But when I look at the order in the Shopify UI or the Sales by channel report, it shows the APP_name and not the source_name:

APIANT_0-1623682466508.png

 

 

0 Likes