Credit Card Redaction


When you contact customer support to update your credit card number, the card number is visible to everyone who has access to the ticket. The card number automatically gets stored in the support database with the rest of the tickets and that data can also be accessed by APIs or marketplace apps.

Since a credit card number is sensitive information, it needs to be hidden from the source itself to ensure any kind of misuse. To avoid misusing your sensitive data, Redaction comes into play. It is the process of removing sensitive information from the ticket.

Sprinklr Advanced keeps this private information safe by automatically redacting the credit card numbers. The agents won't be able to see these numbers and it will be crossed out for them.

Credit card numbers are redacted by replacing some digits with some characters.The credit card number not only gets masked in the interface but also gets completely redacted from the database.

The system will redact the information only if it matches the credit card number pattern and will skip redacting any other information on the ticket. This redaction process takes place on all customer responses in the ticket.

The redaction works on:

  • Major Credit Card brand patterns: Visa, MasterCard, Amex, Discover, JCB, Diners Club, Maestro, Visa Electron

  • Special Symbols: & (without space), & (with space) Braces (),[],{},<> quotes '',"",:

  • Text patterns: space between two patterns, two patterns separated by a comma, two patterns separated by a full stop, card number in the middle of a sentence, card number at the end or beginning of a sentence

Here's a table with sample patterns where card numbers are picked up and redacted:

Redaction Sample Patterns


Card Number

Redacted Output

Without spaces

  • Visa 4012888888881881

  • AmEx 375987654321001

  • Discover 6011000990139424

  • JCB 3530111333300000

  • Diners Club 30569309025904

  • Maestro 6759649826438453

  • Visa Electron 4917300800000000

  • xxxxxxxxxxxx1881

  • xxxxxxxxxxx1001

  • xxxxxxxxxxxx9424

  • xxxxxxxxxxxx0000

  • xxxxxxxxxxxx5904

  • xxxxxxxxxxxx8453

  • xxxxxxxxxxxx0000

With hyphens

  • Mastercard 5555-5555-5555-4444

  • AmEx 3759-876543-21001

  • Discover 6011-0009-9013-9424

  • JCB 3530-1113-3330-0000

  • Diners Club 3056-9309-0259-04

  • Maestro 6759-6498-2643-8453

  • Visa Electron 4917-3008-0000-0000

  • xxxx-xxxx-xxxx-4444

  • xxxx-xxxxxx-x1001

  • xxxx-xxxx-xxxx-9424

  • xxxx-xxxx-xxxx-0000

  • xxxx-xxxx-xxxx-5904

  • xxxx-xxxx-xxxx-8453

  • xxxx-xxxx-xxxx-0000




& with space

4012888888881881 & 4012888888881881

xxxxxxxxxxx1881 & xxxxxxxxxxxx1881

Braces (), [], {}, <>

card number <4012888888881881>

card number <xxxxxxxxxxxx1881>

Quotes ‘ ‘, “ “, :

card number “4012888888881881” 

card number “xxxxxxxxxxxx1881”



Redacted Output

Card number in the middle of a sentence

hello credit card 4012888888881881 please check

hello credit card xxxxxxxxxxxx1881 please check

Card number at the beginning

4012888888881881 my credit card number is valid

xxxxxxxxxxxx1881 credit card number is valid

Below is a screenshot of how this is visible in Sprinklr Care Lite Care Console-