Skip to content

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.

Ventana de terminal
GET /v1/tenants/:tenantId/parties
POST /v1/tenants/:tenantId/parties
GET /v1/tenants/:tenantId/parties/:id
PATCH /v1/tenants/:tenantId/parties/:id
DELETE /v1/tenants/:tenantId/parties/:id
POST /v1/tenants/:tenantId/parties/bulk # import many

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.

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:

Ventana de terminal
GET /v1/tenants/:tenantId/parties/lookup/:identificationNumber

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.

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.