(for some specific orders, we require a specific different prefix)
The API call returns success, but the order name isn’t updated.
If we try to also update order.note in the same call, for testing, the note is updated, but name isn’t.
Would you have any insight on how to update order names?
We need to change only the prefix, not the number. Is there a way to update prefix separately for an existing order?
Or, somehow, specify a custom prefix when creating a new order using POST? (this must be possible, as the POS orders have a different prefix) – this would still be better than nothing, even if PUT doesn’t work for now.
(we don’t want to change shop settings prefix, create the order, and then change shop settings prefix back to original)
Order name is immutable. They are generated based on the merchant’s preferences. The merchant specifies a prefix and a starting index, and all order names are generated sequentially.
I would not assume anything. I would spend 30 seconds testing the question out though. And prove that changing items is again, immutable. An order is an order is an order. You cannot edit them. Today anyway. For very good reason. If you change an order, the side-effects are numerous. It is way too easy to blow off your leg at the knee compared to helping your cause.
So again, if you need to re-arrange things in an order, blow it away, and remake it as you need it. That way, no editing issues come into play. A script to replay orders takes mere minutes to write, or you can use one of those order editing Apps floating around out there to do same.
I agree a script to recreate orders is easy to write. It’s notifying all upstream and downstream services of the change that’s the issue.
We may resort to tags to indicate backordered item. It appears they can be updated, added, or removed.
I don’t think it’s your problem. But if there are any Shopify devs/PMs out there:
Aside from not being able to use the API to do what I need - the overarching issue for me is the docs need to be updated to indicate which items I can change.
The documentation is pretty clear on what you can change when you look at the PUT explanation. True though, it is not crystal clear, and that is probably due to it being a rather in-flux endpoint. Order is one of the kingpins of the whole Jenga pile, and if you push/pull on even a small seemingly innocuous piece, the whole pile could tumble down a rabbit hole to Wonderland. We wouldn’t want that now would we…
It seems that this is not true and that the documentation might be wrong, I wanted to know how I can proceed by duplicating an order..
I guess that I can duplicate an order by copying the result of a GET request and putting that in a POST request, but I think I should remove some data that exclusively belongs to that previous order (things like IDs etc.) is it possible to know what are the thing to remove if that make sense?
It seems that this is not true and that the documentation might be wrong, I wanted to know how I can proceed by duplicating an order..
I guess that I can duplicate an order by copying the result of a GET request and putting that in a POST request, but I think I should remove some data that exclusively belongs to that previous order (things like IDs etc.) is it possible to know what are the thing to remove if that make sense?