Rest API how set order as delivery

Hello, thank you very much, your solution works. I hadn’t understood the nuance of the location_id, which I thought was the customer’s address, not our warehouse’s.

Thank you very much,
Guillaume