{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/narmi/main/json-schema/narmi-deposits-response-schema.json",
  "title": "DepositsResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/narmi-deposits-api-openapi.yml#/components/schemas/DepositsResponse",
  "type": "object",
  "properties": {
    "deposits": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Deposit"
      }
    },
    "links": {
      "$ref": "#/$defs/PageNumberPagination"
    },
    "meta": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "deposits",
    "links",
    "meta"
  ],
  "x-stoplight": {
    "id": "jvawrefbkkghx"
  },
  "$defs": {
    "Deposit": {
      "type": "object",
      "description": "Returns data on a successful deposit.",
      "properties": {
        "id": {
          "type": "string",
          "readOnly": true,
          "description": "Identifier for the deposit, can be used via the retrieve endpoint. This value may differ between integrations."
        },
        "amount": {
          "maximum": 1000000000000000,
          "minimum": -1000000000000000,
          "description": "A field that returns the original value in the currency's smallest unit (e.g. cents).",
          "type": "integer",
          "readOnly": true
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "state": {
          "type": "string",
          "readOnly": true,
          "description": "State of the deposit. Can be one of `Submitted`, `Cancelled`, `Approved`, or `Rejected` for Ensenta, but may differ between integrations."
        },
        "front": {
          "type": "string",
          "readOnly": true,
          "description": "Front of the check. Typically in base64 image format, e.g. `data:image/jpeg;base64`."
        },
        "back": {
          "type": "string",
          "readOnly": true,
          "description": "Back of the check. Typically in base64 image format, e.g. `data:image/jpeg;base64`."
        }
      },
      "x-stoplight": {
        "id": "wgqgde6bzmnpj"
      }
    },
    "PageNumberPagination": {
      "type": "object",
      "properties": {
        "next": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Link to the next results page."
        },
        "previous": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Link to the previous results page."
        }
      },
      "required": [
        "next",
        "previous"
      ],
      "x-stoplight": {
        "id": "t59wt6qqevd5i"
      }
    }
  }
}