SDK reference · Python SDK

prov.authorize.issuer.approvals.list

prov.authorize.issuer.approvals.list in Python SDK.

Signature

prov.authorize.issuer.approvals.list(**query: Any = …) -> Any

Parameters

**queryAny

Request fields

program_idstringquery
Only this program's (iprg_).
card_tokenstringquery
Only this card (the processor's token).
statusenumquery
Only this status. One of pending, approved, declined, expired, used.
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.

Returns

Any A page of approvals.

HTTP operation

GET /v1/authorize/issuer_approvals: List issuer approvals

Errors

Example

const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "name": "Fernhill agent cards",
    "processor": "lithic",
    "mode": "live"
  }),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_approvals`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "program_id": program,
    "card_token": "card_tok_fernhill_4",
    "agent_key": "token_requestor:40010030273",
    "cart": {
      "order_id": "ord_fernhill_42",
      "total": 24900,
      "currency": "USD",
      "merchant_id": "brightbox",
      "origin": "https://brightbox.example",
      "items": [
        {
          "sku": "tv-55",
          "name": "55-inch television",
          "quantity": 1,
          "unit_amount": 24900
        }
      ]
    }
  }),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_approvals?program_id=${program}`, {
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.