{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/qualpay/json-schema/qualpay-get-app-result-2-schema.json",
  "title": "GetAppResult-2",
  "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/GetAppResult-2",
  "type": "object",
  "properties": {
    "code": {
      "type": "integer",
      "description": "<strong>Format: </strong>Fixed length, 1 N<br><strong>Description: </strong>Response code from API. 0 indicates success. Refer to <a href=\"/docs/api-conventions#/platform-api-response-codes\" target=\"_blank\">Platform API Response Codes</a> for entire list of return codes.",
      "format": "int32",
      "readOnly": true
    },
    "message": {
      "type": "string",
      "description": "<strong>Format: </strong>Variable length AN<br><strong>Description: </strong>A short description of the API response code.",
      "readOnly": true
    },
    "data": {
      "$ref": "#/$defs/GetAppData-2"
    }
  },
  "$defs": {
    "ApplicationModel-2": {
      "type": "object",
      "properties": {
        "app_id": {
          "type": "integer",
          "description": "Unique ID assigned by Qualpay to this application.",
          "format": "int64",
          "readOnly": true
        },
        "merchant_id": {
          "type": "integer",
          "description": "Unique ID assigned by Qualpay to a merchant.",
          "format": "int64",
          "readOnly": true
        },
        "app_status": {
          "type": "string",
          "description": "The current status of the application.",
          "readOnly": true
        },
        "dba_name": {
          "type": "string",
          "description": "The 'doing business as' name, as it is currently on the merchant application.",
          "readOnly": true
        },
        "db_timestamp": {
          "type": "string",
          "description": "The timestamp the application was created.",
          "format": "date-time",
          "readOnly": true
        },
        "submit_timestamp": {
          "type": "string",
          "description": "The timestamp the application was submitted as complete.",
          "format": "date-time",
          "readOnly": true
        },
        "credit_timestamp": {
          "type": "string",
          "description": "The timestamp the application's credit decision was made.",
          "format": "date-time",
          "readOnly": true
        }
      }
    },
    "GetAppData-2": {
      "type": "object",
      "properties": {
        "app": {
          "$ref": "#/$defs/ApplicationModel-2"
        },
        "pricing": {
          "$ref": "#/$defs/PricingModel-2"
        }
      }
    },
    "PlanModel": {
      "type": "object"
    },
    "PricingModel-2": {
      "type": "object",
      "properties": {
        "pricing_id": {
          "type": "integer",
          "description": "Unique ID assigned by Qualpay to this pricing plan.",
          "format": "int64",
          "readOnly": true
        },
        "plan": {
          "$ref": "#/$defs/PlanModel"
        }
      }
    }
  }
}