# prov.mandate.agreements.receipt

prov.mandate.agreements.receipt in Node SDK. The completion receipt (both parties signed), an ES256 JWS verifiable via JWKS.

## Signature

```ts
prov.mandate.agreements.receipt(id: string): Promise<Receipt<AgreementReceipt>>
```

## Parameters

- `id` (string)

## Returns

`Promise<Receipt<AgreementReceipt>>`

## HTTP operation

[`GET /v1/mandate/agreements/{id}/receipt`](https://provenanceauth.com/docs/api/agreements.md#get-v1-mandate-agreements-id-receipt): Get an agreement receipt

## Errors

- [`agreement_invalid`](https://provenanceauth.com/docs/platform/errors.md#agreement_invalid)
- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

## Example

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/agreements/agr_01M5Q2KJMKC7J3XJPD6BEYMFGB/receipt`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/mandate/agreements/agr_01M5Q2KJMKC7J3XJPD6BEYMFGB/receipt", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```
