REST Admin Order API, name field can be set

Solved
Highlighted
Shopify Partner
18 1 3

Greetings, 

 

According to the REST API documentation here:

The name field should be read only. However, I am able to set this field when I create orders with this API. Can someone confirm what the behavior should be? I'm hesitant to rely on setting this field since it's contrary to what the documentation says, but it does solve my immediate issue.

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
493 98 88

This is an accepted solution.

 

Hi @jbgrunewald 

 

Yes that is correct at this time you are able to POST an order with an order name. The field, however, can not be updated on an existing order and acts as a read only value in this case. Any behavior that changed this would be versioned and notified prior in our changelog, so I feel you should be able to rely on this. 

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


1 Like
Highlighted
Shopify Partner
18 1 3

Thanks for the prompt response!

0 Likes
Highlighted
New Member
4 0 0

Hi 

 

0 Likes
Highlighted
Shopify Partner
18 1 3

The method I'm referencing, is done using the admin API. It's not a configuration that can be managed in the Admin UI for your store. You would need to make requests for each order the admin API for the backend store to create orders with unique names. I'm not sure if there is an alternative way to set. What API do you use to make requests from you three sites?

0 Likes