AApt Commerce
Sign inGet started
Show for

Reference

Errors

Canonical error envelope. REST error code maps 1:1 to JSON-RPC numeric code so SDKs can branch identically across surfaces.

Generated from docs/api/error-codes.md. Re-run npm run docs:generate after registry edits.

CodeRPCHTTPTypeMeaning
bad_request-32602400validation_errorMalformed request
validation_failed-32602422validation_errorField-level validation failed
unauthorized-32010401authentication_errorMissing / invalid credentials
forbidden-32011403authorization_errorAuthenticated but not allowed
scope_required-32012403authorization_errorMissing required scope
not_found-32004404not_found_errorResource not found
conflict-32005409conflict_errorState conflict
idempotency_conflict-32006409idempotency_errorSame key, different body
rate_limited-32020429rate_limit_errorSlow down
payment_method_declined-32001402payment_errorIssuer declined
payment_method_invalid-32002422payment_errorBad PM data
insufficient_funds-32003402payment_errorIssuer NSF
risk_review_required-32030202risk_errorHeld for manual review
risk_declined-32031402risk_errorRisk policy declined
provider_unavailable-32040502provider_errorUpstream provider down
provider_timeout-32041504provider_errorUpstream timeout
provider_error-32049502provider_errorOther provider failure
compatibility_unsupported-32050422compatibility_errorLegacy field has no v1 equivalent
not_implemented-32099501api_errorStubbed surface
internal_error-32603500internal_errorUnhandled