changedOutput schema / properties / request / properties / input / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "text"
- },
- "text": {
- "maxLength": 20000,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "text"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "analysis": {
- "additionalProperties": false,
- "minProperties": 1,
- "properties": {
- "currency": {
- "oneOf": [
- {
- "maxLength": 3,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "additionalProperties": false,
- "properties": {
- "confidence": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "value": {
- "oneOf": [
- {
- "maxLength": 3,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- }
- },
- "required": [
- "value"
- ],
- "type": "object"
- }
- ]
- },
- "line_items": {
- "items": {
- "additionalProperties": false,
- "minProperties": 1,
- "properties": {
- "amount": {
- "oneOf": [
- {
- "maxLength": 80,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "additionalProperties": false,
- "properties": {
- "confidence": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "value": {
- "oneOf": [
- {
- "maxLength": 80,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- }
- },
- "required": [
- "value"
- ],
- "type": "object"
- }
- ]
- },
- "description": {
- "oneOf": [
- {
- "maxLength": 240,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "additionalProperties": false,
- "properties": {
- "confidence": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "value": {
- "oneOf": [
- {
- "maxLength": 240,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- }
- },
- "required": [
- "value"
- ],
- "type": "object"
- }
- ]
- },
- "product_code": {
- "oneOf": [
- {
- "maxLength": 80,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "additionalProperties": false,
- "properties": {
- "confidence": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "value": {
- "oneOf": [
- {
- "maxLength": 80,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- }
- },
- "required": [
- "value"
- ],
- "type": "object"
- }
- ]
- },
- "quantity": {
- "oneOf": [
- {
- "maxLength": 80,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "additionalProperties": false,
- "properties": {
- "confidence": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "value": {
- "oneOf": [
- {
- "maxLength": 80,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- }
- },
- "required": [
- "value"
- ],
- "type": "object"
- }
- ]
- },
- "unit_price": {
- "oneOf": [
- {
- "maxLength": 80,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "additionalProperties": false,
- "properties": {
- "confidence": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "value": {
- "oneOf": [
- {
- "maxLength": 80,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- }
- },
- "required": [
- "value"
- ],
- "type": "object"
- }
- ]
- }
- },
- "type": "object"
- },
- "maxItems": 100,
- "type": "array"
- },
- "purchase_date": {
- "oneOf": [
- {
- "maxLength": 10,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "additionalProperties": false,
- "properties": {
- "confidence": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "value": {
- "oneOf": [
- {
- "maxLength": 10,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- }
- },
- "required": [
- "value"
- ],
- "type": "object"
- }
- ]
- },
- "purchase_order": {
- "oneOf": [
- {
- "maxLength": 160,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "additionalProperties": false,
- "properties": {
- "confidence": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "value": {
- "oneOf": [
- {
- "maxLength": 160,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- }
- },
- "required": [
- "value"
- ],
- "type": "object"
- }
- ]
- },
- "receipt_reference": {
- "oneOf": [
- {
- "maxLength": 160,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "additionalProperties": false,
- "properties": {
- "confidence": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "value": {
- "oneOf": [
- {
- "maxLength": 160,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- }
- },
- "required": [
- "value"
- ],
- "type": "object"
- }
- ]
- },
- "subtotal": {
- "oneOf": [
- {
- "maxLength": 32,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "additionalProperties": false,
- "properties": {
- "confidence": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "value": {
- "oneOf": [
- {
- "maxLength": 32,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- }
- },
- "required": [
- "value"
- ],
- "type": "object"
- }
- ]
- },
- "tax": {
- "oneOf": [
- {
- "maxLength": 32,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "additionalProperties": false,
- "properties": {
- "confidence": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "value": {
- "oneOf": [
- {
- "maxLength": 32,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- }
- },
- "required": [
- "value"
- ],
- "type": "object"
- }
- ]
- },
- "total": {
- "oneOf": [
- {
- "maxLength": 32,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "additionalProperties": false,
- "properties": {
- "confidence": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "value": {
- "oneOf": [
- {
- "maxLength": 32,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- }
- },
- "required": [
- "value"
- ],
- "type": "object"
- }
- ]
- },
- "vendor": {
- "oneOf": [
- {
- "maxLength": 160,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "additionalProperties": false,
- "properties": {
- "confidence": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "value": {
- "oneOf": [
- {
- "maxLength": 160,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- }
- },
- "required": [
- "value"
- ],
- "type": "object"
- }
- ]
- }
- },
- "type": "object"
- },
- "kind": {
- "const": "structured"
- }
- },
- "required": [
- "kind",
- "analysis"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "text",
+ "description": "Selects receipt text input; supply the text property."
+ },
+ "text": {
+ "description": "OCR or receipt text for one document, up to 20,000 characters. Exclude payment-card data, credentials, customer-record payloads, and financial posting instructions.",
+ "maxLength": 20000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "text"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "analysis": {
+ "additionalProperties": false,
+ "description": "Provider-neutral receipt extraction using only the listed fields. Omit fields that were not extracted.",
+ "minProperties": 1,
+ "properties": {
+ "currency": {
+ "description": "Three-letter currency code shown on the receipt, for example USD. Supply the extracted value directly or wrap it with optional extraction confidence.",
+ "oneOf": [
+ {
+ "maxLength": 3,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confidence": {
+ "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "value": {
+ "description": "The extracted field value, supplied as text or a number before receipt normalization.",
+ "oneOf": [
+ {
+ "maxLength": 3,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "line_items": {
+ "description": "Extracted receipt line items, limited to 100 entries; omit unavailable item fields.",
+ "items": {
+ "additionalProperties": false,
+ "minProperties": 1,
+ "properties": {
+ "amount": {
+ "description": "Extended amount printed for this line item, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence.",
+ "oneOf": [
+ {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confidence": {
+ "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "value": {
+ "description": "The extracted field value, supplied as text or a number before receipt normalization.",
+ "oneOf": [
+ {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "description": {
+ "description": "Item description printed on the receipt. Supply the extracted value directly or wrap it with optional extraction confidence.",
+ "oneOf": [
+ {
+ "maxLength": 240,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confidence": {
+ "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "value": {
+ "description": "The extracted field value, supplied as text or a number before receipt normalization.",
+ "oneOf": [
+ {
+ "maxLength": 240,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "product_code": {
+ "description": "Product identifier or SKU printed for this line item. Supply the extracted value directly or wrap it with optional extraction confidence.",
+ "oneOf": [
+ {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confidence": {
+ "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "value": {
+ "description": "The extracted field value, supplied as text or a number before receipt normalization.",
+ "oneOf": [
+ {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "quantity": {
+ "description": "Quantity purchased for this line item. Supply the extracted value directly or wrap it with optional extraction confidence.",
+ "oneOf": [
+ {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confidence": {
+ "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "value": {
+ "description": "The extracted field value, supplied as text or a number before receipt normalization.",
+ "oneOf": [
+ {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "unit_price": {
+ "description": "Price per unit for this line item, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence.",
+ "oneOf": [
+ {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confidence": {
+ "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "value": {
+ "description": "The extracted field value, supplied as text or a number before receipt normalization.",
+ "oneOf": [
+ {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "maxItems": 100,
+ "type": "array"
+ },
+ "purchase_date": {
+ "description": "Purchase date as extracted; YYYY-MM-DD is recommended. Supply the extracted value directly or wrap it with optional extraction confidence.",
+ "oneOf": [
+ {
+ "maxLength": 10,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confidence": {
+ "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "value": {
+ "description": "The extracted field value, supplied as text or a number before receipt normalization.",
+ "oneOf": [
+ {
+ "maxLength": 10,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "purchase_order": {
+ "description": "Purchase-order reference printed on the receipt; this does not select or link an Ardaro job. Supply the extracted value directly or wrap it with optional extraction confidence.",
+ "oneOf": [
+ {
+ "maxLength": 160,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confidence": {
+ "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "value": {
+ "description": "The extracted field value, supplied as text or a number before receipt normalization.",
+ "oneOf": [
+ {
+ "maxLength": 160,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "receipt_reference": {
+ "description": "Receipt, invoice, or transaction reference printed on the document. Supply the extracted value directly or wrap it with optional extraction confidence.",
+ "oneOf": [
+ {
+ "maxLength": 160,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confidence": {
+ "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "value": {
+ "description": "The extracted field value, supplied as text or a number before receipt normalization.",
+ "oneOf": [
+ {
+ "maxLength": 160,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "subtotal": {
+ "description": "Receipt subtotal before tax, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence.",
+ "oneOf": [
+ {
+ "maxLength": 32,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confidence": {
+ "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "value": {
+ "description": "The extracted field value, supplied as text or a number before receipt normalization.",
+ "oneOf": [
+ {
+ "maxLength": 32,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "tax": {
+ "description": "Total tax amount printed on the receipt, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence.",
+ "oneOf": [
+ {
+ "maxLength": 32,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confidence": {
+ "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "value": {
+ "description": "The extracted field value, supplied as text or a number before receipt normalization.",
+ "oneOf": [
+ {
+ "maxLength": 32,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "total": {
+ "description": "Final receipt total, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence.",
+ "oneOf": [
+ {
+ "maxLength": 32,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confidence": {
+ "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "value": {
+ "description": "The extracted field value, supplied as text or a number before receipt normalization.",
+ "oneOf": [
+ {
+ "maxLength": 32,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "vendor": {
+ "description": "Merchant or supplier name printed on the receipt. Supply the extracted value directly or wrap it with optional extraction confidence.",
+ "oneOf": [
+ {
+ "maxLength": 160,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confidence": {
+ "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "value": {
+ "description": "The extracted field value, supplied as text or a number before receipt normalization.",
+ "oneOf": [
+ {
+ "maxLength": 160,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "kind": {
+ "const": "structured",
+ "description": "Selects structured receipt input; supply the analysis property."
+ }
+ },
+ "required": [
+ "kind",
+ "analysis"
+ ],
+ "type": "object"
+ }
+]