Raw schema
{
"type": "object",
"properties": {
"image_base64": {
"type": "string",
"minLength": 16,
"maxLength": 2000200,
"description": "The file content, base64-encoded (a data: URL prefix is accepted)."
},
"content_type": {
"type": "string",
"enum": [
"image/jpeg",
"image/png",
"image/gif",
"image/heic",
"image/heif",
"application/pdf"
],
"description": "The file's media type."
},
"filename": {
"description": "File name, for example receipt.jpg (default derived from content_type).",
"type": "string",
"maxLength": 120
},
"detail": {
"description": "simple (default) = totals, tax, date and merchant. verbose = also line items, payment type, per-field metadata and enabled fraud/feature fields.",
"type": "string",
"enum": [
"simple",
"verbose"
]
},
"extract_time": {
"description": "true = return the time of day when found on the receipt (otherwise 12:00:00).",
"type": "boolean"
},
"extract_line_items": {
"description": "Verbose only: false = skip line-item extraction (default true).",
"type": "boolean"
},
"ignore_merchant_name": {
"description": "A name to ignore if detected as the merchant, such as a customer name.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"language": {
"description": "Optional language hint (en, ar, kh, th, he, ...). Leave out for automatic detection.",
"type": "string",
"minLength": 2,
"maxLength": 10,
"pattern": "^[A-Za-z-]+$"
},
"near": {
"description": "A location (city, state, country) that helps identify the merchant.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"keep_stored": {
"description": "Default false: the document and its extracted data are NOT stored by Taggun (incognito). true = Taggun stores them (up to 3 years), which enables later duplicate/similarity detection but keeps personal data from the receipt.",
"type": "boolean"
}
},
"required": [
"image_base64",
"content_type"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}