Encrypt receipt
Receipt Encryption (Merchant)
Encrypt Receipt
Encrypt a digital receipt for a specific recipient using hybrid encryption:
- AES-256-GCM for the receipt data (symmetric)
- RSA-OAEP-SHA256 for key wrapping (asymmetric)
If the recipient is not onboarded, the receipt will be encrypted with
the escrow key instead (indicated by isEscrowed: true in the response).
POST
Encrypt receipt
Body
application/json
Flattened receipt structure with recipient identifier
Hashed PAN of the recipient
Example:
"5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8"
If true and items are empty, generates mock line items