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.
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.
Would you mind sharing how you are able to do this? I have 3 websites I want to point to one store, and want to have unique prefixes for the order.name for each of them. I’m looking now at whether it can be done in the additional scripts in Shopify>Settings>Checkout – but I’m doubtful it can be done there. I figure it will have to be done on each website when the order is fired over to shopify from the cart.
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?