export_dispute_pack
Exports a sealed evidence pack for a merchant answering a chargeback, bundling payment record versions, buyer intent, authentication, delivery, and a verifiable manifest with summary.
Instructions
For a merchant answering a chargeback or a payment dispute: writes one payment's evidence into a new folder under /tmp/spr-books/exports. The folder holds every version of the payment's record, the buyer's own sealed intent and key (if the buyer's agent declared the purchase), how the buyer authenticated, the order and processor references, the delivery you give, a sealed statement of all of it and the same statement in plain words (summary.txt), under a sealed manifest anyone can check with spr-verify. Give the record_id and a short folder name, not a path. Returns the folder, the files, the result of checking it, and the summary. The evidence supports a dispute response; whether to submit it is the merchant's decision, and the outcome is the card network's.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A folder name: letters, digits, dot, dash or underscore, such as dispute-ORD-1042 | |
| delivery | No | Optional: how and when the order was delivered | |
| overwrite | No | Replace an earlier export of that name | |
| record_id | Yes | The payment's record_id, as list_records shows it |