---
schema_version: "1"
id: ec2b8709ae0f9bf56fee949f8f83b2fd45425eb4bd4cac8a090a6fbf70b834b5
title: API Encryption Parameter Has Been Changed
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/rn_b2c_ocapi_order_export_mc.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.rn_b2c_ocapi_order_export_mc.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3d1a173df321e8db763fe542ad6c23b9e6136281607880d4fda25d721935de08
description: The encryption parameter that handles encrypted and masked payment instrument data, including credit card, bank account, and driver license numbers, in the dw.order.Order.getOrderExportXML API has been completely revised.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# API Encryption Parameter Has Been Changed

The encryption parameter that handles encrypted and masked payment instrument data, including credit card, bank account, and driver license numbers, in the `dw.order.Order.getOrderExportXML` API has been completely revised.

How: These methods have been changed or removed.

- `dw.order.Order.getOrderExportXML(encryptionAlgorithm, encryptionKey, encryptUsingEKID)` was removed entirely. This method was deprecated because the `encryptUsingEKID` parameter was never used. To return encrypted payment instrument data with the given algorithm or key, use `dw.order.Order.getOrderExportXML(encryptionAlgorithm, encryptionKey)` instead. To return payment instrument data unmasked, use `dw.order.Order.getOrderExportXML()`.
- `dw.order.Order.getOrderExportXML(encryptionAlgorithm, encryptionKey)` no longer accepts an invalid encryption argument, which includes null, blank, or otherwise empty algorithms or keys.
- `dw.order.Order.getOrderExportXML(encryptionAlgorithm, encryptionKey)` supports the current RSA/ECB/OAEPWithSHA-256AndMGF1Padding encryption algorithm. Previously, the `encryptionAlgorithm` argument was ignored and the (now deprecated) algorithm RSA/ECB/PKCS1Padding was always used when a non-blank key was provided.
- `dw.order.Order.getOrderExportXML(encryptionAlgorithm, encryptionKey)` no longer accepts a null key, which was used as a “magic” value for returning the payment instrument data as masked instead of encrypted. Only use `dw.order.Order.getOrderExportXML()` to return masked payment instrument data.