Prepare order
create_orderRead or update the order for the final quote. Pass explicitly available renewal, referral or channel codes in coupon_codes before payment starts. Tell the person which codes were added and their valid/invalid status. Give confirmation_url to the person to review codes and pay themselves. Never submit payment for them. Save order_id and order_capability before passing confirmation_url to the person. After payment, use get_order even if the original session is lost.
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_id": "<request_id>",
"request_capability": "<request_capability>",
"quote_id": "<quote_id>",
"expected_revision": "<expected_revision>",
"idempotency_key": "<idempotency_key>"
},
"name": "create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| otp | No | Deprecated; ignored. | |
| quote_id | Yes | ||
| request_id | Yes | ||
| coupon_codes | No | ||
| idempotency_key | Yes | ||
| expected_revision | Yes | ||
| request_capability | Yes |