Schema
Cleaned ticket output
This is the same cleaned structure used to visualize the pre-moderation JSON in Easypromos.
{
"header": {
"store_name": "CLAREL",
"store_address": "AV PRIMERO DE JUNIO 66",
"tax_id": "A43227628",
"phone": "+34912345678",
"date": "2025-09-24",
"time": "20:08",
"receipt_number": "00309139",
"currency": "EUR",
"city": "Venta de Banos",
"postal_code": "34200",
"country": "Spain",
"country_code": "ES",
"timezone": "Europe/Madrid",
"utc_date_time": "2025-09-24T20:08:00+02:00"
},
"line_items": [
{
"article": "SERUM REVITALIFT LAS",
"sku": "171752",
"quantity": 1,
"total": 24.19
},
{
"article": "CREMA REVITALIF LASE",
"sku": "155687",
"quantity": 1,
"total": 22.09
},
{
"article": "DETER MAQU CAPSULA O",
"sku": "308872",
"quantity": 1,
"total": 9.99
},
{
"article": "ESPUMA PERFECT VOLUM",
"sku": "290794",
"quantity": 1,
"total": 5.49
},
{
"article": "LACA PERFECT VOLUMEN",
"sku": "290790",
"quantity": 1,
"total": 5.29
}
],
"footer": {
"total": 37.87
},
"controls": {
"handwritten": 0,
"text_quality": 95
}
}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": [
"header",
"line_items",
"footer",
"controls"
],
"additionalProperties": false,
"properties": {
"header": {
"type": "object",
"required": [
"store_name",
"store_address",
"tax_id",
"phone",
"date",
"time",
"receipt_number",
"currency",
"city",
"postal_code",
"country",
"country_code",
"timezone",
"utc_date_time"
],
"additionalProperties": false,
"properties": {
"store_name": {
"type": "string"
},
"store_address": {
"type": "string"
},
"tax_id": {
"type": "string"
},
"phone": {
"type": "string"
},
"date": {
"type": "string",
"format": "date"
},
"time": {
"type": [
"string",
"null"
]
},
"receipt_number": {
"type": "string"
},
"currency": {
"type": [
"string",
"null"
]
},
"city": {
"type": "string"
},
"postal_code": {
"type": "string"
},
"country": {
"type": "string"
},
"country_code": {
"type": "string"
},
"timezone": {
"type": "string"
},
"utc_date_time": {
"type": "string",
"format": "date-time"
}
}
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"article",
"sku",
"quantity",
"total"
],
"additionalProperties": false,
"properties": {
"article": {
"type": [
"string",
"null"
]
},
"sku": {
"type": "string"
},
"quantity": {
"type": [
"integer",
"number",
"null"
]
},
"total": {
"type": [
"number",
"null"
]
}
}
}
},
"footer": {
"type": "object",
"required": [
"total"
],
"additionalProperties": false,
"properties": {
"total": {
"type": "number"
}
}
},
"controls": {
"type": "object",
"required": [
"handwritten",
"text_quality"
],
"additionalProperties": false,
"properties": {
"handwritten": {
"type": [
"integer",
"boolean"
]
},
"text_quality": {
"type": "number"
}
}
}
}
}