SDK reference · Node SDK

prov.authorize.assessments.review

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

Signature

prov.authorize.assessments.review(id: string, params: { decision: "approve" | "reject"; note?: string; idempotencyKey?: string }): Promise<CheckoutAssessment>

Parameters

idstringRequired
params{ decision: "approve" | "reject"; note?: string; idempotencyKey?: string }Required

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

Promise<CheckoutAssessment> 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.