write_receipt
Write one v1 receipt for a read a gate has cleared. Authenticated: Authorization: Bearer . Idempotent on (writer, subject, subject_type, market, rule_version, cleared_at, answer_hash). Returns the receipt.
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": {
"subject": "<subject>",
"subject_type": "<subject_type>",
"rule_version": "<rule_version>"
},
"name": "write_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caller | No | who asked, when the gate knows it: x402:<wallet address>; stored only as its sha256 | |
| market | No | ISO country or exchange code of the read | |
| subject | Yes | what was read: the identifier (an ISIN, LEI, GTIN, ticker, record id …) | |
| caller_key | No | the customer key the reader presented to the gate (RCO-Key); the door checks it and stores sha256("key:" + key id) as caller | |
| cleared_at | No | RFC 3339 UTC; stored to the second; the door's clock when absent | |
| answer_hash | No | sha256:<hex> of the canonical answer bytes the agent received | |
| rule_version | Yes | the rule set and version the gate cleared under | |
| subject_type | Yes | isin | lei | gtin | ticker | cmr | fo-record | … (open list) |