ucp_checkout_update
Apply discount codes to an existing checkout session and retrieve updated totals, discounts applied, and status.
Instructions
Update an existing checkout session (e.g., apply discount codes).
Args: merchant_url: The base URL of the UCP-enabled merchant checkout_id: The ID of the checkout session to update discount_codes: List of discount/promo codes to apply
Returns: Dictionary containing updated checkout information: - checkout_id: The checkout session ID - status: Current status - total: Updated total amount - discount_applied: Amount discounted - discounts: Details of applied discounts
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": {
"merchant_url": "<merchant_url>",
"checkout_id": "<checkout_id>"
},
"name": "ucp_checkout_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merchant_url | Yes | ||
| checkout_id | Yes | ||
| discount_codes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||