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
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 | |||