Create a payment link
create_checkout_linkOpen a Stripe checkout session for one edition and return its payment link. Give that link to the buyer: they enter their card on Stripe's own page, and the ebook is emailed to them once the payment clears. The link expires after 24 hours, and nothing is charged until the buyer pays. For a paperback, no direct link is returned — print orders need a shipping address, so the buyer is sent to the product page instead. The returned price is always in euros (currency is EUR); if another currency was requested, Stripe converts it on its payment page and the amount charged there differs from price — checkout_currency names that currency, so do not announce price in it. Pass the item_id returned by list_editions whenever you have one.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_checkout_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Defaults to ebook. Used only when item_id is not given. | |
| edition | No | Defaults to bilingual. Used only when item_id is not given. | |
| item_id | No | Edition identifier returned by list_editions. Preferred. Never build one yourself. | |
| book_uid | No | Used only when item_id is not given. | |
| currency | No | ISO 4217 code the buyer is charged in, e.g. EUR, USD, GBP, JPY. Defaults to EUR. | |
| buyer_country | No | The buyer's country as an ISO 3166-1 alpha-2 code, e.g. US, GB, JP. Pass it when known: it sets the tax and any current discount, so the buyer pays the same price as on the website. Pass the same buyer_country to both calls. In India the paperback price includes delivery. | |
| known_language | No | Language already known. Used only when item_id is not given. | |
| third_language | No | Required for a trilingual edition. Used only when item_id is not given. | |
| learning_language | No | Language being learned. Used only when item_id is not given. | |
| interface_language | No | Language of the Stripe payment page, of the product page and of the emails sent to the buyer. Defaults to the language the reader already knows. |