# prov.authorize.assessments.review

prov.authorize.assessments.review in Python SDK. Slice 12: decide an order your after-approval rules held for review (`challenge.status == "in_review"`).

## Signature

```python
prov.authorize.assessments.review(assessment_id: str, decision: str, note: Optional[str] = …, idempotency_key: Optional[str] = …) -> Any
```

## Parameters

- `assessment_id` (str)
- `decision` (str)
- `note` (Optional[str], optional)
- `idempotency_key` (Optional[str], optional)

## Returns

`Any`

## HTTP operation

[`POST /v1/authorize/checkout_assessments/{id}/review`](https://provenanceauth.com/docs/api/assessments.md#post-v1-authorize-checkout-assessments-id-review): Decide an order in review

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`manage_policies_required`](https://provenanceauth.com/docs/platform/errors.md#manage_policies_required)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`review_already_decided`](https://provenanceauth.com/docs/platform/errors.md#review_already_decided)
- [`review_not_open`](https://provenanceauth.com/docs/platform/errors.md#review_not_open)

## Example

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_assessments/cas_01M7JD3RF2X8N4PQ6T0VZKWG8M/review`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "decision": "approve",
    "note": "Called the customer; the new address is theirs."
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/authorize/checkout_assessments/cas_01M7JD3RF2X8N4PQ6T0VZKWG8M/review", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "decision": "approve",
    "note": "Called the customer; the new address is theirs."
}).json()
```
