Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Customers] duplicated #417

Open
xxdannilinxx opened this issue May 22, 2024 · 3 comments
Open

[Customers] duplicated #417

xxdannilinxx opened this issue May 22, 2024 · 3 comments

Comments

@xxdannilinxx
Copy link

image

With each new charge, a new customer is created, it appears that records are duplicating.

@xxdannilinxx
Copy link
Author

I will test passing the correlationID field

@daniloab
Copy link
Contributor

To avoid duplicating customer you need to use the taxID field. The primary key of customer is the CPF/CPNP represented by this field

@xxdannilinxx
Copy link
Author

I believe you could have unique double keys, telephone number and taxID, as in quick and over-the-counter sales we do not fill in the CPF.

But that's Woovi's internal business rule, it's just a tip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants