Skip to content

Receipt Leaves

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

The receipt’s leaves as JSON lines, in tree order: python -m ratchet.receipt verify r.json --rows leaves.jsonl rebuilds the root and recomputes every total, estimate and the fee from them.

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

Successful Response

Media typeapplication/json

Example generated

example

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"
}
]
}