{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mailinapp-com/json-schema/mailinapp-com-deal-schema.json",
  "title": "Deal",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mailinapp-com-openapi.json#/components/schemas/Deal",
  "type": "object",
  "required": [
    "id",
    "title",
    "value",
    "currency",
    "pipelineId",
    "stageId",
    "stage",
    "status",
    "source",
    "listId",
    "rowId",
    "email"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "value": {
      "type": "number"
    },
    "currency": {
      "type": "string"
    },
    "pipelineId": {
      "type": "string"
    },
    "stageId": {
      "type": "string"
    },
    "stage": {
      "type": [
        "string",
        "null"
      ],
      "description": "The stage's name."
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "won",
        "lost"
      ]
    },
    "source": {
      "type": "string",
      "enum": [
        "manual",
        "journey",
        "booking",
        "checkout",
        "proposal",
        "api"
      ]
    },
    "listId": {
      "type": "string"
    },
    "rowId": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    }
  }
}