/v1/console-setupRecords the answers, in this company’s name, and marks the workspace’s setup finished. Answering again saves a new version; earlier answers are never edited. Answers saved before source was dropped are read back without it. Only a signed-in person may call this, as for /v1/invoice-layout. An API key is refused with 401 session_required.
Request body
application/json, required
- modestring or nullRequired
How the company will send work to Certinvo. Null only for a company that only receives, who is not asked.
One oferp,console,api,null. - directionstringRequired
Whether the company sends invoices, receives them, or both.
One ofoutgoing,incoming,both. - marketsarray of stringRequired
Germany, and the countries the company ticked as wanted. Only Germany is served today.
Response
A 200 answer carries these fields.
- completedbooleanRequired
- completedAtstring (date-time) or nullRequired
When setup was last finished. Null when it was not, or when no database is configured.
- answersobjectRequired
The latest answers. Null when setup is not finished, or when the company was marked finished without being asked (it existed before this record did).
Show 3 child fields
- modestring or nullRequired
How the company will send work to Certinvo. Null only for a company that only receives, who is not asked.
One oferp,console,api,null. - directionstringRequired
Whether the company sends invoices, receives them, or both.
One ofoutgoing,incoming,both. - marketsarray of stringRequired
Germany, and the countries the company ticked as wanted. Only Germany is served today.
Status codes
| Status | Meaning |
|---|---|
200 |
The workspace’s setup state, now finished. |
400 |
The answers were refused (invalid_console_setup). The message names the field. Nothing was saved. |
401 |
No usable credential (invalid_credentials), or an API key was used (session_required). Setup is finished by a signed-in person. |
503 |
No database is configured (store_unavailable), so setup cannot be recorded. |
/v1/console-setupcurl -X PUT https://api.certinvo.com/v1/console-setup \
-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/console-setup`, {
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/console-setup",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}", "Content-Type": "application/json"},
data=open("body.json", "rb"),
)
print(response.status_code, response.text){
"completed": true,
"completedAt": "2026-09-17T09:30:00Z",
"answers": {
"mode": "erp",
"direction": "outgoing",
"markets": [
"de"
]
}
}