Skip to content

Get Receipt

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

One day’s signed savings receipt: the gateway’s, or client’s (an API client gets its own). Check it offline with python -m ratchet.receipt verify and the key from /ratchet/bom/public-key.

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

Successful Response

Media typeapplication/json
Response Get Receipt Ratchet Receipts Period 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"
}
]
}