/v1/company/seller-detailsReturns the company’s seller details for its invoices: name, address, a contact, the electronic address, and whether a mapping may use them (useOnInvoices). The name, the legal registration, the notes, the business process type and useOnInvoices are the company’s own; the address, the contact and the electronic address are its Head office’s, as GET /v1/establishments lists it. The Sandbox reads and saves the same ones as the live company it was made with. Version 0 means nothing was saved yet: the name and address are then the ones given on the company step, and useOnInvoices is false. Only a signed-in person can read them. An API key is refused with 401 session_required.
Response
A 200 answer carries these fields.
- namestring or null
- streetstring or null
- postcodestring or null
- citystring or null
- countrystring or null
- contactNamestring or null
- contactPhonestring or null
- contactEmailstring or null
- endpointSchemestring or null
- endpointValuestring or null
- registrationSchemestring or null
The scheme of the seller legal registration identifier (BT-30-1), an ISO 6523 code such as 0002 for a SIREN. Given with registrationId.
- registrationIdstring or null
The seller legal registration identifier (BT-30), such as a French SIREN.
- businessProcessTypestring or null
The usual business process type (BT-23) of the company's invoices, such as the French billing mode S1. Each invoice starts from it.
- legalNotesarray of object
The notes every invoice of the company carries (BG-1), such as the French PMD, PMT and AAB.
Show 2 child fields
- subjectCodestringRequired
The note subject code (BT-21), from UNTDID 4451.
- textstringRequired
The note (BT-22).
- useOnInvoicesbooleanRequired
- versionintegerRequired
Status codes
| Status | Meaning |
|---|---|
200 |
The newest seller details. |
401 |
No usable credential was sent (invalid_credentials), or an API key was used (session_required). |
501 |
This deployment has no database, so it keeps no seller details (no_database). Sending the same request again will not help. |
/v1/company/seller-detailscurl https://api.certinvo.com/v1/company/seller-details \
-H "Authorization: Bearer $CERTINVO_API_KEY"const response = await fetch(`https://api.certinvo.com/v1/company/seller-details`, {
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/company/seller-details",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text){
"name": "string",
"street": "string",
"postcode": "string",
"city": "string",
"country": "string",
"contactName": "string",
"contactPhone": "string",
"contactEmail": "string",
"endpointScheme": "string",
"endpointValue": "string",
"registrationScheme": "string",
"registrationId": "string",
"businessProcessType": "string",
"legalNotes": [
{
"subjectCode": "string",
"text": "string"
}
],
"useOnInvoices": true,
"version": 0
}