Tryton República Dominicana
República Dominicana

unpaismejor-party-dgii-rnc-lookup (8.0.4)

Published 2026-08-23 15:41:24 -04:00 by unpaismejor

Installation

pip install --index-url https://code.unpaismejor.org.do/api/packages/tryton-do/pypi/simple/ --extra-index-url https://pypi.org/simple unpaismejor-party-dgii-rnc-lookup

About this package

Dominican DGII RNC lookup for Tryton parties

Party DGII RNC Lookup #####################

Tryton 8.0 module to synchronize Dominican party information from a DGII RNC lookup API.

The module extends party.party with a DGII tab and a Consultar DGII button. It stores the official name, commercial name, tax status, activity, local administration, electronic invoicing status and the raw API payload.

Document Lookup

Manual lookup uses the first Dominican identifier found on the party:

  • do_vat
  • do_cedula
  • do_rnc

If no Dominican identifier exists, the party name is used as a fallback. This keeps the quick workflow where a new party can be saved with the RNC or cedula temporarily in name and then synchronized from DGII.

API

No gateway URL is enabled by default. Configure an authorized service that implements one of these contracts:

  • GET /api/v1/rnc/{document_number}
  • POST /api/v1/rnc/lookup

Configuration is available on party.configuration.

The gateway is a configurable integration service, not an official public DGII API. DGII officially provides the web consultation and downloadable RNC lists. Deployments must verify the provider's authorization, availability, contract and data-processing terms. The module validates Dominican check digits and never accepts a response whose document differs from the requested RNC or cédula.

Cron

The module adds an ir.cron method to synchronize Dominican identifiers in batches. The cron can update the party name when enabled in configuration.

Requirements

Requires Python: >=3.11
Details
PyPI
2026-08-23 15:41:24 -04:00
0
Fundación Un País Mejor
34 KiB
Assets (2)
Versions (4) View all
8.0.5 2026-08-23
8.0.4 2026-08-23
8.0.3 2026-08-20
8.0.2 2026-08-16