Write Receipt
write_receiptIssue one receipt (issuer credential required, as the credential argument or a Bearer header). subject = the barcode; market; core_version; profile_version; answer_hash; match_hash; result = verified · listed · stale · unknown with the four readings (source_authority, disagreement, freshness, authorisation); supersedes = an earlier receipt id, when this one replaces it. Never revokes.
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>",
"market": "<market>",
"core_version": "<core_version>",
"profile_version": "<profile_version>",
"answer_hash": "<answer_hash>",
"match_hash": "<match_hash>",
"result": "<result>",
"source_authority": "<source_authority>",
"disagreement": "<disagreement>",
"freshness": "<freshness>",
"authorisation": "<authorisation>"
},
"name": "write_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | Yes | ||
| result | Yes | ||
| subject | Yes | ||
| freshness | Yes | ||
| credential | No | ||
| match_hash | Yes | ||
| supersedes | No | ||
| answer_hash | Yes | ||
| verified_at | No | ||
| core_version | Yes | ||
| disagreement | Yes | ||
| authorisation | Yes | ||
| profile_version | Yes | ||
| source_authority | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||