Customers & suppliers
A party is a reusable receiver — a customer you invoice repeatedly. Storing one lets you reference it by id on a Factura Electrónica instead of inlining the receiver each time.
GET /v1/tenants/:tenantId/partiesPOST /v1/tenants/:tenantId/partiesGET /v1/tenants/:tenantId/parties/:idPATCH /v1/tenants/:tenantId/parties/:idDELETE /v1/tenants/:tenantId/parties/:idPOST /v1/tenants/:tenantId/parties/bulk # import manyUsing a party on an invoice
Section titled “Using a party on an invoice”Pass receiverId instead of an inline receiver:
{ "docType": "01", "receiverId": "9f3b8c1d-…", "lines": [/* … */] }At creation the party’s data is snapshotted into the invoice, so later edits
to the party don’t retroactively change issued documents. receiver and
receiverId are mutually exclusive.
Padrón lookup
Section titled “Padrón lookup”Resolve a name and default fields from Hacienda’s taxpayer registry by identification number — useful to pre-fill a new party or validate a cédula:
GET /v1/tenants/:tenantId/parties/lookup/:identificationNumberIdentification format
Section titled “Identification format”The number is validated against the sibling identificationType:
| Type | Format |
|---|---|
01 Cédula física |
9 digits |
02 Cédula jurídica |
10 positions — 4 digits + 6 alphanumeric (see below) |
03 DIMEX |
11–12 digits |
04 NITE |
10 digits |
05 Extranjero |
alphanumeric, up to 20 |
06 No contribuyente |
9–12 digits |
Numbers are normalized to uppercase before they are stored, so 3101a1b2c3
and 3101A1B2C3 resolve to the same party.
Immutability
Section titled “Immutability”A party’s identification (type + number) is immutable once created — it is
that taxpayer, and a PATCH that includes it answers 400. To correct it, create
a new party.
- Parties are configuration: environment-independent, shared across sandbox and production.
- Bulk import (
/bulk) is the path for onboarding an existing customer list; the same shape powers the dashboard’s Excel import.