Customer GiftCard not located in the administrative module when performing a CPF query
ID:
Backlog
Published on 7/27/2017
•
Last update on 12/22/2022
Summary
When performing a GiftCard query in the Admin by ID (document), the customer's voucher is not listed.

Simulation
When performing a query by ID, the system includes a mask in the following format: 999.999.999-99. However, when a Voucher is created by API, the ID is registered in the following format: 99999999999 (without dots or hyphens).
To simulate this scenario:
- Create a Gift Card using the API and link it to a customer (Documentation for creating Gift Cards: https://documenter.getpostman.com/view/18468/giftcard-system/6YtyvrM);
- Enter the Gift Cards administrative module and query the client's ID;
- The voucher will not be listed because the queried ID will follow the standard 999.999.999-99 and the registered ID will follow the standard 99999999999.
Workaround
To work around the problem, you can remove the dots and the hyphen in the field itself.
To query an ID with no dots or hyphens (created using the API), follow these steps:
- Enter the ID in the query field;
- Remove the dots and the hyphen;
- Click "Search".
