/v1/company/seller-detailsSaves the seller details as a new version that names the person, and the address, contact and electronic address as the next version of the company’s Head office. A company with no Head office yet gets one, in the company’s country. An empty field is no value. With useOnInvoices: true, every mapping of this company fills each seller field its card does not write from these details, and the seller VAT ID from GET /v1/company/vat-id. A field the card writes keeps the file’s value. country is a two-letter country code. endpointScheme and endpointValue are given together, the scheme from the official electronic address scheme list, such as 9930 or 0204. Only a signed-in person can save them. An API key is refused with 401 session_required.
Request body
application/json, required
- 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).
- useOnInvoicesboolean
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 saved version. |
400 |
The details were refused (invalid_seller_details). The message names the field. Nothing was saved. |
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 -X PUT https://api.certinvo.com/v1/company/seller-details \
-H "Authorization: Bearer $CERTINVO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @body.jsonimport { readFile } from 'node:fs/promises'
const response = await fetch(`https://api.certinvo.com/v1/company/seller-details`, {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
'Content-Type': 'application/json',
},
body: await readFile('body.json'),
})
console.log(response.status, await response.json())import os
import requests
response = requests.put(
"https://api.certinvo.com/v1/company/seller-details",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}", "Content-Type": "application/json"},
data=open("body.json", "rb"),
)
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
}