Signed receipts
The customer’s browser signs the order, so a later “I didn’t buy that” can be answered with proof.
Sign at checkout
The tag keeps a signing key in the browser that cannot be copied out. Ask it for a receipt when the order is sent.
<script>
document.addEventListener('signet:ext', function () { window.receiptReady = true; });
// at submit; resolves within 800 ms, and to null when there is no receipt
Signet.receipt({ order_id: '1001', amount: 49.90, currency: 'USD' }).then(function (r) {
form.receipt_id.value = r ? r.receipt_id : ''; form.submit();
});
</script>
Call it only once receiptReady is true. order_id is printable ASCII, up to 128 characters. Use references that cannot be guessed. In first-party mode, forward /v1/receipts too.
Attach it to the payment
Send receipt_id with POST /v1/assess. signals.event.receipt answers:
| Value | Meaning |
|---|---|
matched | It belongs to this session, amount and currency. |
not_found, other_session, amount_mismatch, currency_mismatch | It does not, and is ignored. The decision is not affected. |
Earlier undisputed orders signed by the same browser then appear in Dispute Evidence as device_signature, with one sentence in the narrative.
Read it
GET /v1/receipts?order_id=1001
{ "data": [{ "id": "rcpt_...", "order_id": "1001", "amount": "49.90", "currency": "USD",
"session_id": "s_...", "visitor_id": "v_...", "signed_at": "...", "verified": true,
"key": { "id": "...", "first_seen_at": "...", "last_seen_at": "...", "receipts": 4 },
"earlier_receipts": 3, "earlier_undisputed_payments": 3 }] }
| Call | Purpose |
|---|---|
GET /v1/receipts?order_id=, /v1/receipts/{id} | A receipt, checked again on each call. |
GET /v1/receipts/{id}/proof | The message, signature, public key and three OpenSSL commands. Anyone can verify it without Signet. |
Key strength in Trusted Devices
POST /v1/accounts/{id}/devices/check answers strength on every plan:
| Value | Meaning |
|---|---|
key | The browser’s signing key. The strongest. |
token | Recognized, weaker than a key. |
visitor | Recognized as a returning device, the weakest. |
| null | Not trusted. |
Test values
A pk_test_ tag gets rcpt_test; sk_test_ reads a fixed receipt whose proof verifies.
Limits and errors
Free. Receipts need Growth or Scale. It ties the order to the browser, not to the person who pressed the button. Card networks do not list it as a named evidence type; the narrative presents it as the device identifier.
| Status | Code | When |
|---|---|---|
| 400 | receipt_stale, signature_invalid | Signed more than 10 minutes ago, or for another order. |
| 403 | update_token_invalid, plan_feature_required | Not this session, or not in your plan. |
| 404, 410 | session_not_found, session_expired | Collect a new session. |
| 409 | key_not_registered, order_already_signed | No key in this session, or the order has a receipt. |
| 429 | receipt_limit | 20 per session. |