Prepare checkout
create_checkoutUse this when the person pays for the book themselves. Prepares a Stripe checkout link for the book, using the bookToken. The book does not need to be saved first. Stripe collects their email, delivery address and payment; no charge occurs until they confirm there. Collect the destination country first. Reuse idempotencyKey on retry.
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": {
"bookId": "<bookId>",
"bookToken": "<bookToken>",
"country": "<country>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "create_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bookId | Yes | ||
| country | Yes | ||
| quantity | No | ||
| bookToken | Yes | ||
| idempotencyKey | Yes |