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] = …) -> Any

Parameters

assessment_idstrRequired
decisionstrRequired
noteOptional[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

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();

Was this page helpful? Send us feedback

LLM? Read llms.txt.