SDK reference · Python SDK
prov.authorize.checkout_approvals.list
prov.authorize.checkout_approvals.list in Python SDK.
Signature
prov.authorize.checkout_approvals.list(**query: Any = …) -> AnyParameters
**queryAny
Request fields
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. statusenumquery- Only approvals with this status.
in_reviewlists the orders waiting for your review. One ofpending,in_review,approved,declined,expired.
Returns
Any A page of cart approvals.
HTTP operation
GET /v1/authorize/checkout_approvals: List cart approvals
Errors
Example
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_approvals`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"cart": {
"order_id": "ord_8815",
"total": 3800,
"currency": "USD",
"merchant_id": "quillstack",
"origin": "https://quillstack.example",
"items": [
{
"sku": "nb-a5",
"name": "Linen notebook, A5",
"quantity": 2,
"unit_amount": 1900
}
]
},
"display": {
"merchant_name": "Quillstack"
},
"retry_url": "https://quillstack.example/checkout"
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_approvals?limit=100`, {
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_approvals", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"cart": {
"order_id": "ord_8815",
"total": 3800,
"currency": "USD",
"merchant_id": "quillstack",
"origin": "https://quillstack.example",
"items": [
{
"sku": "nb-a5",
"name": "Linen notebook, A5",
"quantity": 2,
"unit_amount": 1900
}
]
},
"display": {
"merchant_name": "Quillstack"
},
"retry_url": "https://quillstack.example/checkout"
}).json()
data = httpx.get(f"{api}/v1/authorize/checkout_approvals?limit=100", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()