Skip to main content
When a payment fails, CPN provides a failure reason and a failure code. Depending on when the failure occurs, this information is returned in the synchronous (API) or asynchronous (webhook) response. This failure code can help you understand why the payment failed, and take appropriate steps to resolve the issue. The following sections outline the specific failure codes for failed payments.

General

These codes apply when the failure reason is OTHER.

Travel rule

These codes apply when the failure reason is TRAVEL_RULE_FAILED.

Bank verification

These codes apply when the failure reason is BANK_VERIFICATION_FAILED.

RFI verification

These codes apply when the failure reason is RFI_VERIFICATION_FAILED.

Existing RFI pending

These codes apply when the failure reason is EXISTING_RFI_PENDING.

Onchain settlement

These codes apply when the failure reason is ONCHAIN_SETTLEMENT_FAILED.

Fiat settlement

These codes apply when the failure reason is FIAT_SETTLEMENT_FAILED.

Compliance check

These codes apply when the failure reason is COMPLIANCE_CHECK_FAILED.

Canceled

These codes apply when the failure reason is CANCELLED.

Payment expired

These codes apply when the failure reason is PAYMENT_EXPIRED.

Onchain settlement cutoff

These codes apply when the failure reason is ONCHAIN_SETTLEMENT_CUTOFF_TIME_EXCEEDED.