curl --request GET \
--url https://api.digitalreceiptprotocol.org/api/v1/transactions/{transactionId}/receipt{
"success": true,
"data": {
"version": "1.0",
"receiptId": "550e8400-e29b-41d4-a716-446655440003",
"keyId": "550e8400-e29b-41d4-a716-446655440000",
"keyBundle": {
"encryptedAesKey": "encrypted_aes_key_base64...",
"keyId": "550e8400-e29b-41d4-a716-446655440000",
"algorithm": "RSA-OAEP-256"
},
"ciphertext": "encrypted_receipt_ciphertext_base64...",
"iv": "initialization_vector_base64...",
"authTag": "auth_tag_base64...",
"merchantId": "550e8400-e29b-41d4-a716-446655440004",
"transactionId": "550e8400-e29b-41d4-a716-446655440005",
"createdAt": "2025-12-15T12:35:00Z",
"expiresAt": "2025-12-16T12:35:00Z",
"isEscrowed": false,
"escrowKeyId": null
}
}Retrieve an encrypted receipt by its associated transaction ID
curl --request GET \
--url https://api.digitalreceiptprotocol.org/api/v1/transactions/{transactionId}/receipt{
"success": true,
"data": {
"version": "1.0",
"receiptId": "550e8400-e29b-41d4-a716-446655440003",
"keyId": "550e8400-e29b-41d4-a716-446655440000",
"keyBundle": {
"encryptedAesKey": "encrypted_aes_key_base64...",
"keyId": "550e8400-e29b-41d4-a716-446655440000",
"algorithm": "RSA-OAEP-256"
},
"ciphertext": "encrypted_receipt_ciphertext_base64...",
"iv": "initialization_vector_base64...",
"authTag": "auth_tag_base64...",
"merchantId": "550e8400-e29b-41d4-a716-446655440004",
"transactionId": "550e8400-e29b-41d4-a716-446655440005",
"createdAt": "2025-12-15T12:35:00Z",
"expiresAt": "2025-12-16T12:35:00Z",
"isEscrowed": false,
"escrowKeyId": null
}
}UUID of the transaction
Receipt retrieved successfully
true
Show child attributes
"1.0"
"550e8400-e29b-41d4-a716-446655440003"
"550e8400-e29b-41d4-a716-446655440000"
Show child attributes
Base64-encoded AES-GCM encrypted receipt
"encrypted_receipt_ciphertext_base64..."
Base64-encoded initialization vector
"initialization_vector_base64..."
Base64-encoded GCM authentication tag
"auth_tag_base64..."
"550e8400-e29b-41d4-a716-446655440004"
"550e8400-e29b-41d4-a716-446655440005"
"2025-12-15T12:35:00Z"
"2025-12-16T12:35:00Z"
True if encrypted with escrow key (user not onboarded)
false
Escrow key ID if isEscrowed is true
null