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.
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 | … (open list) |