Raw schema
{
"type": "object",
"properties": {
"employee": {
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
"description": "Employee uuid (from jethr_list_employees)."
},
"kind": {
"type": "string",
"enum": [
"FOOD",
"TRAVELS",
"KM",
"TELECOM",
"HOTELS",
"DEVICES",
"SERVICES",
"OTHER",
"CUSTOM"
],
"description": "Expense kind: FOOD, TRAVELS, KM, TELECOM, HOTELS, DEVICES, SERVICES, OTHER, CUSTOM."
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "What the expense was for."
},
"amount": {
"type": "string",
"pattern": "^-?\\d{1,6}(\\.\\d{1,2})?$",
"description": "Amount in EUR, e.g. 49.90."
},
"amount_total": {
"type": "string",
"pattern": "^-?\\d{1,6}(\\.\\d{1,2})?$",
"description": "Amount in amount_total_currency (equal to amount for EUR)."
},
"amount_total_currency": {
"description": "Currency of amount_total (default EUR).",
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"payment_date": {
"type": "string",
"description": "Date the employee paid (yyyy-mm-dd)."
},
"subkind": {
"description": "Sub-kind of the expense, if the policy has one.",
"type": "string",
"maxLength": 200
},
"note": {
"description": "Note.",
"type": "string",
"maxLength": 2000
},
"is_billed_to_company": {
"description": "The expense was billed to the company.",
"type": "boolean"
},
"car_brand": {
"description": "Mileage (KM) only: vehicle make.",
"type": "string",
"maxLength": 200
},
"car_model_series": {
"description": "Mileage (KM) only: vehicle model and series.",
"type": "string",
"maxLength": 200
},
"car_cost_km": {
"description": "Mileage (KM) only: cost per km in EUR, e.g. 0.4521.",
"type": "string",
"pattern": "^\\d(\\.\\d{1,4})?$"
},
"car_km": {
"description": "Mileage (KM) only: kilometres driven.",
"type": "integer",
"minimum": 0,
"maximum": 2147483647
}
},
"required": [
"employee",
"kind",
"description",
"amount",
"amount_total",
"payment_date"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}