Cancel a purchase or sale
cancel_purchaseCancels a purchase before the handover, when the person (the buyer, or the seller) asks to. The buyer's card was only held, so the hold is released and nothing is charged, and the other side is told. When the buyer cancels, the item goes back on sale; when the seller cancels, the listing comes down unless put_back_on_sale. Confirm with the person first, then pass confirmed: true. Not possible after the handover. Needs sign-in.
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": {
"sale_id": "<sale_id>",
"confirmed": "<confirmed>"
},
"name": "cancel_purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | Only when the person is both buyer and seller (a test): which side to act as. | |
| reason | No | Why, in the person's words, if they gave one. Shown to the other side. | |
| sale_id | Yes | ||
| confirmed | Yes | True only once the person has confirmed they want to cancel. | |
| put_back_on_sale | No | The seller only: put the item back on sale instead of taking the listing down. |