ucp_checkout_create
Create a new checkout session for a UCP merchant by providing merchant URL, items, buyer details, and currency. Returns checkout ID, status, total, and line items.
Instructions
Create a new checkout session with a UCP merchant.
Args: merchant_url: The base URL of the UCP-enabled merchant items: List of items to purchase, each with 'id' and 'quantity' buyer_name: Full name of the buyer buyer_email: Email address of the buyer currency: Currency code (default: USD)
Returns: Dictionary containing: - checkout_id: The ID of the created checkout session - status: Current status of the checkout - total: Total amount in smallest currency unit (e.g., cents) - line_items: List of items in the cart
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>",
"items": "<items>",
"buyer_name": "<buyer_name>",
"buyer_email": "<buyer_email>"
},
"name": "ucp_checkout_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merchant_url | Yes | ||
| items | Yes | ||
| buyer_name | Yes | ||
| buyer_email | Yes | ||
| currency | No | USD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||