/v1/group-defaultsReturns the defaults every company of this workspace starts from: the files to make, what happens to a received file the gate rejects, per format, and the extra checks for a company that never saved a policy of its own. They hold settings only, never a fact about a company. A company’s policy and an establishment’s block win over them. Version 0, with nothing set, means the group saved none. Any credential may read it.
Response
A 200 answer carries these fields.
- versionintegerRequired
Counts up per workspace
- produceobjectRequired
Which files an outbound invoice gets, for example
{"ubl": false, "cii": true, "zugferd-pdf": true, "peppol": false}. The keys are the ids of the formats Certinvo writes, such asubl,cii,zugferd-pdfandpeppol.- A key left out keeps its default:
ublandciiare made.zugferd-pdf,peppol,en16931-ublanden16931-ciiare not. en16931-ublanden16931-ciiare plain EN 16931 files: they carry the standard's own Specification identifier (BT-24) and no Business process type (BT-23). Only the EN16931 rulebook checks them, and they are kept only when it did not reject them.factur-xis the PDF/A-3 that carries that CII (EN 16931 profile). It is kept on the same condition as its CII.extended-ciiis the CII in FeRD's ZUGFeRD EXTENDED profile andzugferd-extendedthe PDF/A-3 that carries it. Only the ZUGFeRD EXTENDED rulebook checks them, so it must beREQUIREDwhen either is chosen; otherwise the update is refused (invalid_policy). Not made by default.
At least one file must be made. If no XRechnung file (
ubl,cii,zugferd-pdf) is chosen, the EN16931 rulebook must beREQUIRED, because only it checks the plain files. Otherwise the update is refused (invalid_policy). Only the chosen files are stored and checked. The CII is still checked when only the PDF is chosen, because the PDF carries it. A conversion freezes the company's current policy version when the operation is accepted. Request parameters cannot override this list for individual items. - A key left out keeps its default:
- filesobject
The files an invoice we make gets, per buyer type:
B2Ba business,B2Ca consumer,B2Ga public buyer, each a list of file ids asGET /v1/invoices/{id}/filesnames them, such asfactur-xorublandcii. A buyer type left out follows the next layer, and at the last the country default: the Factur-X PDF for a business or a consumer and XRechnung for a public buyer. A setting changes only the buyer type it names. Every save checks the files of each buyer type, merged over the layers below it, against the rulebooks that grade them.Show 3 child fields
- B2Barray of string
- B2Carray of string
- B2Garray of string
- incomingobjectRequired
Per format a received file arrives as, what happens when the gate rejects it:
holdkeeps it out of DATEV until a person releases it;accept, the default, accepts it with its findings.checks: advanced checks beyond the validator, each off unless named here.Show 4 child fields
- ublstringOne of
hold,accept. - ciistringOne of
hold,accept. - pdfstringOne of
hold,accept. - checksobject
Each check runs on received invoices only when named, with its action:
warnshows its finding on the invoice;holdalso keeps the invoice out of DATEV and the forward to your own system until a person releases it. A check left out is off and does not run.seller-account-changed: the invoice pays to an account none of the same seller's earlier received invoices named.pdf-xml-account-disagree: the XML inside a PDF pays to an account its page does not show.Show 2 child fields
- seller-account-changedstringOne of
warn,hold. - pdf-xml-account-disagreestringOne of
warn,hold.
- extraChecksobjectRequired
A strength for each extra check the group sets, on both sides, for a company that never saved a policy of its own. Only the rulebooks no decision picks are extra checks.
Status codes
| Status | Meaning |
|---|---|
200 |
The newest group defaults. |
401 |
No usable credential was sent (invalid_credentials). |
/v1/group-defaultscurl https://api.certinvo.com/v1/group-defaults \
-H "Authorization: Bearer $CERTINVO_API_KEY"const response = await fetch(`https://api.certinvo.com/v1/group-defaults`, {
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/group-defaults",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text){
"version": 0,
"produce": {},
"files": {
"B2B": [
"ubl"
],
"B2C": [
"ubl"
],
"B2G": [
"ubl"
]
},
"incoming": {
"ubl": "hold",
"cii": "hold",
"pdf": "hold",
"checks": {
"seller-account-changed": "warn",
"pdf-xml-account-disagree": "warn"
}
},
"extraChecks": {}
}