SDK reference · Node SDK
prov.mandate.network.report
prov.mandate.network.report in Node SDK. Report an order your account verified or accepted.
Signature
prov.mandate.network.report(params: { intentJti?: string; decisionId?: string; kind: NetworkReportKind; occurredAt: string; note?: string }): Promise<NetworkReport>Parameters
params{ intentJti?: string; decisionId?: string; kind: NetworkReportKind; occurredAt: string; note?: string }Required
Request fields
intent_jtistring- The order's token
jti. Pass this ordecision_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
Promise<NetworkReport> The report.
HTTP operation
POST /v1/authorize/agent_reports: Report an order
Errors
- authentication_required
- insufficient_scope
- invalid_json
- network_report_duplicate
- parameter_invalid
- parameter_missing
- rate_limit_exceeded
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();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/agents", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"name": "Cartwise"
}).json()
agent_id = step1["id"]
step2 = httpx.post(f"{api}/v1/mandate/intents", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"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": agent_id
}).json()
step3 = httpx.get(f"{api}/v1/mandate/assessments?session=sess_report_1&limit=1", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
decision_id = step3["data"][0]["id"]
data = httpx.post(f"{api}/v1/authorize/agent_reports", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"decision_id": decision_id,
"kind": "unrecognized_charge",
"occurred_at": "2026-10-26T19:00:00.000Z",
"note": "The cardholder called about this order."
}).json()