Contacts and products
Customers, suppliers, contact people and the product and service catalog; how to avoid duplicates and keep them in sync with your system.
Customers
/api/v1/customers/contacts:read| Operation | Endpoint |
|---|---|
| List / search | GET /customers/?search=B12345674 |
| Create | POST /customers/ |
| Read | GET /customers/{id}/ |
| Update | PATCH /customers/{id}/ |
| Delete | DELETE /customers/{id}/ |
| Check the EU VAT number in VIES | GET /customers/{id}/vies/ |
{
"legal_name": "Talleres Martín S.L.",
"trade_name": "Talleres Martín",
"vat_id": "B12345674",
"party_type": "company",
"email": "administracion@talleresmartin.es",
"phone": "+34 976 000 000",
"billing_address": {
"line1": "Calle Mayor 10",
"line2": "Nave 3",
"city": "Zaragoza",
"postal_code": "50001",
"province": "Zaragoza",
"country": "ES"
},
"payment_terms": 2
}| Field | Description |
|---|---|
legal_name | Legal name or full name. Required. |
vat_id | Spanish NIF/CIF/NIE or foreign tax id. Stored normalised: upper case, no spaces, dots or dashes and without the ES prefix (71305103-C → 71305103C). With fiscal_country ES the check letter/digit is validated (400 if it doesn't match). |
vat_id_type | Id type per the Spanish Tax Agency: empty for a Spanish NIF, 02 EU VAT number, 03 passport, 04 official document from the country of residence, 05 residence certificate, 06 other document, 07 not registered. |
party_type | company (legal entity) or person (individual). |
fiscal_country | ISO-3166 tax country (ES, FR, IE…). Inferred if omitted: the EU VAT prefix (IE… → IE), else the billing_address country when the tax id is not Spanish, else ES. A value inconsistent with the prefix or the address is rejected (400). |
billing_address | line1, line2, city, postal_code, province, country. |
payment_terms | Default payment terms (/payment-terms/). |
dir3_unit, dir3_organ, dir3_office | DIR3 codes, only for Spanish public administrations (Facturae). |
Avoid duplicates
Before creating, search by tax id: GET /customers/?search=B12345674 (matches the tax id with or without the ES prefix, dashes or spaces; ?vat_id= too). Store Billora's id next to your own id and from then on update with PATCH.
If the customer has documents, cases or other related records, the API may reject the deletion to preserve the invoicing history.
Suppliers
Same format as customers, at /suppliers/ (with contacts:read / contacts:write). They are used in expenses. To check an EU VAT number without creating the supplier: GET /suppliers/vies-check/?vat=FR12345678901. A supplier with the organisation's own tax id is rejected (400): on a received invoice the supplier is the issuer.
Contact people
/people/ stores the contact people of customers and suppliers. Filter with ?customer=318 or ?supplier=45.
| Resource | Path |
|---|---|
| Additional addresses | /addresses/ |
| Tags | /tags/ |
| Payment terms | /payment-terms/ |
Products and services
/api/v1/products/products:read{
"name": "Revisión anual de maquinaria",
"code": "SRV-REV",
"type": "service",
"description": "Revisión preventiva completa",
"sale_price": "85.00",
"purchase_price": "0.00",
"spanish_taxes": [1],
"active": true
}type:goodsorservice.sale_priceis before tax;spanish_taxesare the default taxes applied when a line references the product without its own.- Search by name or code with
?search=. - Units of measure are at
/units/and tax templates at/tax-templates/.
Products are optional: an invoice line can carry just description, quantity, unit_price and spanish_taxes.
Sync
To keep customers or products aligned with your ERP, combine updated_after with the customer.created, customer.updated, customer.deleted, supplier.* and product.* webhook events.
Every field is in the API reference.
