woovibr / woovi-developers

Woovi Developers documentations
http://developers.woovi.com/
15 stars 2 forks source link

[Customers] duplicated #417

Open xxdannilinxx opened 1 month ago

xxdannilinxx commented 1 month ago

image

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

xxdannilinxx commented 1 month ago

I will test passing the correlationID field

daniloab commented 1 month ago

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 commented 1 month ago

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.