Settlement Ledger Audit
Premium audit of up to 500 settlement-ledger entries: detect duplicate settlement IDs, missing receipts, zero-value settled rows and produce a deterministic ledger fingerprint plus settled-value summary.
49 credits per call · $0.49 USDC with x402
Sample input
{
"entries": [
{
"id": "e1",
"settlement_id": "s1",
"status": "settled",
"amount_usd": 25,
"receipt_hash": "0xabc"
},
{
"id": "e2",
"settlement_id": "s2",
"status": "pending",
"amount_usd": 10
}
]
}Worked sample output
{
"ok": true,
"mode": "settlement_ledger_audit",
"audit": {
"entry_count": 2,
"settled_amount_usd": 25,
"duplicate_settlement_ids": 0,
"settled_without_receipt": 0
},
"entries": [
{
"id": "e1",
"settlement_id": "s1",
"status": "settled",
"amount_usd": 25,
"receipt_present": true,
"findings": []
},
{
"id": "e2",
"settlement_id": "s2",
"status": "pending",
"amount_usd": 10,
"receipt_present": false,
"findings": []
}
],
"ledger_sha256": "1a12cb5aa51bd211cebeddc742043d803a16a3ec872680eba921d83bb1636afe",
"decision": "clean",
"limitations": [
"Audits caller-supplied ledger entries only.",
"Receipt presence is structural evidence, not independent on-chain verification."
]
}Worked example using published sample data only. Own-data execution is paid.
Connect in curl
Set BOUNTY_API_KEY privately after your payment is verified. Change the retry key for each new logical request.
curl 'https://bounty-engineer-x402-api.onrender.com/v1/prepaid/settlement-ledger-audit' \
-H "Authorization: Bearer $BOUNTY_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: workflow-request-001' \
-H 'X-Max-Credits: 49' \
--data '{"entries":[{"id":"e1","settlement_id":"s1","status":"settled","amount_usd":25,"receipt_hash":"0xabc"},{"id":"e2","settlement_id":"s2","status":"pending","amount_usd":10}]}'Connect in n8n
Download the inactive n8n template. Import it, configure the private Header Auth credential, inspect the sample and run it manually. A new execution creates a new billable request; there is no automatic schedule.
Use an HTTP POST to https://bounty-engineer-x402-api.onrender.com/v1/prepaid/settlement-ledger-audit. Send JSON and these headers; store the Bearer token as a private credential.
{
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR_PRIVATE_API_KEY",
"Content-Type": "application/json",
"Idempotency-Key": "UNIQUE_PER_LOGICAL_REQUEST",
"X-Max-Credits": "49"
},
"body": {
"entries": [
{
"id": "e1",
"settlement_id": "s1",
"status": "settled",
"amount_usd": 25,
"receipt_hash": "0xabc"
},
{
"id": "e2",
"settlement_id": "s2",
"status": "pending",
"amount_usd": 10
}
]
}
}Reuse a retry key only for the same input. Failed execution returns reserved credits. Full integration and recovery guide · Machine-readable recipe