{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/qualpay/json-schema/qualpay-email-app-request-schema.json",
  "title": "EmailAppRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/qualpay-application-boarding-api-openapi.yml#/components/schemas/EmailAppRequest",
  "type": "object",
  "properties": {
    "owner_id": {
      "type": "string",
      "description": "The owner ID for an existing owner in the `ownership` field."
    },
    "owner": {
      "$ref": "#/$defs/ApplicationOwner"
    }
  },
  "$defs": {
    "ApplicationOwner": {
      "required": [
        "key",
        "value"
      ],
      "type": "object",
      "properties": {
        "name": {
          "$ref": "#/$defs/Name"
        },
        "email": {
          "type": "string",
          "description": "The owner's email address."
        },
        "owner_id": {
          "type": "string",
          "description": "The owner's ID, unique from other owners in this application. If not provided, a UUID is automatically generated."
        }
      }
    },
    "Name": {
      "required": [
        "first_name",
        "last_name"
      ],
      "type": "object",
      "properties": {
        "first_name": {
          "type": "string",
          "description": "The owner's first name."
        },
        "last_name": {
          "type": "string",
          "description": "The owners's last name."
        }
      }
    }
  }
}