Attach delivery proof
attach_proofAttach proof of delivery to a receipt. Requires the edit_token from record_approval. Moves approved to delivered, or to disputed when status is disputed. over_cap is true when actual_amount exceeds the price cap. Does not move money. Same as POST /v1/receipts/:id/proof.
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": {
"receipt_id": "<receipt_id>",
"edit_token": "<edit_token>",
"type": "<type>",
"value": "<value>"
},
"name": "attach_proof"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Proof kind. Examples: order_confirmation, tracking, url, hash. | |
| value | Yes | The proof itself: confirmation id, tracking number, URL, or hash. | |
| status | No | Omit to mark an approved receipt delivered. Pass disputed to dispute it. | |
| edit_token | Yes | Secret returned once by record_approval. Required to attach proof. | |
| receipt_id | Yes | Receipt id from record_approval (rcpt_…). | |
| actual_amount | No | Amount actually charged. over_cap is true when this is above the price cap. |