Update Merged Shipment
mailhub_update_merged_shipment
Change the recipient address (US only), the parcel, or both, of a merged Shipment that has no Label yet. The Shipment owns these details: the Orders keep their own, and editing one Order's Draft does not change the Shipment. Quoted Rates are dropped, so rate the Shipment again before buying.
Permission and safety
| Changes data | Yes |
| Confirmation | Required — confirm: true |
| Spends funds | No |
| Permission | Update access to Orders |
Confirmation is enforced by the server — see Confirmations & Spend Safety.
Input
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
shipmentId | string | Yes | — | The merged Shipment's UUID |
toAddress | object | No | — | The complete new recipient address, in the same shape as on mailhub_create_order; omit to keep it |
parcel | object | No | — | The new box, in the same shape as on mailhub_create_order; omit to keep it |
confirm | boolean | No | false | Defaults to false; the call is refused unless the value is the boolean true |
Send toAddress, parcel, or both. Use only the details the user gave.
Example input
{
"shipmentId": "33333333-3333-3333-3333-333333333333",
"parcel": {"weight": 6, "length": 14, "width": 10, "height": 8},
"confirm": true
}
Output
The merged Shipment and its Orders, passed through from Mailhub, with a note that one Label will cover every Order in it.
Rules and common tool-specific errors
- Neither
toAddressnorparcelis refused withMCP_MISSING_FIELD. - A recipient that looks made up is refused with
MCP_PLACEHOLDER_VALUE. - A Shipment with a Label, or one being bought, is refused with
Shipment.MergeHasActiveLabelorShipment.MergePurchaseInProgress. - Access and shared failures are listed in Errors & Troubleshooting.
Next
mailhub_get_shipment_rates— rate the Shipment again.