post_order_createfromorder
Creates a new order by copying an existing order number; set SubmitOrder to true to submit it, or false to return an order summary.
Instructions
[Order] POST /api/v{version}/order/CreateFromOrder Submits a new order from an old order and if the "SubmitOrder" property is set to true. If the "SubmitOrder" property is set to false, then an order summary will be returned.
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": {
"request": "<request>",
"orderNumber": "<orderNumber>"
},
"name": "post_order_createfromorder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes | ||
| 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. |