post_order_item_createcartfromorder
Creates a new cart from an existing order by order number, optionally applying country and currency codes to set shipping rules and cart pricing.
Instructions
[MouserCart] POST /api/v{version}/order/item/CreateCartFromOrder Creates new cart from an order.
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": {
"orderNumber": "<orderNumber>"
},
"name": "post_order_item_createcartfromorder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | API version. Defaults to 1. | 1 |
| countryCode | No | Optional. If not provided, the billing/shipping address associated with the account will be used to determine country code. If provided, country code will be used to determine shipping rules. | |
| orderNumber | Yes | ||
| currencyCode | No | Optional. If not provided, the default currency code based on the billing/shipping address associated with the account will be used to determine currency code. If provided, currency code will be used to price the cart. |