Skip to content

API reference

Show the beta request an approve link names

Other routes API

GET/v1/beta/approvals/{token}
No key needed

Shows the request the link was made for: the company, the person who gave it, what they answered in the console’s setup (null before they answered), and the workspace’s state. Changes nothing: mail scanners open links on their own, so only POST approves. The token is the credential, so no other is sent. It names one workspace, works for 30 days, and any change to it is refused with 404 approval_link_invalid, which says nothing about any workspace.

Path parameters

  • tokenstringRequired

Response

A 200 answer carries these fields.

  • statestringRequired
    One of profile, review, open.
  • answersobjectRequired

    The answers to the console's setup questions. Every field is required.

    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.

  • profileobject or nullRequired
    Show 3 child fields
    • namestringRequired
    • vatIdstring or nullRequired
    • addressobjectRequired
      Show 4 child fields
      • streetstringRequired
      • postcodestringRequired
      • citystringRequired
      • countrystringRequired
  • emailstring or nullRequired

Status codes

Status Meaning
200 The request, and whether it is still waiting (review) or already approved (open).
404 The link is not valid, or it is older than 30 days (approval_link_invalid).
503 This deployment has no database (store_unavailable).
GET/v1/beta/approvals/{token}
Example
curl https://api.certinvo.com/v1/beta/approvals/$APPROVAL_TOKEN
const approvalToken = 'value'

const response = await fetch(`https://api.certinvo.com/v1/beta/approvals/${approvalToken}`, {
})
console.log(response.status, await response.json())
import requests

approval_token = "value"

response = requests.get(
    f"https://api.certinvo.com/v1/beta/approvals/{approval_token}",
)
print(response.status_code, response.text)
200
application/json
{
  "state": "profile",
  "answers": {
    "mode": "erp",
    "direction": "outgoing",
    "markets": [
      "de"
    ]
  },
  "profile": {
    "name": "string",
    "vatId": "string",
    "address": {
      "street": "string",
      "postcode": "string",
      "city": "string",
      "country": "string"
    }
  },
  "email": "string"
}
Success response
GET
/v1/beta/approvals/{token}
Show the beta request an approve link names
All
›AuthenticationNoneBearerAuth

This endpoint does not require authentication.

›Variables1
›Headers2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/beta/approvals/{token}" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close