---
updatedAt: 2026-07-29T02:03:53.000Z
agentTools:
  projectIndex: https://developers.taggun.io/llms.txt
---

# Encoded File (verbose)

Send a base64-encoded receipt or invoice in a JSON body and return Taggun's broader verbose extraction response — product line items, helper arrays, detailed merchant data, per-field metadata, and enabled feature envelopes when applicable. Useful where multipart uploads are awkward (queue pipelines, some serverless platforms). Only need totals? Use [Encoded File (simple)](/reference/encoded-file-simple).

Encode a supported file type. A request-size limit applies; see [Document Types & File Requirements](/docs/document-types-and-files) for the current requirements.

See a complete [example verbose response](/reference/example-json-encoded-file-verbose), then use [Understanding Your Results](/docs/understanding-results) and [Data Fields That Taggun Extracts](/docs/data-fields-that-taggun-extracts) to interpret it. Authentication and common parameters are defined once in the [Taggun API Reference](/reference/overview).

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "receipt-ocr-validation-json",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.taggun.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "apikey",
        "description": "API key (`apikey` header)"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/receipt/v1/verbose/encoded": {
      "post": {
        "summary": "Encoded File (verbose)",
        "description": "Send a base64-encoded receipt or invoice in a JSON body and return Taggun's broader verbose extraction response — product line items, helper arrays, detailed merchant data, per-field metadata, and enabled feature envelopes when applicable. Useful where multipart uploads are awkward (queue pipelines, some serverless platforms). Only need totals? Use [Encoded File (simple)](/reference/encoded-file-simple).\n\nEncode a supported file type. A request-size limit applies; see [Document Types & File Requirements](/docs/document-types-and-files) for the current requirements.\n\nSee a complete [example verbose response](/reference/example-json-encoded-file-verbose), then use [Understanding Your Results](/docs/understanding-results) and [Data Fields That Taggun Extracts](/docs/data-fields-that-taggun-extracts) to interpret it. Authentication and common parameters are defined once in the [Taggun API Reference](/reference/overview).",
        "operationId": "encoded-file-verbose",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "image",
                  "filename",
                  "contentType"
                ],
                "properties": {
                  "image": {
                    "type": "string",
                    "description": "The base64-encoded file content. The field is named `image` for legacy reasons but accepts any supported file type, including PDF."
                  },
                  "filename": {
                    "type": "string",
                    "description": "The file name."
                  },
                  "contentType": {
                    "type": "string",
                    "description": "The file content type. For example: `image/jpeg`."
                  },
                  "extractLineItems": {
                    "type": "boolean",
                    "default": true,
                    "description": "Set to `false` to skip product line-item extraction. See [Line Item Extraction](/docs/line-item-extraction)."
                  },
                  "extractTime": {
                    "type": "boolean",
                    "default": false,
                    "description": "Set to `true` to return the time when found on the receipt. Otherwise, time is set to 12:00:00.000."
                  },
                  "language": {
                    "type": "string",
                    "description": "Optional language hint; leave empty for automatic detection. Recommended for Arabic (`ar`), Khmer (`kh`), Thai (`th`), and Hebrew (`he`). Full code list: [Language detection and hints](/docs/global-coverage#language-detection-and-hints)."
                  },
                  "near": {
                    "type": "string",
                    "description": "A location (city, state, country) to help search for the merchant."
                  },
                  "ipAddress": {
                    "type": "string",
                    "maxLength": 100,
                    "description": "End user's IP address, used for GeoIP lookup. When context is available, a verbose response can include a root `location` object for this IP; it is separate from the extracted merchant address."
                  },
                  "ignoreMerchantName": {
                    "type": "string",
                    "description": "Specify a merchant name to ignore if it is detected on the file, such as a customer name mistaken for the merchant."
                  },
                  "refresh": {
                    "type": "boolean",
                    "default": false,
                    "description": "Set to `true` to force reprocessing if the receipt is already stored."
                  },
                  "incognito": {
                    "type": "boolean",
                    "default": false,
                    "description": "Per-request storage opt-out. See [Security, Privacy & Data Residency](/docs/security-and-privacy#per-request-storage-opt-out-incognito)."
                  },
                  "userId": {
                    "type": "string",
                    "maxLength": 50,
                    "description": "End-user identifier associated with the submission and returned with matched receipts, when available, so cross-user reuse can be investigated."
                  },
                  "containerId": {
                    "type": "string",
                    "maxLength": 50,
                    "description": "Scopes [duplicate and similarity checks](/docs/duplicate-and-similarity-detection) to scans with the same caller-defined value. Omit to compare account-wide."
                  },
                  "subAccountId": {
                    "type": "string",
                    "maxLength": 50,
                    "description": "Attribute usage to a client or other subdivision within your Taggun account for reporting. This does not create a separate Taggun account or subscription."
                  },
                  "referenceId": {
                    "type": "string",
                    "maxLength": 50,
                    "description": "Caller-supplied identifier. See [Duplicate & Similarity Detection](/docs/duplicate-and-similarity-detection)."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verbose extraction result",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"totalAmount\": {\n    \"data\": 14.42,\n    \"confidenceLevel\": 0.9199999999999999,\n    \"text\": \"CP Card 14.42\",\n    \"index\": 20,\n    \"keyword\": \"-\",\n    \"currencyCode\": \"USD\",\n    \"regions\": []\n  },\n  \"taxAmount\": {\n    \"data\": 0.82,\n    \"confidenceLevel\": 0.9199999999999999,\n    \"text\": \"Tax 0.82\",\n    \"index\": 18,\n    \"keyword\": \"-\",\n    \"currencyCode\": \"USD\",\n    \"regions\": []\n  },\n  \"discountAmount\": {\n    \"confidenceLevel\": 0\n  },\n  \"paidAmount\": {\n    \"data\": 14.42,\n    \"confidenceLevel\": 0.9199999999999999,\n    \"text\": \"CP Card 14.42\",\n    \"index\": 20,\n    \"regions\": []\n  },\n  \"confidenceLevel\": 0.898,\n  \"date\": {\n    \"data\": \"2024-09-25T12:00:00.000Z\",\n    \"confidenceLevel\": 0.9199999999999999,\n    \"text\": \"Host: Cicily 09/25/2024\",\n    \"index\": 6,\n    \"regions\": []\n  },\n  \"dueDate\": {\n    \"confidenceLevel\": 0\n  },\n  \"text\": {\n    \"text\": \"CHIPOTLE\\nMEVIC GRILL\\nBUILD-YOUR-OWN HAPPINESS\\n702 E Boise Avenue\\nBoise, ID 83706\\n208-509-4827\\nHost: Cicily 09/25/2024\\n7:16 PM\\nORDER #409 10310\\nChicken Bowl 9.10\\nGuacamole\\nChips 2.65\\n1.85\\nHow're we doing? Let us know at\\nChipotleFeedback.com\\nUnique Code:\\n390 009 100 054 210 001 71\\nSubtotal 13.60\\nTax 0.82\\nTAKE OUT Total 14.42\\nCP Card 14.42\\nAuthorizing. ..\\nBalance Due 14.42\\nLove Chipotle? Join Our Team\\nGet great benefits like:\\nFree Chipotle\\nDebt-free college degrees\\nBonus eligibility\\nRapid career growth\\nAnd more!\\nVisit jobs.chipotle.com\\nText \\\"CHIPJOBS\\\" to 97211\",\n    \"regions\": []\n  },\n  \"amounts\": [\n    {\n      \"data\": 9.1,\n      \"index\": 9,\n      \"regions\": [],\n      \"text\": \"Chicken Bowl 9.10\"\n    },\n    {\n      \"data\": 2.65,\n      \"index\": 11,\n      \"regions\": [],\n      \"text\": \"Chips 2.65\"\n    },\n    {\n      \"data\": 1.85,\n      \"index\": 12,\n      \"regions\": [],\n      \"text\": \"1.85\"\n    },\n    {\n      \"data\": 13.6,\n      \"index\": 17,\n      \"regions\": [],\n      \"text\": \"Subtotal 13.60\"\n    },\n    {\n      \"data\": 0.82,\n      \"index\": 18,\n      \"regions\": [],\n      \"text\": \"Tax 0.82\"\n    },\n    {\n      \"data\": 14.42,\n      \"index\": 19,\n      \"regions\": [],\n      \"text\": \"TAKE OUT Total 14.42\"\n    },\n    {\n      \"data\": 14.42,\n      \"index\": 20,\n      \"regions\": [],\n      \"text\": \"CP Card 14.42\"\n    },\n    {\n      \"data\": 14.42,\n      \"index\": 22,\n      \"regions\": [],\n      \"text\": \"Balance Due 14.42\"\n    }\n  ],\n  \"numbers\": [\n    {\n      \"data\": 702,\n      \"text\": \"702 E Boise Avenue\",\n      \"regions\": [],\n      \"index\": 3\n    },\n    {\n      \"data\": 83706,\n      \"text\": \"Boise, ID 83706\",\n      \"regions\": [],\n      \"index\": 4\n    },\n    {\n      \"data\": 409,\n      \"text\": \"ORDER #409 10310\",\n      \"regions\": [],\n      \"index\": 8,\n      \"classifyResult\": \"primaryTotal\"\n    },\n    {\n      \"data\": 10310,\n      \"text\": \"ORDER #409 10310\",\n      \"regions\": [],\n      \"index\": 8,\n      \"classifyResult\": \"primaryTotal\"\n    },\n    {\n      \"data\": 390,\n      \"text\": \"390 009 100 054 210 001 71\",\n      \"regions\": [],\n      \"index\": 16\n    },\n    {\n      \"data\": 100,\n      \"text\": \"390 009 100 054 210 001 71\",\n      \"regions\": [],\n      \"index\": 16\n    },\n    {\n      \"data\": 210,\n      \"text\": \"390 009 100 054 210 001 71\",\n      \"regions\": [],\n      \"index\": 16\n    },\n    {\n      \"data\": 71,\n      \"text\": \"390 009 100 054 210 001 71\",\n      \"regions\": [],\n      \"index\": 16\n    },\n    {\n      \"data\": 97211,\n      \"text\": \"Text \\\"CHIPJOBS\\\" to 97211\",\n      \"regions\": [],\n      \"index\": 31\n    }\n  ],\n  \"entities\": {\n    \"productLineItems\": [\n      {\n        \"data\": {\n          \"quantity\": {\n            \"data\": 1,\n            \"regions\": [],\n            \"text\": \"1\"\n          },\n          \"unitPrice\": {\n            \"data\": 9.1,\n            \"regions\": [],\n            \"text\": \"9.10\"\n          },\n          \"totalPrice\": {\n            \"data\": 9.1,\n            \"regions\": [],\n            \"text\": \"9.10\"\n          },\n          \"name\": {\n            \"data\": \"Chicken Bowl\",\n            \"regions\": [],\n            \"text\": \"Chicken Bowl\"\n          }\n        },\n        \"confidenceLevel\": 0.65,\n        \"text\": \"Chicken Bowl 9.10\",\n        \"index\": 9,\n        \"regions\": []\n      },\n      {\n        \"data\": {\n          \"quantity\": {\n            \"data\": 1,\n            \"regions\": [],\n            \"text\": \"1\"\n          },\n          \"unitPrice\": {\n            \"data\": 1.85,\n            \"regions\": [],\n            \"text\": \"1.85\"\n          },\n          \"totalPrice\": {\n            \"data\": 1.85,\n            \"regions\": [],\n            \"text\": \"1.85\"\n          },\n          \"name\": {\n            \"data\": \"Guacamole\",\n            \"regions\": [],\n            \"text\": \"Guacamole\"\n          }\n        },\n        \"confidenceLevel\": 0.65,\n        \"text\": \"Guacamole\",\n        \"index\": 10,\n        \"regions\": []\n      },\n      {\n        \"data\": {\n          \"quantity\": {\n            \"data\": 1,\n            \"regions\": [],\n            \"text\": \"1\"\n          },\n          \"unitPrice\": {\n            \"data\": 2.65,\n            \"regions\": [],\n            \"text\": \"2.65\"\n          },\n          \"totalPrice\": {\n            \"data\": 2.65,\n            \"regions\": [],\n            \"text\": \"2.65\"\n          },\n          \"name\": {\n            \"data\": \"Chips\",\n            \"regions\": [],\n            \"text\": \"Chips\"\n          }\n        },\n        \"confidenceLevel\": 0.65,\n        \"text\": \"Chips 2.65\",\n        \"index\": 11,\n        \"regions\": []\n      }\n    ],\n    \"invoiceNumber\": {\n      \"confidenceLevel\": 0\n    },\n    \"receiptNumber\": {\n      \"data\": \"10310\",\n      \"confidenceLevel\": 0.9199999999999999,\n      \"text\": \"ORDER #409 10310\",\n      \"keyword\": \"-\",\n      \"index\": 8,\n      \"regions\": []\n    },\n    \"last4\": {\n      \"confidenceLevel\": 0\n    }\n  },\n  \"lineAmounts\": [],\n  \"itemsCount\": {\n    \"data\": 3,\n    \"confidenceLevel\": 0.8\n  },\n  \"paymentType\": {\n    \"confidenceLevel\": 0\n  },\n  \"trackingId\": \"T-20241008-6053437\",\n  \"merchantName\": {\n    \"data\": \"CHIPOTLE\",\n    \"confidenceLevel\": 0.8100000000000002,\n    \"text\": \"CHIPOTLE\",\n    \"index\": 0,\n    \"regions\": []\n  },\n  \"merchantAddress\": {\n    \"data\": \"702 E Boise Ave, Boise, Idaho, 83706\",\n    \"confidenceLevel\": 0.99,\n    \"text\": \"702 E Boise Avenue\\nBoise, ID 83706\",\n    \"index\": 4,\n    \"regions\": []\n  },\n  \"merchantCity\": {\n    \"data\": \"Boise\",\n    \"confidenceLevel\": 0.99,\n    \"text\": \"702 E Boise Avenue\\nBoise, ID 83706\",\n    \"index\": 4,\n    \"regions\": []\n  },\n  \"merchantState\": {\n    \"data\": \"Ada County, Idaho\",\n    \"confidenceLevel\": 0.99,\n    \"text\": \"702 E Boise Avenue\\nBoise, ID 83706\",\n    \"index\": 4,\n    \"regions\": []\n  },\n  \"merchantCountryCode\": {\n    \"data\": \"US\",\n    \"confidenceLevel\": 0.99,\n    \"text\": \"702 E Boise Avenue\\nBoise, ID 83706\",\n    \"index\": 4,\n    \"regions\": []\n  },\n  \"merchantPostalCode\": {\n    \"data\": \"83706\",\n    \"confidenceLevel\": 0.99,\n    \"text\": \"702 E Boise Avenue\\nBoise, ID 83706\",\n    \"index\": 4,\n    \"regions\": []\n  },\n  \"targetRotation\": 0,\n  \"elapsed\": 4538.480549000204\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "totalAmount": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "number",
                          "description": "The cleaned, standardised value — ready to use directly."
                        },
                        "confidenceLevel": {
                          "type": "number",
                          "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                        },
                        "text": {
                          "type": "string",
                          "description": "The OCR text associated with the extracted value, when returned."
                        },
                        "index": {
                          "type": "integer",
                          "description": "Position of the match within the raw OCR text."
                        },
                        "keyword": {
                          "type": "string",
                          "description": "The matched keyword that anchored the extraction; `-` when the value was not keyword-driven."
                        },
                        "currencyCode": {
                          "type": "string",
                          "description": "Detected currency for this monetary value, for example `USD`."
                        },
                        "regions": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          },
                          "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                        }
                      },
                      "description": "The total value of the transaction."
                    },
                    "taxAmount": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "number",
                          "description": "The cleaned, standardised value — ready to use directly."
                        },
                        "confidenceLevel": {
                          "type": "number",
                          "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                        },
                        "text": {
                          "type": "string",
                          "description": "The OCR text associated with the extracted value, when returned."
                        },
                        "index": {
                          "type": "integer",
                          "description": "Position of the match within the raw OCR text."
                        },
                        "keyword": {
                          "type": "string",
                          "description": "The matched keyword that anchored the extraction; `-` when the value was not keyword-driven."
                        },
                        "currencyCode": {
                          "type": "string",
                          "description": "Detected currency for this monetary value, for example `USD`."
                        },
                        "regions": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          },
                          "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                        }
                      },
                      "description": "The total amount of tax in the transaction."
                    },
                    "discountAmount": {
                      "type": "object",
                      "properties": {
                        "confidenceLevel": {
                          "type": "integer",
                          "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                        }
                      },
                      "description": "Discount applied to the transaction, when detected."
                    },
                    "paidAmount": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "number",
                          "description": "The cleaned, standardised value — ready to use directly."
                        },
                        "confidenceLevel": {
                          "type": "number",
                          "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                        },
                        "text": {
                          "type": "string",
                          "description": "The OCR text associated with the extracted value, when returned."
                        },
                        "index": {
                          "type": "integer",
                          "description": "Position of the match within the raw OCR text."
                        },
                        "regions": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          },
                          "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                        }
                      },
                      "description": "The amount actually paid, when detected."
                    },
                    "confidenceLevel": {
                      "type": "number",
                      "description": "Overall confidence for the whole document."
                    },
                    "date": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "string",
                          "description": "The cleaned, standardised value — ready to use directly."
                        },
                        "confidenceLevel": {
                          "type": "number",
                          "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                        },
                        "text": {
                          "type": "string",
                          "description": "The OCR text associated with the extracted value, when returned."
                        },
                        "index": {
                          "type": "integer",
                          "description": "Position of the match within the raw OCR text."
                        },
                        "regions": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          },
                          "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                        }
                      },
                      "description": "Transaction date in ISO 8601. Time is `12:00:00.000` unless `extractTime` is set to `true`."
                    },
                    "dueDate": {
                      "type": "object",
                      "properties": {
                        "confidenceLevel": {
                          "type": "integer",
                          "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                        }
                      },
                      "description": "Payment due date on invoices, when detected."
                    },
                    "text": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string",
                          "description": "The OCR text associated with the extracted value, when returned."
                        },
                        "regions": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          },
                          "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                        }
                      },
                      "description": "The full raw OCR text of the document."
                    },
                    "amounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "data": {
                            "type": "number",
                            "description": "The cleaned, standardised value — ready to use directly."
                          },
                          "index": {
                            "type": "integer",
                            "description": "Position of the match within the raw OCR text."
                          },
                          "regions": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                          },
                          "text": {
                            "type": "string",
                            "description": "The OCR text associated with the extracted value, when returned."
                          }
                        }
                      },
                      "description": "Every monetary amount found on the document — a helper array for custom matching."
                    },
                    "numbers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "data": {
                            "type": "integer",
                            "description": "The cleaned, standardised value — ready to use directly."
                          },
                          "text": {
                            "type": "string",
                            "description": "The OCR text associated with the extracted value, when returned."
                          },
                          "regions": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                          },
                          "index": {
                            "type": "integer",
                            "description": "Position of the match within the raw OCR text."
                          }
                        }
                      },
                      "description": "Every number found on the document — a helper array for custom matching."
                    },
                    "entities": {
                      "type": "object",
                      "properties": {
                        "productLineItems": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "quantity": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "integer",
                                        "description": "The cleaned, standardised value — ready to use directly."
                                      },
                                      "regions": {
                                        "type": "array",
                                        "items": {
                                          "type": "object"
                                        },
                                        "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                                      },
                                      "text": {
                                        "type": "string",
                                        "description": "The OCR text associated with the extracted value, when returned."
                                      }
                                    },
                                    "description": "How many of the item were purchased."
                                  },
                                  "unitPrice": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "number",
                                        "description": "The cleaned, standardised value — ready to use directly."
                                      },
                                      "regions": {
                                        "type": "array",
                                        "items": {
                                          "type": "object"
                                        },
                                        "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                                      },
                                      "text": {
                                        "type": "string",
                                        "description": "The OCR text associated with the extracted value, when returned."
                                      }
                                    },
                                    "description": "Price for a single unit."
                                  },
                                  "totalPrice": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "number",
                                        "description": "The cleaned, standardised value — ready to use directly."
                                      },
                                      "regions": {
                                        "type": "array",
                                        "items": {
                                          "type": "object"
                                        },
                                        "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                                      },
                                      "text": {
                                        "type": "string",
                                        "description": "The OCR text associated with the extracted value, when returned."
                                      }
                                    },
                                    "description": "Total price for the line."
                                  },
                                  "name": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "string",
                                        "description": "The cleaned, standardised value — ready to use directly."
                                      },
                                      "regions": {
                                        "type": "array",
                                        "items": {
                                          "type": "object"
                                        },
                                        "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                                      },
                                      "text": {
                                        "type": "string",
                                        "description": "The OCR text associated with the extracted value, when returned."
                                      }
                                    },
                                    "description": "Product or service name."
                                  }
                                },
                                "description": "The cleaned, standardised value — ready to use directly."
                              },
                              "confidenceLevel": {
                                "type": "number",
                                "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                              },
                              "text": {
                                "type": "string",
                                "description": "The OCR text associated with the extracted value, when returned."
                              },
                              "index": {
                                "type": "integer",
                                "description": "Position of the match within the raw OCR text."
                              },
                              "regions": {
                                "type": "array",
                                "items": {
                                  "type": "object"
                                },
                                "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                              }
                            }
                          },
                          "description": "Individual products extracted from the receipt. Verbose endpoints only."
                        },
                        "invoiceNumber": {
                          "type": "object",
                          "properties": {
                            "confidenceLevel": {
                              "type": "integer",
                              "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                            }
                          },
                          "description": "Invoice number, when detected."
                        },
                        "receiptNumber": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "string",
                              "description": "The cleaned, standardised value — ready to use directly."
                            },
                            "confidenceLevel": {
                              "type": "number",
                              "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                            },
                            "text": {
                              "type": "string",
                              "description": "The OCR text associated with the extracted value, when returned."
                            },
                            "keyword": {
                              "type": "string",
                              "description": "The matched keyword that anchored the extraction; `-` when the value was not keyword-driven."
                            },
                            "index": {
                              "type": "integer",
                              "description": "Position of the match within the raw OCR text."
                            },
                            "regions": {
                              "type": "array",
                              "items": {
                                "type": "object"
                              },
                              "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                            }
                          },
                          "description": "Receipt number, when detected."
                        },
                        "last4": {
                          "type": "object",
                          "properties": {
                            "confidenceLevel": {
                              "type": "integer",
                              "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                            }
                          },
                          "description": "Last four digits of the payment card, when detected."
                        }
                      },
                      "description": "Named entities extracted from the document: product line items, invoice and receipt numbers, and card details."
                    },
                    "lineAmounts": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "Amounts detected on individual document lines — a helper array."
                    },
                    "itemsCount": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "integer",
                          "description": "The cleaned, standardised value — ready to use directly."
                        },
                        "confidenceLevel": {
                          "type": "number",
                          "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                        }
                      },
                      "description": "How many product line items were extracted."
                    },
                    "paymentType": {
                      "type": "object",
                      "properties": {
                        "confidenceLevel": {
                          "type": "integer",
                          "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                        }
                      },
                      "description": "Detected payment method, when available."
                    },
                    "trackingId": {
                      "type": "string",
                      "description": "Unique identifier for this scan. Quote it in support requests."
                    },
                    "merchantName": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "string",
                          "description": "The cleaned, standardised value — ready to use directly."
                        },
                        "confidenceLevel": {
                          "type": "number",
                          "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                        },
                        "text": {
                          "type": "string",
                          "description": "The OCR text associated with the extracted value, when returned."
                        },
                        "index": {
                          "type": "integer",
                          "description": "Position of the match within the raw OCR text."
                        },
                        "regions": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          },
                          "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                        }
                      },
                      "description": "The name of the merchant who issued the receipt."
                    },
                    "merchantAddress": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "string",
                          "description": "The cleaned, standardised value — ready to use directly."
                        },
                        "confidenceLevel": {
                          "type": "number",
                          "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                        },
                        "text": {
                          "type": "string",
                          "description": "The OCR text associated with the extracted value, when returned."
                        },
                        "index": {
                          "type": "integer",
                          "description": "Position of the match within the raw OCR text."
                        },
                        "regions": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          },
                          "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                        }
                      },
                      "description": "Street address of the merchant, when detected."
                    },
                    "merchantCity": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "string",
                          "description": "The cleaned, standardised value — ready to use directly."
                        },
                        "confidenceLevel": {
                          "type": "number",
                          "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                        },
                        "text": {
                          "type": "string",
                          "description": "The OCR text associated with the extracted value, when returned."
                        },
                        "index": {
                          "type": "integer",
                          "description": "Position of the match within the raw OCR text."
                        },
                        "regions": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          },
                          "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                        }
                      },
                      "description": "Merchant city, when detected."
                    },
                    "merchantState": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "string",
                          "description": "The cleaned, standardised value — ready to use directly."
                        },
                        "confidenceLevel": {
                          "type": "number",
                          "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                        },
                        "text": {
                          "type": "string",
                          "description": "The OCR text associated with the extracted value, when returned."
                        },
                        "index": {
                          "type": "integer",
                          "description": "Position of the match within the raw OCR text."
                        },
                        "regions": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          },
                          "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                        }
                      },
                      "description": "Merchant state or region, when detected."
                    },
                    "merchantCountryCode": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "string",
                          "description": "The cleaned, standardised value — ready to use directly."
                        },
                        "confidenceLevel": {
                          "type": "number",
                          "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                        },
                        "text": {
                          "type": "string",
                          "description": "The OCR text associated with the extracted value, when returned."
                        },
                        "index": {
                          "type": "integer",
                          "description": "Position of the match within the raw OCR text."
                        },
                        "regions": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          },
                          "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                        }
                      },
                      "description": "Merchant country code, when detected."
                    },
                    "merchantPostalCode": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "string",
                          "description": "The cleaned, standardised value — ready to use directly."
                        },
                        "confidenceLevel": {
                          "type": "number",
                          "description": "Confidence signal for this field. Not a calibrated probability or an accuracy guarantee."
                        },
                        "text": {
                          "type": "string",
                          "description": "The OCR text associated with the extracted value, when returned."
                        },
                        "index": {
                          "type": "integer",
                          "description": "Position of the match within the raw OCR text."
                        },
                        "regions": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          },
                          "description": "Pixel coordinates of the value on the document. Emptied in published examples for readability."
                        }
                      },
                      "description": "Merchant postal code, when detected."
                    },
                    "targetRotation": {
                      "type": "integer",
                      "description": "Numeric image-rotation value returned by processing."
                    },
                    "elapsed": {
                      "type": "number",
                      "description": "Processing time in milliseconds."
                    },
                    "location": {
                      "type": "object",
                      "description": "Geolocation context derived from the supplied `ipAddress` (GeoIP). Verbose responses only; describes request context, not the merchant address."
                    }
                  },
                  "description": "Properties and nested `data` may be omitted when a value is not produced for the document; the types below describe populated values, not a guarantee that every property is returned."
                }
              }
            }
          },
          "400": {
            "description": "Bad request — required encoded-file fields missing or invalid, including unsupported encoded media",
            "content": {
              "application/json": {
                "examples": {
                  "Invalid request payload": {
                    "value": "{\n  \"statusCode\": 400,\n  \"error\": \"Bad Request\",\n  \"message\": \"Invalid request payload input\"\n}"
                  },
                  "File type is not permitted": {
                    "value": "{\n  \"message\": \"File type is not permitted.\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 400,
                      "default": 0
                    },
                    "error": {
                      "type": "string",
                      "example": "Bad Request"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing API key",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"No API key found in request\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "No API key found in request"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Invalid API key",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"Invalid authentication credentials\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Invalid authentication credentials"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the 20 MiB (20,971,520-byte) HTTP body limit — multipart framing and base64 expansion count toward the measured body. See [Document Types & File Requirements](/docs/document-types-and-files)."
          },
          "429": {
            "description": "API rate limit exceeded",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"API rate limit exceeded\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "API rate limit exceeded"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "Upstream processing error — example body illustrative, pending Engineering confirmation of the public envelope",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\"message\":\"An invalid response was received from the upstream server\"}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "An invalid response was received from the upstream server"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```