---
title: "vision.receipt-result@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/vision.receipt-result"
updated: null
---

# vision.receipt-result@1 · OpenVibe.Services

HTML: [vision.receipt-result@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/vision.receipt-result)

# VisionReceiptResult `vision.receipt-result@1`

Generated at 2026-11-13 06:25:48 UTC from [`openvibe-contracts v0.419.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.419.0) and [`openvibe-sdk v0.161.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.161.0).

- Version: 1.0.0
- Owner: vision
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/vision/receipt-result.v1.json`](/docs/contracts/vision.receipt-result.json)

vision.receipt-result@1: POST /api/v1/receipt answers the store, the line items and the total the local OCR reader read (or the routed fallback read), with \`raw\_text\` when the local pass produced it. OpenVibe.Food decides what enters a pantry; Vision returns the reading.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `answer` | object | yes |  | - `no other fields` |
| `answer.store` | string \| null | yes |  | - `maxLength 150` |
| `answer.items` | array of object | yes |  | - `maxItems 100`<br>- `items: no other fields` |
| `answer.items[].name` | string | yes |  | - `maxLength 200` |
| `answer.items[].qty` | number | yes |  | - `minimum 0` |
| `answer.items[].price` | number | yes |  | - `minimum 0` |
| `answer.total` | number \| null | yes |  | - `minimum 0` |
| `answer.raw_text` | string |  |  | - `maxLength 20000` |
| `answer.receipt` | object | yes |  | - `no other fields` |
| `answer.receipt.engine` | enum | yes |  | - `one of "local", "routed", "local+routed", "local+routed description"` |
| `answer.receipt.model` | string \| null | yes |  |  |
| `answer.receipt.cost_usd` | number | yes |  | - `minimum 0` |
| `answer.receipt.ms` | integer | yes |  | - `minimum 0` |
| `answer.receipt.confidence` | number \| null | yes |  |  |
| `answer.receipt.retention` | string | yes |  |  |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: one

~~~~
{
  "answer": {
    "store": "Corner Market",
    "items": [
      {
        "name": "Milk",
        "qty": 2,
        "price": 3.5
      }
    ],
    "total": 7,
    "receipt": {
      "engine": "local",
      "model": "Tesseract 5",
      "cost_usd": 0,
      "ms": 120,
      "confidence": 0.9,
      "retention": "not stored"
    }
  }
}
~~~~

Rejected: one

~~~~
{
  "answer": {
    "store": "Corner Market",
    "items": [
      {
        "name": "Milk",
        "qty": "two",
        "price": 3.5
      }
    ],
    "total": 7,
    "receipt": {
      "engine": "local",
      "model": "Tesseract 5",
      "cost_usd": 0,
      "ms": 120,
      "confidence": 0.9,
      "retention": "not stored"
    }
  }
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('vision.receipt-result@1', value);   // { valid, errors: [{ path, message }] }
~~~~
