Tokeni

Errors

One envelope, opaque messages, a correlation ID you can send to support.

Every JSON error looks like this:

{
  "success": false,
  "errorCode": "INVALID_REQUEST",
  "errorMessage": "Invalid card number",
  "correlationId": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}

errorMessage is safe to show in your own logs. It will not contain a PAN, a stack trace, or an internal host name.

Codes

CodeWhen
UNAUTHORIZEDMissing or wrong Basic credentials
SIGNATURE_REQUIREDRoute needs X-Signature
INVALID_SIGNATUREHMAC did not match
IP_NOT_WHITELISTEDKey is locked to other IPs
RATE_LIMIT_EXCEEDEDSlow down
INVALID_REQUESTBody failed validation (Luhn, expiry, required fields)
INVALID_TOKENToken format or state is not usable
MISSING_FIELDRequired field absent
TOKEN_NOT_FOUNDUnknown or not yours
TRANSACTION_NOT_FOUNDUnknown or not yours
PROFILE_NOT_FOUNDUnknown or not yours
TOKENIZATION_FAILEDVault rejected the tokenize
TRANSACTION_FAILEDProcessor or gateway declined
DUPLICATE_REQUESTIdempotency key replay
CLOCK_SKEWDate header too far from server time
INTERNAL_ERROROurs. Retry with a new idempotency key only if the original never committed
SERVICE_UNAVAILABLEBacking service down

Validation

  • PAN: 13–19 digits, Luhn, numeric
  • CVV: 3–4 digits, numeric, never persisted
  • Expiry: month 01–12, not expired

Malformed input gets INVALID_REQUEST, not a parser dump.

On this page