/v1/customersReturns this company’s customers: who each is (type, establishedCountry) and the facts its country’s rules ask of a buyer (facts), which the legal check reads, and the buyer reference its invoices carry (buyerReference, BT-10). A conversion can name one of them with customer. There are no defaults. Every customer is added by the company. Any credential may read it, so a system converting for a customer can check which customers exist.
Response
A 200 answer carries these fields.
- versionintegerRequired
Starts at 1 and counts up per company.
- customersarray of objectRequired
Show 16 child fields
- idstringRequired
The customer's id. Use it to name the customer in a conversion (
customer). Lower-case letters, digits and hyphens, starting with a letter or digit, at most 63 characters. - namestringRequired
The customer's name, as the company writes it. Shown in findings and on the create form.
- typestring
Who the customer is:
business, a business buying for its business;consumer; orpublic, a public authority. The legal check reads it; for a customer with no type, the type is assumed from the invoice and the report says so.One ofbusiness,consumer,public. - establishedCountrystring
Where the customer is established, as an ISO 3166-1 country code. Absent: the country of the buyer's address on each invoice stands for it.
- factsobject
Each fact a country's rules ask of a buyer that this customer states, named as the rules name it, such as whether a public buyer in Germany is a federal contracting authority (true or false).
GET /v1/jurisdictionslists them, with their type and the buyer types each is asked of. The legal check reads them. Each value is checked against the rule file that defines it when the list is saved. - buyerReferencestring
The reference the customer asks its invoices to carry, written into an invoice as the Buyer reference (BT-10), such as a German public buyer's Leitweg-ID. The create form copies it into a new invoice. The conformance gate validates the invoice it is written into, never this list.
- vatIdstring
The customer's VAT identifier, written into an invoice as the Buyer VAT identifier (BT-48), such as DE123456789. It is checked when an invoice is validated, not when the list is saved.
- registrationIdstring
The customer's legal registration identifier, written into an invoice as the Buyer legal registration identifier (BT-47), such as a French SIREN. The French rules require it on a B2B invoice.
- registrationIdSchemestring
The register the legal registration identifier was issued under (BT-47-1), an ISO 6523 code such as 0002 for a SIREN.
- addressobject
The customer's postal address, written into an invoice as the Buyer postal address (BG-8), with the field names of the canonical invoice so the create form copies it as it is. Every field is optional.
Show 6 child fields
- streetstring
The first address line (BT-50).
- addressLine2string
The second address line (BT-51).
- postalZonestring
The post code (BT-53).
- citystring
The city (BT-52).
- countrySubdivisionstring
The region or state (BT-54).
- countrystring
The country (BT-55), as an ISO 3166-1 country code such as DE.
- contactobject
The person to contact at the customer, written into an invoice as the Buyer contact (BG-9). Every field is optional.
Show 3 child fields
- namestring
The contact's name (BT-56).
- emailstring
The contact's email address (BT-58).
- telephonestring
The contact's telephone number (BT-57).
- languagestring
The language its invoices print in unless one is chosen for the invoice: one of the engine's label files. Absent: the buyer's country decides, else the company's language.
One ofde,en,fr. - filesarray of string
The files every invoice for this customer must have, by their ids in the list of files Certinvo makes, such as
zugferd-pdforcii. They are made whatever the company's Settings say. A conversion for this customer that turns one of them off (outputs.pdforoutputs.peppolfalse) is refused withcustomer_needs_file. A file is still kept only when its own rules accept it. - deliveryobject
How the invoice reaches this customer: by email to one address, through the customer's portal, or by Peppol to its participant ID. It names the one
fileit carries, which must be one offiles. An email is sent by a person, or by itself when the company's sending setting (/v1/sending) or this delivery'ssendingsays automatic. A portal upload is always done by a person. The plan is kept with each invoice when it is filed, so a later change here does not change an invoice already made.Show 4 child fields
- channelstringRequired
- tostringRequired
The one address the invoice is sent to.
- filestringRequired
The file attached, one of
files. - sendingstring
Whether this customer's invoices are emailed by themselves after the check, or wait for a person. Absent: the company's sending setting decides. Which verdicts are sent by themselves is always the company's setting.
One ofautomatic,by-hand.
- lookupsobject
What the official registries answered when the customer was last saved, written by the API on each save; a value sent here is replaced. Guidance only: an answer never sets the customer's type and never holds an invoice.
vies: the EU Commission's VAT number check (VIES) forvatId.peppol: the Peppol network's registry (SML and SMP) forelectronicAddress.directory: for a customer saved with noelectronicAddress, the registry asked for its VAT ID, in the scheme the official EAS list names for its country, and for a Leitweg-ID inbuyerReference; exactly one registered participant fillselectronicAddress. A registry that could not be asked answersunavailable, which says nothing about the customer.Show 3 child fields
- viesobject
Show 5 child fields
- vatIdstringRequired
The VAT ID that was asked.
- statusstringRequired
VIES's answer: valid, invalid, or unavailable when VIES or the member state's service could not be asked.
One ofvalid,invalid,unavailable. - namestring or null
The name VIES holds for a valid number, when it gives one.
- addressstring or null
The address VIES holds for a valid number, when it gives one.
- checkedAtstringRequired
When the API asked, as an ISO 8601 date and time.
- peppolobject
Show 3 child fields
- participantstringRequired
The participant id that was asked: the scheme and the address, joined by a colon.
- statusstringRequired
Whether the Peppol registry lists the participant, or unavailable when it could not be asked.
One ofregistered,not-registered,unavailable. - checkedAtstringRequired
When the API asked, as an ISO 8601 date and time.
- directoryobject
Show 3 child fields
- statusstringRequired
found: exactly one registered participant, used as the electronic address; several: more than one, none used, the person picks; none: none registered; unavailable: the registry could not be asked, which says nothing about the customer.
One offound,several,none,unavailable. - participantsarray of stringRequired
The registered participants found, each as the scheme and the address joined by a colon.
- checkedAtstringRequired
When the API asked, as an ISO 8601 date and time.
- electronicAddressobject
The Buyer electronic address (BT-49) and its scheme (BT-49-1). Present only when the customer gave one.
Show 2 child fields
- schemestringRequired
- valuestringRequired
- createdAtstring (date-time)Required
- createdBystring (uuid)Required
The signed-in person who saved it. Never null, because there is no default list.
Status codes
| Status | Meaning |
|---|---|
200 |
The current version. |
401 |
No usable credential was sent (invalid_credentials). |
404 |
No customers were ever saved (no_customers). |
/v1/customerscurl https://api.certinvo.com/v1/customers \
-H "Authorization: Bearer $CERTINVO_API_KEY"const response = await fetch(`https://api.certinvo.com/v1/customers`, {
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status, await response.json())import os
import requests
response = requests.get(
"https://api.certinvo.com/v1/customers",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text){
"version": 0,
"customers": [
{
"id": "string",
"name": "string",
"type": "business",
"establishedCountry": "string",
"facts": {},
"buyerReference": "string",
"vatId": "string",
"registrationId": "string",
"registrationIdScheme": "string",
"address": {
"street": "string",
"addressLine2": "string",
"postalZone": "string",
"city": "string",
"countrySubdivision": "string",
"country": "string"
},
"contact": {
"name": "string",
"email": "string",
"telephone": "string"
},
"language": "de",
"files": [
"string"
],
"delivery": {
"channel": "email",
"to": "string",
"file": "string",
"sending": "automatic"
},
"lookups": {
"vies": {
"vatId": "string",
"status": "valid",
"name": "string",
"address": "string",
"checkedAt": "string"
},
"peppol": {
"participant": "string",
"status": "registered",
"checkedAt": "string"
},
"directory": {
"status": "found",
"participants": [
"string"
],
"checkedAt": "string"
}
},
"electronicAddress": {
"scheme": "string",
"value": "string"
}
}
],
"createdAt": "2026-09-17T09:30:00Z",
"createdBy": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"
}