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

Parameters

**queryAny

Request fields

limitintegerquery
Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery
Opaque; pass a response's next_cursor back to get the next page.
statusenumquery
Only approvals with this status. in_review lists the orders waiting for your review. One of pending, 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();

Was this page helpful? Send us feedback

LLM? Read llms.txt.