Skip to content

Variable: VerifyInvalidReasonSchema ​

ts
const VerifyInvalidReasonSchema: PicklistSchema<["invalid_exact_canton_missing_proof", "invalid_exact_canton_malformed_payload", "invalid_exact_canton_signature_invalid", "invalid_exact_canton_amount_mismatch", "invalid_exact_canton_merchant_mismatch", "invalid_exact_canton_instrument_id_mismatch"], undefined>;

Defined in: packages/x402-core/src/types/facilitator.ts:207

Why a payment is invalid: the spec's code, the one a client written against the spec matches on. Which of a code's causes it was goes in extensions.detail, not here.

The specs' codes plus the one declared extension, and nothing else. The older codes were dropped before 1.0.0, so an answer from a facilitator on a published 0.1.x carrying one of them no longer parses. From 1.0.0 this list can only grow in a minor.