generate_direct_checkout_link
Create a direct Shopify checkout URL from product variant IDs and quantities, sending customers straight to payment with an optional discount code.
Instructions
Generate a direct Shopify checkout URL with 1 or more specific product variant IDs and quantities, allowing users to proceed directly to payment in 1 click.
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": {
"items": "<items>"
},
"name": "generate_direct_checkout_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | List of items to add to checkout | |
| discountCode | No | Optional discount code to apply at checkout |