SDK reference · Python SDK

prov.authorize.network.report

prov.authorize.network.report in Python SDK. Report an order your account verified or accepted: kind is fraud, unrecognized_charge or agent_misbehaved; pass intent_jti or decision_id.

Signature

prov.authorize.network.report(**body: Any = …) -> Any

Parameters

**bodyAny

Request fields

intent_jtistring
The order's token jti. Pass this or decision_id.
decision_idstring
A decision on your ledger. Pass this or intent_jti.
kindenumRequired
What happened. One of fraud, unrecognized_charge, agent_misbehaved.
occurred_attimestampRequired
When it happened.
notestring
A private note for your team.

Returns

Any The report.

HTTP operation

POST /v1/authorize/agent_reports: Report an order

Errors

Example

const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/agents`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "name": "Cartwise" }),
})).json();
const agentId = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/intents`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "action_description": "Buy 2 linen notebooks: $38.00 at Larkspur Paper",
    "action_payload": {
      "amount": 38,
      "currency": "USD"
    },
    "agent_session_id": "sess_report_1",
    "device_id": "dev_00000000000000000000000000000001",
    "agent_id": agentId
  }),
})).json();
const step3 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/assessments?session=sess_report_1&limit=1`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
const decisionId = step3.data[0].id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/agent_reports`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "decision_id": decisionId,
    "kind": "unrecognized_charge",
    "occurred_at": "2026-10-26T19:00:00.000Z",
    "note": "The cardholder called about this order."
  }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.