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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merchant_url | Yes | ||
| checkout_id | Yes | ||
| discount_codes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||