Skip to content

Receipt Proof

GET
/ratchet/receipts/{period}/proof/{request_id}
curl --request GET \
--url http://localhost:8000/ratchet/receipts/1/proof/1

That request request_id (X-Ratchet-Request-Id) is in the day’s receipt: its leaf and RFC 9162 audit path against the root the receipt signs. python -m ratchet.receipt verify r.json --proof p.json checks it offline.

period
required
Period
integer
request_id
required
Request Id
integer
client
Any of:
string
x-api-key
Any of:
string

Successful Response

Media typeapplication/json
Response Receipt Proof Ratchet Receipts Period Proof Request Id Get
object

Example generated

{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}