unpaismejor-party-dgii-rnc-lookup (8.0.4)
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-lookupAbout 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_vatdo_cedulado_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.