SDK reference · Python SDK
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
prov.authorize.assessments.review(assessment_id: str, decision: str, note: Optional[str] = …, idempotency_key: Optional[str] = …) -> AnyParameters
assessment_idstrRequireddecisionstrRequirednoteOptional[str]idempotency_keyOptional[str]
Request fields
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
idstringpathRequired- The assessment's
cas_ID. decisionenumRequired- Your decision. One of
approve,reject. notestring- A note for your own records, kept with the review (never shown to the customer).
Returns
Any The assessment, updated with your decision.
HTTP operation
POST /v1/authorize/checkout_assessments/{id}/review: Decide an order in review
Errors
- authentication_required
- insufficient_scope
- invalid_json
- manage_policies_required
- parameter_invalid
- parameter_missing
- rate_limit_exceeded
- resource_missing
- review_already_decided
- review_not_open
Example
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();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()