Prerequisites
- The capability is enabled for your project by Reap. Talk to your account manager to request it; Reap reviews your PCI DSS compliance status before enabling. Calls from projects without it receive
403 PAN_REVEAL_NOT_ENABLED. - You hold the RSA private key:
- Production: Reap generates a dedicated RSA-2048 key pair for your program and hands you the key pair over a secure channel during onboarding.
- Sandbox: a single, publicly documented key pair is shared by all sandbox programs (see Sandbox keys). It provides no confidentiality, sandbox cards are test cards.
Request
See Reveal PAN for the full endpoint reference.Response
Decrypting
encryptedData yields a JSON document:
Decryption
Forencryption: "RSA_OAEP_SHA1": base64-decode encryptedData, then decrypt with your RSA private key using OAEP padding with SHA-1.
- OpenSSL
- Node.js
Errors
Sandbox keys
All sandbox programs share one RSA key pair. Use this private key to decrypt sandbox responses:Security obligations
- Decrypt only on PCI DSS compliant backend systems.
- Never log, persist, or cache the decrypted PAN, CVV, or expiry date.
- Never expose the private key or decrypted details to client-side code.
- Every retrieval is audited by Reap.