How to add a customer to an Object Programatically

the_h
Shopify Partner
9 0 2
Is there a way to programatically add a customer to an order?

I've tried to
  • update the order through the Rest Admin api endpoint PUT order id but all that does is update the email on the order object (even if the email is attached to an existing customer).
  • update the order through the GraphQL orderUpdate mutation. Same outcome as before.
Any and all help would be much appreciated thanks!
Replies 0 (0)