> ## Documentation Index
> Fetch the complete documentation index at: https://docs.parmanasystems.com/llms.txt
> Use this file to discover all available pages before exploring further.

# parmana.api.receipt_api

Parmana Receipt API.

Generate cryptographic execution receipts.

## ReceiptApi Objects

```python theme={null}
class ReceiptApi()
```

Receipt API.

## Responsibilities

* Generate execution receipts
* Retrieve the latest cached receipt

This API does NOT:

* execute Business Transactions
* replay executions
* verify trust records
* validate policies

#### generate

```python theme={null}
def generate(business_transaction_id: str) -> Receipt
```

Generate an execution receipt.

Maps to POST /receipt.

## Parameters

business\_transaction\_id:
Business Transaction identifier.

## Returns

Receipt.

#### \_\_call\_\_

Makes `client.receipt(business_transaction_id)` work directly,
alongside the existing `client.receipt.generate(...)`, without
renaming the `ParmanaClient.receipt` attribute out from under
existing callers (examples/05\_receipt.py, examples/11\_end\_to\_end.py).

#### get\_latest

```python theme={null}
def get_latest(business_transaction_id: str) -> Receipt
```

Retrieve the most recent Receipt without generating a new one.

Maps to GET /receipt/latest/:id, distinct from `generate()`
(POST /receipt), which generates a new Receipt.

## Parameters

business\_transaction\_id:
Business Transaction identifier.

## Returns

Receipt.
