POST
/
germany
/
wage-types
Create Wage Type
curl --request POST \
  --url https://dev.intermezzo.ai/germany/wage-types \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "wage_type_number": 123,
  "name": "<string>"
}
'
import requests

url = "https://dev.intermezzo.ai/germany/wage-types"

payload = {
"wage_type_number": 123,
"name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({wage_type_number: 123, name: '<string>'})
};

fetch('https://dev.intermezzo.ai/germany/wage-types', 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://dev.intermezzo.ai/germany/wage-types",
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([
'wage_type_number' => 123,
'name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$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://dev.intermezzo.ai/germany/wage-types"

payload := strings.NewReader("{\n \"wage_type_number\": 123,\n \"name\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

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://dev.intermezzo.ai/germany/wage-types")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"wage_type_number\": 123,\n \"name\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://dev.intermezzo.ai/germany/wage-types")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"wage_type_number\": 123,\n \"name\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "id": 123,
  "wage_type_number": 123,
  "name": "<string>",
  "is_total_gross_component": true,
  "tax_certificate_line_item": "<string>",
  "is_sv_relevant_component": true,
  "is_reimbursable_aag": true,
  "is_accident_insurance_relevant": true,
  "is_gl_component": true,
  "is_average_earnings_component": true,
  "is_minimum_wage_component": true,
  "valid_from": "2023-12-25",
  "valid_to": "2023-12-25"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Authorizations

Authorization
string
header
required

Get token from Auth0 and paste it here

Body

application/json

Request schema for creating a German wage type

wage_type_number
integer
required

The business key of the wage type

Example:

1000

name
string
required

The name of the wage type

Required string length: 1 - 255
Example:

"Basic Salary"

is_total_gross_component
boolean
default:true

Component of the total gross (Gesamtbrutto)

component_type
enum<string>
default:gross_earning

The component type of the wage, defining its place in the calculation flow

Available options:
gross_earning,
gross_deduction,
net_earning,
net_deduction
tax_treatment
enum<string>
default:recurring_wage

The tax treatment for this wage type

Available options:
recurring_wage,
one_time_payment,
flat_rate_tax,
tax_free
tax_certificate_line_item
string | null

Points to a line item in the annual tax certificate (Lohnsteuerbescheinigung)

Maximum string length: 100
social_security_treatment
enum<string>
default:recurring_wage

The social security treatment for this wage type

Available options:
recurring_wage,
one_time_payment,
social_security_free
is_sv_relevant_component
boolean
default:true

Component of Arbeitsentgelt according to §14 SGB IV

is_reimbursable_aag
boolean
default:false

Reimbursable under the Aufwendungsausgleichsgesetz (U1 / U2 coverage)

is_accident_insurance_relevant
boolean
default:true

Relevant for accident insurance (Unfallversicherung)

is_gl_component
boolean
default:false

Component of the base wage (Grundlohn) used for calculating surcharges

is_average_earnings_component
boolean
default:true

Component of the average earnings used for continued remuneration

garnishment_treatment
enum<string>
default:full

The garnishment treatment (Pfändbarkeit)

Available options:
full,
non_garnishable,
partial
is_minimum_wage_component
boolean
default:true

Component of the statutory minimum wage (Mindestlohn)

Response

Successful Response

Response schema for German wage type

id
integer
required

Database ID

wage_type_number
integer
required

The business key of the wage type

name
string
required

The name of the wage type

is_total_gross_component
boolean
required

Component of the total gross (Gesamtbrutto)

component_type
enum<string>
required

The component type

Available options:
gross_earning,
gross_deduction,
net_earning,
net_deduction
tax_treatment
enum<string>
required

The tax treatment

Available options:
recurring_wage,
one_time_payment,
flat_rate_tax,
tax_free
tax_certificate_line_item
string | null
required

Tax certificate line item

social_security_treatment
enum<string>
required

The social security treatment

Available options:
recurring_wage,
one_time_payment,
social_security_free
is_sv_relevant_component
boolean
required

Component of Arbeitsentgelt

is_reimbursable_aag
boolean
required

Reimbursable under AAG

is_accident_insurance_relevant
boolean
required

Relevant for accident insurance

is_gl_component
boolean
required

Component of base wage

is_average_earnings_component
boolean
required

Component of average earnings

garnishment_treatment
enum<string>
required

Garnishment treatment

Available options:
full,
non_garnishable,
partial
is_minimum_wage_component
boolean
required

Component of minimum wage

valid_from
string<date> | null
valid_to
string<date> | null