Move a held order to a provider that ships there
reroute_orderMove a held order to the same design on a fulfillment provider that ships to the delivery address, reassigning printing and closing the original order.
Instructions
Move an order that is held because its fulfillment provider cannot deliver to the address (get_order_details shows hold_details.code destination_unsupported) to the same design on a provider that ships there. Pass the product_uuid from hold_details.suggested_reroute.product_uuid; use a different product only if the user names it. The platform creates the order in the store that sells that product, sends it there as a draft, and closes the held original; the storefront link and tracking move with it. Allowed only when the target product's store is connected to the SAME storefront the order came from (an order entered by hand, with no storefront link, may move to any store). When suggested_reroute is null no move is allowed: do not call this, tell the user to cancel the order and refund the customer on their storefront. Refusals (HTTP 409) carry a merchant-readable message; relay it: not_destination_held, destination_unsupported, product_not_in_connected_store, reroute_variants_missing, recipient_unavailable, reroute_channel_mismatch. Ask the user before calling: it changes which provider prints and charges for the order.
[#d8b77d]
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_uuid": "<order_uuid>",
"product_uuid": "<product_uuid>"
},
"name": "reroute_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | No | Workspace uuid (agency accounts). | |
| order_uuid | Yes | The held order uuid (from list_my_orders / get_order_details). | |
| product_uuid | Yes | The product to fulfill the order with: hold_details.suggested_reroute.product_uuid, unless the user names another product with the same design. |