Skip to content

Duplicate company doc: ELECTROGRUP SA (CIF 9256208 vs 09256208) #1127

Description

@sebiboga

Duplicate ELECTROGRUP SA entries in the company core:

curl -s 'https://api.peviitor.ro/v1/firme/company/?name=ELECTROGRUP'
→ total: 2
  - id: 9256208   (correct — the real CIF, keep this one)
  - id: 09256208  (zero-padded duplicate — DELETE this one)

Which document to keep / delete

  • KEEP id=9256208 — this is the real CIF (verified via ANAF/CUIScan/CUIFirma: cui 9256208, ELECTROGRUP SA).
  • DELETE id=09256208 — the zero-padded duplicate, created by an unpadded PUT to /v1/firme/company/add/ that the peviitor API padded to 8 digits.

Root cause

A scraper workflow's ensure-company-core step PUT the company with the CIF, and the peviitor API stored it zero-padded to exactly 8 digits, producing a duplicate alongside the real 7-digit CIF doc.

Requested action

Remove the zero-padded company doc id=09256208 (company ELECTROGRUP SA). Keep id=9256208.

Note: DELETE /v1/firme/company/delete/ currently returns a PHP fatal error (require_once .../util/loadEnv.php fails), so there is no working public API for this cleanup — see #1128.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions