Prepare checkout
prepare_checkoutUse this after an accepted offer to review the amount and get a single-use confirmation. Use pay_and_access to spend; this tool never pays. Input: offer_id, or resource_id with optional quantity for the list price. Returns the checkout summary, confirmation, total, and expiry.
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": "prepare_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer_id | No | Accepted offer id from negotiate_price. Omit it only when passing resource_id for the list price. | |
| quantity | No | Optional quantity for a list-price checkout, from 1 to 100. Defaults to 1. | |
| resource_id | No | Resource id, used to prepare the list price when you have no offer_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| paid | Yes | ||
| payee | Yes | ||
| network | Yes | ||
| options | Yes | ||
| payment | Yes | ||
| testnet | Yes | ||
| offer_id | Yes | ||
| quantity | Yes | ||
| resource | Yes | ||
| expires_at | Yes | ||
| total_usdc | Yes | ||
| transaction | Yes | ||
| confirmation | Yes | ||
| instructions | Yes | ||
| network_name | Yes | ||
| schema_version | Yes | ||
| uses_remaining | Yes | ||
| expires_at_europe_madrid | Yes |