Attach the receipt to the order
attach_orderCall this right after placing an order you checked with check_cart_before_checkout, validate_purchase_plan or check_compatibility: link the receipt_id to the order number, AP2 cart or intent mandate, ACP checkout session, UCP checkout or payment reference. This makes a Decision Record: if the purchase is ever disputed ("the agent bought the wrong thing"), anyone can show what was checked, from which sources, and what changed since. Free.
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>"
},
"name": "attach_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merchant | No | Merchant name or domain. | |
| order_id | No | The merchant's order number. | |
| receipt_id | Yes | The receipt id (rcpt_...) from the check, plan or checkout check made before buying. | |
| ucp_checkout | No | UCP checkout id. | |
| ap2_cart_mandate | No | AP2 cart mandate hash or id, if the purchase used AP2. | |
| payment_reference | No | Payment or transaction reference. | |
| ap2_intent_mandate | No | AP2 intent mandate hash or id. | |
| acp_checkout_session | No | ACP checkout session id. |