Skip to content

API reference

Get the invoice email template

Other routes API

GET/v1/email-template

Returns the newest subject and text this customer saved for its invoice emails. Version 0, with a null subject and text, means none was saved and the default German text is sent.

Response

A 200 answer carries these fields.

  • subjectstring or nullRequired
  • bodystring or nullRequired
  • versionintegerRequired

    0 when none was saved.

Status codes

Status Meaning
200 The template.
401 No usable credential was sent (invalid_credentials).
GET/v1/email-template
Example
curl https://api.certinvo.com/v1/email-template \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/email-template`, {
  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/email-template",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "subject": "string",
  "body": "string",
  "version": 0
}
Success response
GET
/v1/email-template
Get the invoice email template
All
›AuthenticationRequiredBearerAuth

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

›Headers2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/email-template" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -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