Preview checkout
preview_checkoutRead the seller of record, unit price, shipping, tax, and total for an instant-checkout listing. Does not charge a card. Requires buyer read access. Pass the returned checkout_id to confirm_purchase. Requires sign-in with buyer access. OAuth discovery: /.well-known/oauth-authorization-server (scope buyer:read).
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": {
"product_id": "<product_id>",
"quantity": "<quantity>",
"idempotency_key": "<idempotency_key>"
},
"name": "preview_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Alias for product_id. | |
| slug | No | Alias for product_id. Public listing slug. | |
| quantity | Yes | Units to buy. Must be below the quote threshold. | |
| productId | No | Alias for product_id. | |
| product_id | Yes | Exact id from search, for example product_2731. productId, id, and slug are aliases. | |
| idempotency_key | Yes | Required. 8–200 characters (letters, digits, . _ : -). The same key returns the original result for 24 hours and is sent to Stripe as Idempotency-Key. | |
| shipping_address_id | No | Optional. Shipping is the listing's shipping price; tax is not collected on this path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax | No | ||
| status | Yes | ||
| is_test | No | ||
| currency | No | ||
| quantity | No | ||
| tax_cents | No | ||
| terms_url | No | ||
| expires_at | No | ||
| preview_id | No | ||
| product_id | No | ||
| checkout_id | Yes | ||
| total_cents | Yes | ||
| product_name | No | ||
| claims_summary | No | Inspection is 3 days after the buyer marks the order received. Short-unit claims apply beyond a 5% tolerance. Salvage is as-is. Not-received claims are allowed while the order is shipped. | |
| shipping_cents | No | ||
| subtotal_cents | No | ||
| buyer_fee_cents | No | ||
| seller_of_record | Yes | ||
| unit_price_cents | No | ||
| claims_policy_url | No | ||
| confirmation_token | No | ||
| seller_fee_percent | No |