API ReferenceLedger and receipts
Both signed receipt logs
The merchant log and the buyer log as written, with their public keys. Each is verifiable offline, in the browser or with the verdock-core verifier. Editing one line breaks the chain.
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/console/api/receipts"{ "label": "local run data", "logs": [ { "name": "merchant", "title": "Merchant swarm receipts", "public_key": "6309eda9ad3863db68c6e157dbae09f5405362be19c3e01879a8867d37609c65", "text": "{\"step_id\":\"PP-D-REH-94816C42B4:decision\",\"action_id\":\"clearwake.dispute.decision\",\"params\":{\"dispute\":\"PP-D-REH-94816C42B4\",\"stage\":\"INQUIRY\",\"proposed\":\"settle_by_offer\",\"decided\":\"settle_by_offer\",\"offer_minor\":250,\"model\":\"scripted\",\"policy_hash\":\"396af6170103c7e2570b7c4f159e18543160e14127a05f873135a366bd7af271\"},\"success\":true,\"ts_ms\":1794381449821,\"actor\":{\"agent\":\"clearwake-merchant\",\"user\":\"merchant\"},\"public_key\":\"6309eda9ad3863db68c6e157dbae09f5405362be19c3e01879a8867d37609c65\",\"signature\":\"551695e1fd4b23acf0276f4c5bcd899f71e5407cdad11b1333ddd5174cb2d48db2e3c3cb449413b439054a5f893e343d3fd506a52e549ca9bd8a5eba28b2850a\"}\n{\"step_id\":\"PP-D-REH-94816C42B4:offer\",\"action_id\":\"clearwake.dispute.offer_sent\",\"params\":{\"dispute\":\"PP-D-REH-94816C42B4\",\"offer_minor\":250,\"currency\":\"USD\",\"policy_hash\":\"396af6170103c7e2570b7c4f159e18543160e14127a05f873135a366bd7af271\"},\"success\":true,\"ts_ms\":1794381449843,\"actor\":{\"agent\":\"clearwake-merchant\",\"user\":\"merchant\"},\"prev_hash\":\"bda81e018ccbb09b4fbab5ec5fedec17a8da828b0fb0db7601ef853856ee5db6\",\"public_key\":\"6309eda9ad3863db68c6e157dbae09f5405362be19c3e01879a8867d37609c65\",\"signature\":\"45fa3fbf0d095f66f51e4d62799df76a16a05b4cf050540076368eb88c06e9fbe84e6f7e859d05d483c26ddbe8d88545cfb5201fbd9aa59e12e8dcfc1079f60d\"}\n{\"step_id\":\"PP-D-REH-94816C42B4:settlement\",\"action_id\":\"clearwake.dispute.settlement\",\"params\":{\"dispute\":\"PP-D-REH-94816C42B4\",\"status\":\"WAITING_FOR_BUYER_RESPONSE\",\"stage\":\"INQUIRY\",\"outcome\":\"\",\"state\":\"PENDING\",\"policy_hash\":\"396af6170103c7e2570b7c4f159e18543160e14127a05f873135a366bd7af271\"},\"success\":false,\"ts_ms\":1794381449850,\"actor\":{\"agent\":\"clearwake-merchant\",\"user\":\"merchant\"},\"prev_hash\":\"7ec7d5eb03b9dc308fec94710d40e2d346640e91410de52299e83af19ab4477c\",\"public_key\":\"6309eda9ad3863db68c6e157dbae09f5405362be19c3e01879a8867d37609c65\",\"signature\":\"fcc7f2307f1aa60c7c75d11921d50edc2e6b43bfe1cf5f4b98ca9a1b58ab29c623762bba93576d6ac1252619345904d33bfe1876e18893ed265a3b31db77e90f\"}\n{\"step_id\":\"PP-D-REH-94816C42B4:settlement\",\"action_id\":\"clearwake.dispute.settlement\",\"params\":{\"dispute\":\"PP-D-REH-94816C42B4\",\"status\":\"RESOLVED\",\"stage\":\"INQUIRY\",\"outcome\":\"RESOLVED_WITH_PAYOUT\",\"state\":\"VERIFIED\",\"policy_hash\":\"396af6170103c7e2570b7c4f159e18543160e14127a05f873135a366bd7af271\"},\"success\":true,\"ts_ms\":1794381449874,\"actor\":{\"agent\":\"clearwake-merchant\",\"user\":\"merchant\"},\"prev_hash\":\"91243484afb6bab287c9ab2075088b0942a0792d3ba6f2d26efef507283b5e7e\",\"public_key\":\"6309eda9ad3863db68c6e157dbae09f5405362be19c3e01879a8867d37609c65\",\"signature\":\"65926070afe166010dbf54b5082a796e54584b99911b7c17376789c4d2bb0388ad484249fe29c92c37518ab0956d33583d4ccec6afad7ab95c1376c3db21cf0e\"}\n" }, { "name": "buyer", "title": "Buyer agent mandate receipts", "public_key": "080adcb3ed838b286019be62db1c0f0e178f89d8ae2c59b7cdefc24ec9964e5a", "text": "{\"step_id\":\"mandate:ORDER-REH-F25B12B6\",\"action_id\":\"clearwake.buyer.mandate\",\"params\":{\"order_id\":\"ORDER-REH-F25B12B6\",\"merchant\":\"clearwake-sandbox-store\",\"item\":\"notebook-a5\",\"price_minor\":900,\"currency\":\"USD\",\"budget_minor\":10200,\"per_item_cap_minor\":10200,\"allowed_categories\":[\"home\",\"stationery\"],\"dispute_rule\":\"none\",\"max_over_market_percent\":-1,\"price_reference\":\"none\"},\"success\":true,\"ts_ms\":1794381449742,\"actor\":{\"agent\":\"clearwake-buyer\",\"user\":\"Local run shopper\"},\"public_key\":\"080adcb3ed838b286019be62db1c0f0e178f89d8ae2c59b7cdefc24ec9964e5a\",\"signature\":\"cd249dd7c01fb71413b28e7e07921e917b67bec824250f88dc5e0d03e8433f8dba7f34aacdbe9ad09ca9a5e750099ede5e780bf46b0b72d43ede434f25f8ae07\"}\n" } ]}Everything the console shows GET
The mandate, the product catalog, purchases, every case entry with its history, the approval inbox, the money ledger, the dispute ledger (PayPal stage and status next to the policy decision and the model proposal), the fee gauge and the policy limits.
Measured numbers for the console header GET
The few measured numbers built from the run files in data/runs/, each with the file it came from. An empty list when site/data/totals.json is absent.