{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fuentio-com/json-schema/fuentio-com-items-in-schema.json",
  "title": "ItemsIn",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fuentio-com-openapi.json#/components/schemas/ItemsIn",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/RowIn"
      },
      "type": "array",
      "maxItems": 500,
      "minItems": 1,
      "title": "Items"
    },
    "start_row": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 5000.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Start Row",
      "description": "The row number of this chunk's first row. Sending a chunk again with the same start_row adds nothing twice. Left out: after the rows already held."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "items"
  ],
  "$defs": {
    "RowIn": {
      "properties": {
        "reference": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 200
            },
            {
              "type": "null"
            }
          ],
          "title": "Reference",
          "description": "Your own supplier ID."
        },
        "company_name": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 300
            },
            {
              "type": "null"
            }
          ],
          "title": "Company Name"
        },
        "country": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 60
            },
            {
              "type": "null"
            }
          ],
          "title": "Country",
          "description": "FR, ES or GB (other countries: not covered)."
        },
        "identifier_type": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 40
            },
            {
              "type": "null"
            }
          ],
          "title": "Identifier Type",
          "description": "Optional: SIREN, SIRET, VAT, LEI, NIF, HOJA, COMPANY_NUMBER (or a scheme name such as FR_SIREN). Left out, the ID's format decides."
        },
        "identifier": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 60
            },
            {
              "type": "null"
            }
          ],
          "title": "Identifier"
        },
        "postal_code": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 20
            },
            {
              "type": "null"
            }
          ],
          "title": "Postal Code",
          "description": "For a row without an ID: with the street, it can make a strong match."
        },
        "town": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100
            },
            {
              "type": "null"
            }
          ],
          "title": "Town"
        },
        "street": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 200
            },
            {
              "type": "null"
            }
          ],
          "title": "Street"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "RowIn"
    }
  }
}