Update order
update_orderChange a Medusa order's email, shipping or billing address, or metadata. Send only fields to change; an address replaces the entire previous address.
Instructions
Changes the order's email, shipping or billing address, or metadata (e.g. an internal note). Send only what should change; an address replaces the whole previous address.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"order": "<order>"
},
"name": "update_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| order | Yes | Order ID or order number | |
| metadata | No | Merged into existing metadata; an empty string deletes a key | |
| billing_address | No | Postal address | |
| shipping_address | No | Postal address |