/v1/beta/approvals/{token}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.
- statestringRequiredOne 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 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.
- 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). |
/v1/beta/approvals/{token}curl https://api.certinvo.com/v1/beta/approvals/$APPROVAL_TOKENconst 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){
"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"
}