Signet

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:

ValueMeaning
matchedIt belongs to this session, amount and currency.
not_found, other_session, amount_mismatch, currency_mismatchIt 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 }] }
CallPurpose
GET /v1/receipts?order_id=, /v1/receipts/{id}A receipt, checked again on each call.
GET /v1/receipts/{id}/proofThe 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:

ValueMeaning
keyThe browser’s signing key. The strongest.
tokenRecognized, weaker than a key.
visitorRecognized as a returning device, the weakest.
nullNot 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.

StatusCodeWhen
400receipt_stale, signature_invalidSigned more than 10 minutes ago, or for another order.
403update_token_invalid, plan_feature_requiredNot this session, or not in your plan.
404, 410session_not_found, session_expiredCollect a new session.
409key_not_registered, order_already_signedNo key in this session, or the order has a receipt.
429receipt_limit20 per session.