Skip to Content
px402Devnet
Protocol and reference

Error codes

Every public HTTP error code. Generated from @px402-tech/types.

An error body is { "error": { "code", "message", "traceId", "retryable" } }. Keep the trace id when you report a problem. Local SDK errors start with SDK_ and never reach a server; see wallet commands.

“Retry: Yes” does not mean “pay again”. A payment already made is retried with the same signature or idempotency key.

Payments

CodeHTTPRetryMeaning
VALIDATION_FAILED400NoRequest failed validation
PAYMENT_HEADER_INVALID400NoPAYMENT-SIGNATURE is not decodable or has the wrong scheme or network
PAYMENT_REQUIRED402YesPayment required; challenge issued
NONCE_UNKNOWN402YesPayment challenge not found
NONCE_EXPIRED402YesPayment challenge expired
NONCE_ALREADY_USED409NoPayment challenge already used
NONCE_ROUTE_MISMATCH402YesPayment challenge was issued for another route
TRANSFER_NOT_FOUND402YesTransfer not found or not confirmed yet
TRANSFER_NOT_TO_RECEIVER402NoTransfer has no output for this receiver
TRANSFER_AMOUNT_TOO_LOW402NoTransfer amount is below the price
TRANSFER_WRONG_ASSET402NoTransfer asset is not the required asset
TRANSFER_TOO_OLD402NoTransfer is older than the payment challenge
TRANSFER_ALREADY_CLAIMED409NoTransfer already claimed for another challenge
CLAIM_BINDING_MISSING402NoClaim is missing the required binding
CLAIM_SENDER_PROOF_INVALID402NoSender proof does not verify
CLAIM_MEMO_MISMATCH402NoTransfer memo does not match the challenge
HELIUS_UNAVAILABLE503YesUpstream read failed or throttled
HANDLER_FAILED500YesPaid handler failed; retry with the same payment
RATE_LIMITED429YesToo many requests
UNAUTHORIZED401NoMissing or invalid owner token
TRACE_NOT_FOUND404NoTrace not found
ROUTE_NOT_FOUND404NoNo paid route here
INVALID_CURSOR400NoInvalid cursor
DECRYPTION_FAILED503YesOn-demand decryption failed
RECEIVER_KEY_UNAVAILABLE503NoReceiver key unavailable
CLAIM_IN_PROGRESS409YesAnother attempt for this payment is running; retry shortly
CLAIM_LAPSED409NoThe retry window for this payment has closed; it is a refund case
UPSTREAM_FAILED503YesThe provider did not answer; retry with the same payment
REQUEST_TOO_LARGE413NoRequest body too large
INTERNAL500YesInternal error

Hosted wallet

CodeHTTPRetryMeaning
WALLET_FRESH_LOGIN_REQUIRED403NoLog in again: this action needs a fresh Turnkey login
WALLET_PROVIDER_NOT_ALLOWED403NoThis agent may not pay that provider
WALLET_AGENT_LIMIT409NoHosted agent limit reached
WALLET_AGENT_ADDRESS_TAKEN409NoAnother active hosted agent uses this address
WALLET_AGENT_NOT_PENDING409NoThe agent is not waiting for activation
WALLET_AGENT_REVOKED409NoThe agent is revoked
WALLET_AGENT_NOT_ACTIVE409NoThe agent is not active
WALLET_ACTIVATION_FAILED409NoThe Turnkey delegation does not match what px402 requires
WALLET_ROUTE_NOT_PAYABLE409NoThat route cannot be paid right now
WALLET_CAP_EXCEEDED409NoThe payment would pass one of the agent’s caps
WALLET_PRICE_ABOVE_MAX409NoThe route price is above maxPriceBase
WALLET_NOTHING_TO_WITHDRAW409NoThe agent holds nothing to withdraw
WALLET_WITHDRAW_ADDRESS_UNSET409NoSet a withdraw address first
WALLET_WITHDRAW_PARTIAL409YesPart of the balance moved; withdraw again for the rest
WALLET_AGENT_BUSY409YesThe agent is busy; retry shortly
WALLET_SIGNING_DENIED409NoTurnkey denied the signature
WALLET_PAY_URL_INVALID400NoThe URL must be https with no credentials or custom port
WALLET_WITHDRAW_ADDRESS_INVALID400NoThe address cannot receive a withdrawal
WALLET_WITHDRAW_ADDRESS_PROOF_INVALID400NoThe signature does not prove control of the address; get a new challenge and sign again
WALLET_SIGNATURE_QUOTA_EXHAUSTED429NoYour monthly hosted signature quota is used up
WALLET_SIGNATURE_BUDGET_EXHAUSTED503NoHosted signing is paused: a service-wide signing limit has been reached
WALLET_TURNKEY_BUSY503YesThe signer is busy; retry shortly
WALLET_SIGNER_UNAVAILABLE503YesThe signer could not be reached
WALLET_PAY_FAILED500NoThe payment failed
WALLET_MANDATE_INVALID400NoThe mandate signature or fields are not valid
WALLET_MANDATE_MISSING409NoThis agent has no live mandate; sign one before paying
WALLET_MANDATE_EXPIRED409NoThe mandate has expired; sign a new one
WALLET_EXPORT_INVALID400NoThe export authorization is not valid
WALLET_NOT_ENCLAVE409NoThat action is only for a sealed agent

MCP connector

CodeHTTPRetryMeaning
MCP_GRANT_REVOKED401NoThis connection was signed out; connect again
MCP_CAPS_NOT_LOWER409NoCaps can only be lowered here; raise them in the dashboard
MCP_AGENT_AMBIGUOUS400NoMore than one agent has that label; use the agent id

Provider platform

CodeHTTPRetryMeaning
PLATFORM_AUTH_REQUIRED401NoMissing or invalid Turnkey proof
NOT_FOUND404NoNot found
ALREADY_EXISTS409NoAlready exists
STATE_CONFLICT409NoNot allowed in the current state
DNS_CHECK_FAILED409YesThe TXT record was not found on every resolver
DNS_UNAVAILABLE503YesDNS lookup failed; try again
PLATFORM_NOT_INVITED403NoJoining px402 needs an unused invite code
PLATFORM_ACCOUNT_BLOCKED403NoThis account is blocked; contact px402 to restore it
PLATFORM_DOMAIN_LIMIT409NoDomain limit reached for this organization
PLATFORM_INVITE_LIMIT409NoYou have made all the invite codes you may