Write raw DATEV ASCII file
curl --request POST \
--url https://api.kombo.dev/v1/custom/datev/passthrough \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Integration-Id: <x-integration-id>' \
--data '
{
"file_content": "<string>",
"accounting_month": "2023-11-07T05:31:56Z",
"file_name": "Stammdaten.txt"
}
'import requests
url = "https://api.kombo.dev/v1/custom/datev/passthrough"
payload = {
"file_content": "<string>",
"accounting_month": "2023-11-07T05:31:56Z",
"file_name": "Stammdaten.txt"
}
headers = {
"X-Integration-Id": "<x-integration-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Integration-Id': '<x-integration-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
file_content: '<string>',
accounting_month: '2023-11-07T05:31:56Z',
file_name: 'Stammdaten.txt'
})
};
fetch('https://api.kombo.dev/v1/custom/datev/passthrough', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.kombo.dev/v1/custom/datev/passthrough",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'file_content' => '<string>',
'accounting_month' => '2023-11-07T05:31:56Z',
'file_name' => 'Stammdaten.txt'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Integration-Id: <x-integration-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kombo.dev/v1/custom/datev/passthrough"
payload := strings.NewReader("{\n \"file_content\": \"<string>\",\n \"accounting_month\": \"2023-11-07T05:31:56Z\",\n \"file_name\": \"Stammdaten.txt\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Integration-Id", "<x-integration-id>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.kombo.dev/v1/custom/datev/passthrough")
.header("X-Integration-Id", "<x-integration-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"file_content\": \"<string>\",\n \"accounting_month\": \"2023-11-07T05:31:56Z\",\n \"file_name\": \"Stammdaten.txt\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombo.dev/v1/custom/datev/passthrough")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Integration-Id"] = '<x-integration-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_content\": \"<string>\",\n \"accounting_month\": \"2023-11-07T05:31:56Z\",\n \"file_name\": \"Stammdaten.txt\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {},
"warnings": [
{
"message": "This is an example warning!"
}
]
}
DATEV Payroll
Write raw DATEV ASCII file
This action allows to send an arbitrary ASCII file directly to DATEV LODAS or Lohn und Gehalt. Kombo adds validation for the file format but not on the content. This action allows you to implement any use case that you might have with DATEV payroll ASCII imports.
POST
/
custom
/
datev
/
passthrough
Write raw DATEV ASCII file
curl --request POST \
--url https://api.kombo.dev/v1/custom/datev/passthrough \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Integration-Id: <x-integration-id>' \
--data '
{
"file_content": "<string>",
"accounting_month": "2023-11-07T05:31:56Z",
"file_name": "Stammdaten.txt"
}
'import requests
url = "https://api.kombo.dev/v1/custom/datev/passthrough"
payload = {
"file_content": "<string>",
"accounting_month": "2023-11-07T05:31:56Z",
"file_name": "Stammdaten.txt"
}
headers = {
"X-Integration-Id": "<x-integration-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Integration-Id': '<x-integration-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
file_content: '<string>',
accounting_month: '2023-11-07T05:31:56Z',
file_name: 'Stammdaten.txt'
})
};
fetch('https://api.kombo.dev/v1/custom/datev/passthrough', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.kombo.dev/v1/custom/datev/passthrough",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'file_content' => '<string>',
'accounting_month' => '2023-11-07T05:31:56Z',
'file_name' => 'Stammdaten.txt'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Integration-Id: <x-integration-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kombo.dev/v1/custom/datev/passthrough"
payload := strings.NewReader("{\n \"file_content\": \"<string>\",\n \"accounting_month\": \"2023-11-07T05:31:56Z\",\n \"file_name\": \"Stammdaten.txt\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Integration-Id", "<x-integration-id>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.kombo.dev/v1/custom/datev/passthrough")
.header("X-Integration-Id", "<x-integration-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"file_content\": \"<string>\",\n \"accounting_month\": \"2023-11-07T05:31:56Z\",\n \"file_name\": \"Stammdaten.txt\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombo.dev/v1/custom/datev/passthrough")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Integration-Id"] = '<x-integration-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_content\": \"<string>\",\n \"accounting_month\": \"2023-11-07T05:31:56Z\",\n \"file_name\": \"Stammdaten.txt\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {},
"warnings": [
{
"message": "This is an example warning!"
}
]
}
Authorizations
Create an API key on the Secrets page in the Kombo dashboard.
Body
application/json
POST /custom/datev/passthrough Request body
Response
POST /custom/datev/passthrough Positive response
Was this page helpful?