---
schema_version: "1"
id: 0b728c2f0614fc69f41583815b280f297fdbf5c92ce568a53655346528916779
title: Mask a Gift Certificate Code
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_masking_of_gift_certificate_codes.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_masking_of_gift_certificate_codes.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9007caffde4ed66d1f12d8da849031f9508187333efc75486cd6aa2adea2b6f9
description: In B2C Commerce, a gift certificate code is sensitive data, so make sure that only the recipient has access to the code throughout the creation and redemption process.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Mask a Gift Certificate Code

In B2C Commerce, a gift certificate code is sensitive data, so make sure that only the recipient has access to the code throughout the creation and redemption process.

All characters except the last four are masked with asterisks.

For example:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col> <col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">Clear Text</td><td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">Masked</td></tr><tr class=""><td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">00000001</td><td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">****0001</td></tr><tr class=""><td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">AFGRTUZ</td><td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">***RTUZ</td></tr><tr class=""><td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">1F4T</td><td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">1F4T</td></tr></tbody></table>

Using API methods, your application can access masked and unmasked codes. To control the masking of exported certificates, use the site preference Gift Certificate Code Masked.

The following table describes when the gift certificate code appears in clear text or masked:

 
| Context | Presentation |
| --- | --- |
| The email sent to the recipient that contains the gift certificate code | Clear Text |
| Gift certificate list page in Business Manager | Masked |
| Gift certificate detail page in Business Manager | Masked |
| Order management pages in Business Manager | Masked |
| Checkout redemption page in the storefront | Clear Text |
| Basket checkout page in the storefront after redemption on the payment page | Masked |
| Order history page in Business Manager | Masked |
| Gift certificate export | Masked |