Skip to content

API reference

Finish the console's setup

Other routes API

PUT/v1/console-setup

Records 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 of erp, console, api, null.
  • directionstringRequired

    Whether the company sends invoices, receives them, or both.

    One of outgoing, 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 of erp, console, api, null.
    • directionstringRequired

      Whether the company sends invoices, receives them, or both.

      One of outgoing, 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.
PUT/v1/console-setup
Example
curl -X PUT https://api.certinvo.com/v1/console-setup \
  -H "Authorization: Bearer $CERTINVO_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @body.json
import { 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)
200
application/json
{
  "completed": true,
  "completedAt": "2026-09-17T09:30:00Z",
  "answers": {
    "mode": "erp",
    "direction": "outgoing",
    "markets": [
      "de"
    ]
  }
}
Success response
PUT
/v1/console-setup
Finish the console's setup
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Headers2
›Bodyapplication/json
›Code Snippet
curl -X PUT "https://api.certinvo.com/v1/console-setup" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "mode": "erp",
  "direction": "outgoing",
  "markets": [
    "de"
  ]
}...'
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close