UCP Checker

checkout_create

Create a stateless checkout session for one or more products and return a continue_url to redirect the shopper to. Does not place the order.

No verified stores expose this tool yet.

Input schema

inputSchema
{
    "type": "object",
    "required": [
        "line_items"
    ],
    "properties": {
        "context": {
            "type": "object",
            "properties": {
                "locale": {
                    "type": "string",
                    "description": "BCP 47 locale, e.g. 'en-US'."
                },
                "currency": {
                    "type": "string",
                    "description": "ISO 4217 currency code, e.g. 'USD', for price-filter denomination and price display."
                }
            },
            "description": "Optional request context."
        },
        "line_items": {
            "type": "array",
            "items": {
                "type": "object",
                "required": [
                    "item"
                ],
                "properties": {
                    "item": {
                        "type": "object",
                        "required": [
                            "id"
                        ],
                        "properties": {
                            "id": {
                                "type": "string",
                                "description": "UCP product or variation id, e.g. 'prod_123' or 'var_456'."
                            }
                        },
                        "description": "The product or variation to add."
                    },
                    "quantity": {
                        "type": "integer",
                        "description": "Quantity to purchase (a positive integer). Defaults to 1."
                    }
                }
            },
            "description": "Items to purchase (at least one)."
        }
    }
}

Explore protocol data