SDK reference · Python SDK
prov.authorize.assessments.list
prov.authorize.assessments.list in Python SDK.
Signature
prov.authorize.assessments.list(**query: Any = …) -> AnyParameters
**queryAny
Request fields
sortenumquery- The order of the list:
created,amount, with-in front for descending. Newest first when omitted. Any other order sorts the newest 1,000 assessments that match your filters. Anext_cursorcarries its order; pass it back with the samesort. One ofcreated,-created,amount,-amount. limitintegerquery- Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery- Opaque; pass a response's
next_cursorback to get the next page. outcomeenumquery- Only this outcome. One of
allow,challenge,reject,frictionless. approval_statusenumquery- Only checkouts whose cart approval is in this status now.
in_review: the shopper approved and the order waits for your review. One ofpending,in_review,approved,declined,expired. order_idstringquery- Only orders whose reference contains this text, in any case.
created_gtetimestampquery- Only checkouts assessed at or after this time.
created_ltetimestampquery- Only checkouts assessed at or before this time.
Returns
Any A page of assessments.
HTTP operation
GET /v1/authorize/checkout_assessments: List checkout assessments
Errors
Example
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_assessments`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"cart": {
"order_id": "ord_8813",
"total": 3800,
"currency": "USD",
"merchant_id": "harborbean",
"origin": "https://harborbean.example",
"items": [
{
"sku": "mug-sage",
"name": "Stoneware mug",
"quantity": 2,
"unit_amount": 1900
}
]
}
}),
})).json();
const assessmentId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_assessments`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/checkout_assessments", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"cart": {
"order_id": "ord_8813",
"total": 3800,
"currency": "USD",
"merchant_id": "harborbean",
"origin": "https://harborbean.example",
"items": [
{
"sku": "mug-sage",
"name": "Stoneware mug",
"quantity": 2,
"unit_amount": 1900
}
]
}
}).json()
assessment_id = step1["id"]
data = httpx.get(f"{api}/v1/authorize/checkout_assessments", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()